*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6e012a6c
PA
12011-12-20 Pedro Alves <alves.ped@gmail.com>
2 Jan Kratochvil <jan.kratochvil@redhat.com>
3
4 * linux-nat.c (add_lwp): Don't call linux_nat_new_thread on the
5 first LWP.
6 * amd64-linux-nat.c (update_debug_registers_callback): Instantiate
7 `lwp->arch_private' if NULL.
8 (amd64_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
9 is NULL.
10 * i386-linux-nat.c (update_debug_registers_callback): Instantiate
11 `lwp->arch_private' if NULL.
12 (i386_linux_prepare_to_resume): Do nothing if `lwp->arch_private'
13 is NULL.
14
87c31f06
DE
152011-12-19 Doug Evans <dje@google.com>
16
17 * python/py-auto-load.c (info_auto_load_scripts): Pass address of
18 scripts vector to collect_matching_scripts.
19 (collect_matching_scripts): Update.
20
f6eeced0
JK
212011-12-19 Jan Kratochvil <jan.kratochvil@redhat.com>
22
23 * symfile.c (reread_symbols): Move free_objfile_separate_debug,
24 preserve_values, sym_finish and clear_objfile_data calls before BFD
25 close. Move free_objfile_separate_debug as the very first call. New
26 comment on the ordering.
27
8de7d199
UW
282011-12-19 Ulrich Weigand <uweigand@de.ibm.com>
29
30 * s390-tdep.c (s390_push_dummy_call): Set addressing mode bit
31 in return PSWA.
32
984ac464
TT
332011-12-19 Tom Tromey <tromey@redhat.com>
34
35 * symtab.h (add_minsym_to_hash_table): Don't declare.
36 * minsyms.c (add_minsym_to_hash_table): Now static.
37
828cfa8d
JB
382011-12-19 Joel Brobecker <brobecker@adacore.com>
39
40 * elfread.c (elf_symtab_read): Ignore undefined symbols with
41 nonzero addresses if they do not correspond to a .plt section
42 when one is available in the objfile.
43
dd274a34
AS
442011-12-17 Andreas Schwab <schwab@linux-m68k.org>
45
46 * cp-name-parser.y (cp_merge_demangle_parse_infos): Don't use
47 obstack_empty_p.
48
a3e3e961
MK
492011-12-17 Mark Kettenis <kettenis@gnu.org>
50
51 * amd64obsd-tdep.c (amd64obsd_init_abi): Don't set
52 regset_from_core_section.
53 (amd64obsd_core_init_abi): New function that sets
54 regset_from_core_section.
55 (_initialize_amd64obsd_tdep): Use amd64obsd_core_init_abi for
56 traditional core dumps.
57
0dcddd84
MK
582011-12-17 Mark Kettenis <kettenis@gnu.org>
59
60 * amd64obsd-tdep.c (amd64obsd_sigtramp_p): Detect new signal
61 trampoline to be introduced in OpenBSD 5.0.
62
3e290cb1
JK
632011-12-17 Jan Kratochvil <jan.kratochvil@redhat.com>
64
65 Fix build regression from the PR threads/10729 fix.
66 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint): Use LP,
67 not LP->PTID.
68
56934ab1
AS
692011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
70
71 * mi/mi-main.c (mi_cmd_list_thread_groups): Rename `optind' and
72 `optarg' to `oind' and `oarg', respectively(-Wshadow).
73 (mi_cmd_data_read_memory): Ditto.
74 (mi_cmd_data_read_memory_bytes): Ditto.
75 (mi_cmd_data_write_memory): Ditto.
76
324478ca
AS
772011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
78
79 * mi/mi-getopt.c (mi_getopt): Rename `optind' and `optarg' to
80 `oind' and `oarg', respectively(-Wshadow).
81 (mi_valid_noargs): Ditto.
82
54dc8297
AS
832011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
84
85 * mi/mi-cmd-var.c (print_varobj): Rename `optind' and `optarg' to
86 `oind' and `oarg', respectively(-Wshadow).
87
00629212
AS
882011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
89
90 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Rename `optind' and
91 `optarg' to `oind' and `oarg', respectively(-Wshadow).
92 (mi_cmd_target_file_put): Ditto.
93 (mi_cmd_target_file_delete): Ditto.
94
7082409d
AS
952011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
96
97 * mi/mi-cmd-env.c (mi_cmd_env_path): Rename `optind' and
98 `optarg' to `oind' and `oarg', respectively(-Wshadow).
99 (mi_cmd_env_dir): Ditto.
100
1012011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
81493c62 102
7082409d
AS
103 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Rename `optind' and
104 `optarg' to `oind' and `oarg', respectively(-Wshadow).
81493c62 105
f8c000a2
AS
1062011-12-16 Andrey Smirnov <andrew.smirnov@gmail.com>
107
108 * mi/mi-cmd-break.c (mi_cmd_break_insert): Rename `optind' and
81493c62 109 `optparg' to `oind' and `oarg', respectively(-Wshadow).
f8c000a2
AS
110 (mi_cmd_break_watch): Ditto.
111
07fea4b4
TT
1122011-12-16 Tom Tromey <tromey@redhat.com>
113
114 * linespec.c (collect_symbols): Call maybe_add_address after
115 calling symbol_to_sal.
116 (minsym_found): Call maybe_add_address here.
117 (search_minsyms_for_name): Don't call maybe_add_address.
118
39b856a4
TT
1192011-12-16 Tom Tromey <tromey@redhat.com>
120
121 * linespec.c (struct collect_info) <objfile>: Remove field.
122 (decode_objc): Update.
123 (find_method): Update.
124 (decode_variable): Update.
125 (struct minsym_and_objfile): New.
126 (struct collect_minsyms): New.
127 (classify_mtype): New function.
128 (compare_msyms): Likewise.
129 (add_minsym): Likewise.
130 (check_minsym): Remove.
131 (search_minsyms_for_name): Sort minsyms and apply only those with
132 top priority.
133
ccbac09d
TT
1342011-12-16 Tom Tromey <tromey@redhat.com>
135
136 * cli/cli-cmds.c (filter_sals): Filter out sals with NULL symtab.
137
77cce10f
PA
1382011-12-16 Pedro Alves <pedro@codesourcery.com>
139
140 * inf-loop.c: Include top.h.
141 (inferior_event_handler): Call check_frame_language.
142 * top.c (check_frame_language_change): New, factored out from ...
143 (execute_command): ... this. Use check_frame_language_change.
144 * top.h (check_frame_language_change): Declare.
145
a961bc18
PM
1462011-12-16 asmwarrior <asmwarrior@gmail.com> (obvious fix)
147
148 * windows-nat.c (cygwin_get_dr, cygwin_get_dr7): Add missing
149 prototypes.
150
e0f9f062
DE
1512011-12-16 Doug Evans <dje@google.com>
152
153 * NEWS: Add entry for stdio gdbserver.
154
80b6e756
PM
1552011-12-16 Phil Muldoon <pmuldoon@redhat.com>
156
157 * python/python.c: Define python_excp_enums.
158 (eval_python_from_control_command): Do not call gdbpy_print_stack.
159 (python_command): Ditto.
160 (gdbpy_print_stack): Rewrite to use new enum constants.
161 (maint_set_python): Remove function.
162 (maint_show_python): Ditto.
163 (_initialize_python): Do not add "maint" commands. Add "set/show
164 python print-stack commands".
165 * NEWS: Update to reflect removal for "maint set/show
166 print-stack"
167
ef140872
DE
1682011-12-15 Doug Evans <dje@google.com>
169
170 * exceptions.c (catcher_list_size): New function.
171 (last_message): Delete.
172 (exception_messages, exception_messages_size): New static globals.
173 (throw_it): Use exception_messages array to handle nested calls.
174
b5b445a3
TT
1752011-12-15 Tom Tromey <tromey@redhat.com>
176
177 * symfile.c (symbol_file_add_with_addrs_or_offsets): Remove bad
178 do_cleanups call.
179
0b6cb71e
DE
1802011-12-14 Doug Evans <dje@google.com>
181
182 * defs.h (wait_to_die_with_timeout): Declare.
183 * utils.c: #include "gdb_wait.h".
184 (sigalrm_handler, wait_to_die_with_timeout): New functions.
185 * ser-pipe.c: Don't #include "gdb_wait.h".
186 (pipe_close): Give child a chance to die on its own after closing
187 its stdin before SIGTERM'ing it.
188
6475f2fe 1892011-12-14 Joel Brobecker <brobecker@adacore.com>
afaabefa 190 Tom Tromey <tromey@redhat.com>
6475f2fe
JB
191
192 * ada-lang.c (add_nonlocal_symbols): Initialize data to
193 all zeros. Remove setting of data.arg_sym to NULL.
194
7b50312a
PA
1952011-12-14 Pedro Alves <pedro@codesourcery.com>
196
197 PR threads/10729
198
199 * linux-nat.c (linux_nat_new_thread): Change parameter to an lwp
200 pointer.
201 (linux_nat_prepare_to_resume): New global.
202 (lwp_free): New.
203 (purge_lwp_list): Use it.
204 (add_lwp): Call linux_nat_new_thread even on the first LWP.
205 Adjust to interface change.
206 (delete_lwp): Call lwp_free instead of xfree.
207 (detach_callback, linux_nat_detach, resume_lwp, linux_nat_resume)
208 (linux_handle_syscall_trap, linux_handle_extended_wait)
209 (linux_nat_filter_event, resume_stopped_resumed_lwps): Call
210 linux_nat_prepare_to_resume before resuming.
211 (linux_stop_lwp): New.
212 (linux_nat_set_new_thread): Adjust.
213 (linux_nat_set_prepare_to_resume): New.
214 * linux-nat.h (struct arch_lwp_info): Forward declare.
215 (struct lwp_info) <arch_private>: New field.
216 (linux_stop_lwp): Declare.
217 (linux_nat_set_new_thread): Adjust.
218 (linux_nat_set_prepare_to_resume): New.
219
220 * i386-nat.c (DR_NADDR, DR_STATUS, DR_CONTROL)
221 (struct i386_debug_reg_state): Move to i386-nat.h.
222 (dr_mirror): Comment.
223 (i386_debug_reg_state): New.
224 (i386_update_inferior_debug_regs): Simplify.
225 (i386_stopped_data_address): Use the debug register state from the
226 inferior, not from the local cache.
227 * i386-nat.h (struct i386_dr_low_type): Delete reset_addr and
228 unset_status fields. New get_addr and get_control fields.
229 (DR_FIRSTADDR, DR_LASTADDR, DR_CONTROL): Moved from i386-nat.c.
230 (DR_NADDR, DR_STATUS): New.
231 (struct i386_debug_reg_state): Moved from i386-nat.c.
232
233 * amd64-linux-nat.c (struct arch_lwp_info): New.
234 (amd64_linux_dr): Delete global.
235 (amd64_linux_dr_get_addr): New.
236 (amd64_linux_dr_get_control): New.
237 (amd64_linux_dr_unset_status): Delete.
238 (amd64_linux_dr_set_addr): Reimplement.
239 (amd64_linux_dr_reset_addr): Delete.
240 (update_debug_registers_callback): New.
241 (amd64_linux_dr_set_control): Reimplement.
242 (amd64_linux_dr_set_addr): Reimplement.
243 (amd64_linux_prepare_to_resume): New.
244 (amd64_linux_new_thread): Change parameter to an lwp pointer.
245 Reimplement.
246 (_initialize_amd64_linux_nat): No longer install
247 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
248 amd64_linux_dr_get_control as i386_dr_low.get_control. Install
249 amd64_linux_dr_get_addr as i386_dr_low.get_addr. Install
250 amd64_linux_prepare_to_resume.
251 * i386-linux-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
252 (DR_CONTROL): Delete.
253 (struct arch_lwp_info): New.
254 (i386_linux_dr): Delete global.
255 (i386_linux_dr_set_control): Reimplement.
256 (i386_linux_dr_get_addr): New.
257 (i386_linux_dr_set_addr): Reimplement.
258 (i386_linux_dr_get_control): New.
259 (update_debug_registers_callback): New.
260 (i386_linux_dr_unset_status): Delete.
261 (i386_linux_dr_set_addr): Reimplement.
262 (i386_linux_prepare_to_resume): New.
263 (i386_linux_new_thread): Change parameter to an lwp pointer.
264 Reimplement.
265 (_initialize_i386_linux_nat): No longer install
266 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
267 i386_linux_dr_get_control as i386_dr_low.get_control. Install
268 i386_linux_dr_get_addr as i386_dr_low.get_addr. Install
269 i386_linux_prepare_to_resume.
270
271 * arm-linux-nat.c (arm_linux_new_thread): Change parameter to an
272 lwp pointer. Adjust.
273 * ia64-linux-nat.c (ia64_linux_new_thread): Likewise.
274 * mips-linux-nat.c (mips_linux_new_thread): Likewise.
275 * ppc-linux-nat.c (ppc_linux_new_thread): Likewise.
276 * s390-nat.c (s390_fix_watch_points): Likewise.
277
278 * i386-darwin-nat.c (DR_FIRSTADDR, DR_LASTADDR, DR_STATUS)
279 (DR_CONTROL): Delete.
280 (i386_darwin_dr_reset_addr): Delete.
281 (i386_darwin_dr_get_addr): New.
282 (i386_darwin_dr_get_control): New.
283 * go32-nat.c
284 (go32_get_dr7, go32_get_dr): New.
285 (init_go32_ops): No longer install i386_dr_low.reset_addr.
286 Install go32_get_dr7 as i386_dr_low.get_control. Install
287 go32_get_dr as i386_dr_low.get_addr.
288 * i386bsd-nat.c (i386bsd_dr_get): New.
289 (i386bsd_dr_reset_addr): Delete.
290 (i386bsd_dr_get_addr): New.
291 (i386bsd_dr_get_status): Use i386bsd_dr_get.
292 (i386bsd_dr_get_control): New.
293 * i386bsd-nat.h (i386bsd_dr_reset_addr): Delete.
294 (i386bsd_dr_get_addr): New.
295 (i386bsd_dr_get_control): New.
296 * i386fbsd-nat.c (_initialize_i386fbsd_nat): No longer install
297 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
298 i386bsd_dr_get_control as i386_dr_low.get_control. Install
299 i386bsd_dr_get_addr as i386_dr_low.get_addr.
300 * windows-nat.c (init_windows_ops): No longer install
301 i386_dr_low.reset_addr and i386_dr_low.unset_status. Install
302 cygwin_get_dr7 as i386_dr_low.get_control. Install cygwin_get_dr
303 as i386_dr_low.get_addr.
304 (cygwin_get_dr): New.
305 (cygwin_get_dr7): New.
306
dd110abf
PA
3072011-12-14 Pedro Alves <pedro@codesourcery.com>
308
309 * ia64-tdep.c (ia64_memory_remove_breakpoint): Use
310 target_write_raw_memory.
311 * m32r-tdep.c (m32r_memory_remove_breakpoint): Use
312 target_write_raw_memory.
313 * microblaze-linux-tdep.c
314 (microblaze_linux_memory_remove_breakpoint): Use
315 target_write_raw_memory.
316 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Use
317 target_write_raw_memory.
318
ad32032e
JB
3192011-12-14 Joel Brobecker <brobecker@adacore.com>
320
321 * linespec.c (decode_line_internal): Make static.
322
d14c4eb7
YQ
3232011-12-14 Yao Qi <yao@codesourcery.com>
324
325 * breakpoint.c (create_breakpoint): Set canonical.addr_string
326 for static tracepoint.
327
25564b66 3282011-12-13 Joel Brobecker <brobecker@adacore.com>
329
330 GDB 7.4 branch created (branch timestamp: 2011-12-13 13:00 UTC)
331 * version.in: Bump version to 7.4.50.20111213-cvs.
332
8837a20f
JB
3332011-12-13 Joel Brobecker <brobecker@adacore.com>
334
335 * NEWS: Create a new section for the next release branch.
336 Rename the section of the current branch, now that it has
337 been cut.
338
7dda8cff
JB
3392011-12-11 Joel Brobecker <brobecker@adacore.com>
340
341 * ada-lang.c (ada_exception_support_info_sniffer): Improve
342 error message.
343
3eecfa55
JB
3442011-12-11 Joel Brobecker <brobecker@adacore.com>
345
346 * ada-lang.c (struct ada_inferior_data) [exception_info]:
347 New field.
348 (exception_info): Delete.
349 (ada_exception_support_info_sniffer): Get exception_support_info
350 data from our per-inferior data. Adjust code accordingly.
351 (ada_unhandled_exception_name_addr_from_raise): Likewise.
352 (ada_exception_name_addr_1, ada_exception_sym_name): Ditto.
353 (ada_executable_changed_observer): Delete.
354 (_initialize_ada_language): Remove call to
355 observer_attach_executable_changed.
356
a6af7abe
JB
3572011-12-11 Joel Brobecker <brobecker@adacore.com>
358
359 * ada-lang.c (ada_has_this_exception_support): Raise an error
360 if we could find the Ada exception hook in the Ada runtime,
361 but no debugging info for that hook.
362
f17011e0
JB
3632011-12-11 Joel Brobecker <brobecker@adacore.com>
364
365 * ada-lang.c (ada_has_this_exception_support): New function,
366 extracted out of ada_exception_sal and ada_exception_sal.
367 (ada_exception_support_info_sniffer): Simplify by using
368 ada_has_this_exception_support.
369 (ada_exception_sal): Replace unnecessary checks by assertions.
370 Minor simplifications.
371
d3fbdd86
AS
3722011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
373
374 * breakpoint.c (update_global_location_list): Remove nested
375 definition of `b'(-Wshadow).
376
eacd795a
AS
3772011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
378
379 * breakpoint.c (insert_breakpoint_locations): Rename `error' to
380 `error_flag'(-Wshadow).
381
ad13d8df
AS
3822011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
383
384 * bfd-target.c (target_bfd_reopen): Rename `bfd' to
385 `abfd'(-Wshadow).
386
917793af
AS
3872011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
388
389 * annotate.c (annotate_array_section_begin): Rename `index' to
390 `idx'(-Wshadow).
391
d48ebb5b
AS
3922011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
393
394 * amd64-tdep.c (amd64_get_unused_input_int_reg): Rename `index' to
395 `idx'(-Wshadow).
396
9ed936ec
AS
3972011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
398
399 * amd64-linux-tdep.c (amd64_canonicalize_syscall): Rename
400 `syscall' to `syscall_number'(-Wshadow).
401
a35ddb44
AS
4022011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
403
404 * ada-lang.c (remove_extra_symbols): Rename `remove' to
405 `remove_p'(-Wshadow).
406
e5e61bd7
AS
4072011-12-10 Andrey Smirnov <andrew.smirnov@gmail.com>
408
409 * ada-exp.y (write_var_or_type): Rename nested `renaming' to
410 `ren_sym'(-Wshadow).
411
d200ab1e
DE
4122011-12-10 Doug Evans <dje@google.com>
413
b0df02fd
DE
414 * dwarf2read.c (dwarf2_per_cu_data): Rename debug_type_section to
415 debug_types_section. All uses updated.
416 (partial_read_comp_unit_head): Rename parameter is_debug_type_section
417 to is_debug_types_section.
418
d200ab1e
DE
419 * python/py-auto-load.c (source_section_scripts): Call xfree
420 instead of free.
421
4511b1ba
YQ
4222011-12-10 Hui Zhu <teawater@gmail.com>
423 Yao Qi <yao@codesourcery.com>
424
425 * tracepoint.c (start_tracing): Clear `inserted' flag.
426
df5a4bd3
HZ
4272011-12-10 Hui Zhu <teawater@gmail.com>
428
429 * tracepoint.c (create_tsv_from_upload): Change sprintf to xstrprintf.
430
1afeeb75
AS
4312011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
432
433 * breakpoint.c (bp_loc_is_permanent): Rename `brk' to
434 `bpoint'(-Wshadow).
435
80e1d417
AS
4362011-12-09 Andrey Smirnov <andrew.smirnov@gmail.com>
437
438 * breakpoint.c (update_static_tracepoint): Rename nested `sal' and
439 `marker' variables to `sal2' and `tpmarker' respectively
440 (-Wshadow).
441
04ca3c22
AP
4422011-12-09 Andrew Pinski <apinski@cavium.com>
443
444 * linespec.c (hash_address_entry): Use iterative_hash_object on each
445 field rather than the struct itself.
446
8a2c437b
TT
4472011-12-09 Tom Tromey <tromey@redhat.com>
448
449 * breakpoint.c (compare_breakpoints): New function.
450 (clear_command): Remove duplicate breakpoints. Properly clean
451 up.
452
280711e7
MR
4532011-12-08 Maciej W. Rozycki <macro@mips.com>
454 Maciej W. Rozycki <macro@codesourcery.com>
455
456 * mips-tdep.c (mips_skip_mips16_trampoline_code): Sign-extend
457 address chunks retrieved from decoded lui/addiu pairs.
458
4c2051c6
MR
4592011-12-08 Maciej W. Rozycki <macro@codesourcery.com>
460
461 * mips-tdep.c (extended_offset): Correct calculation.
462 (unpack_mips16): Correct bitfield positions used for extraction
463 of the immediate argument; fix sign-extension of same.
464 (extended_mips16_next_pc): Correct B instruction's offset
465 calculation. Correct register decoding of the BEQZ and BNEZ
466 as well as jump-register instructions. Handle compact jumps.
467
ff011ed7
TT
4682011-12-08 Tom Tromey <tromey@redhat.com>
469
470 * objfiles.h (struct objfile): Remove obsolete comment.
471 * objfiles.c (build_objfile_section_table): Remove obsolete
472 comment.
473
7cd3876c
SS
4742011-12-07 Stan Shebs <stan@codesourcery.com>
475
476 * MAINTAINERS (Responsible Maintainers): Add Yao Qi as
477 maintainer of the tic6x target.
478
35f73cfc
UW
4792011-12-07 Ulrich Weigand <ulrich.weigand@linaro.org>
480
481 * arm-tdep.h (arm_deal_with_atomic_sequence): Add prototype.
482 * arm-tdep.c (thumb_deal_with_atomic_sequence_raw): New function.
483 (arm_deal_with_atomic_sequence_raw): Likewise.
484 (arm_deal_with_atomic_sequence): Likewise.
485 (arm_software_single_step): Call it.
486 * arm-linux-tdep.c (arm_linux_software_single_step): Likewise.
487
94eae614
UW
4882011-12-07 Ulrich Weigand <uweigand@de.ibm.com>
489
490 * s390-tdep.c: Replace "Linux" by "GNU/Linux" in comments
491 where appropriate.
492 * s390-tdep.h: Likewise.
493
13b8d0c6
TG
4942011-12-07 Tristan Gingold <gingold@adacore.com>
495
496 * machoread.c (macho_symtab_read): Do not consider N_OPT as
497 a debugging stab. Improve complaint message.
498
5436df95
MR
4992011-12-07 Maciej W. Rozycki <macro@codesourcery.com>
500
501 * mips-tdep.c (mips32_scan_prologue): Only update the immediate
502 load adjustment if still within the prologue.
503
040dff2a
MR
5042011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
505
506 * mips-tdep.c (mips32_next_pc): Fix floating point condition
507 code mask.
508
754d7c78
MR
5092011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
510
511 * mips-tdep.c (deal_with_atomic_sequence): Fix the handling
512 of BLTZ* and BGEZ* instructions.
513
91912e4d
MR
5142011-12-06 Maciej W. Rozycki <macro@codesourcery.com>
515
516 * mips-tdep.c (mips_pc_is_mips16): Reverse the order of checks
517 performed to determine whether an address refers to standard
518 MIPS or MIPS16 code.
519 (mips16_next_pc): Use mips_pc_is_mips16 instead of
520 is_mips16_addr.
521
f0ba3972
PA
5222011-12-06 Pedro Alves <pedro@codesourcery.com>
523
524 * breakpoint.c (breakpoint_restore_shadows): Rename to ...
525 (breakpoint_xfer_memory): ... this. Change prototype. Handle
526 memory writes too.
527 * breakpoint.h (breakpoint_restore_shadows): Delete.
528 (breakpoint_xfer_memory): Declare.
529 * mem-break.c (default_memory_insert_breakpoint)
530 (default_memory_remove_breakpoint): Use target_write_raw_memory.
531 (memory_xfer_partial): Rename to ...
532 (memory_xfer_partial_1): ... this. Don't mask out breakpoints
533 here.
534 (memory_xfer_partial): New.
535 (target_write_raw_memory): New.
536 * target.h (target_write_raw_memory): New.
537
31aba06f
DE
5382011-12-06 Doug Evans <dje@google.com>
539
540 * linespec.c (decode_dollar): Avoid "may be used uninitialized" warning.
541
f8eba3c6
TT
5422011-12-06 Joel Brobecker <brobecker@acacore.com>
543
544 * language.h (struct language_defn): Add new component
545 la_symbol_name_compare.
546 * symfile.h (struct quick_symbol_functions): Update the profile
547 of parameter "name_matcher" for the expand_symtabs_matching
548 method. Update the documentation accordingly.
549 * ada-lang.h (ada_name_for_lookup): Add declaration.
550 * ada-lang.c (ada_name_for_lookup): New function, extracted out
551 from ada_iterate_over_symbols.
552 (ada_iterate_over_symbols): Do not encode symbol name anymore.
553 (ada_expand_partial_symbol_name): Adjust profile.
554 (ada_language_defn): Add value for la_symbol_name_compare field.
555 * linespec.c: #include "ada-lang.h".
556 (iterate_name_matcher): Add language parameter. Replace call
557 to strcmp_iw by call to language->la_symbol_name_compare.
558 (decode_variable): Encode COPY if current language is Ada.
559 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust profile
560 of name_matcher parameter. Adjust call to name_matcher.
561 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
562 (expand_partial_symbol_names): Update profile of parameter "fun".
563 * psymtab.h (expand_partial_symbol_names): Update profile of
564 parameter "fun".
565 * symtab.c (demangle_for_lookup): Update function documentation.
566 (search_symbols_name_matches): Add language parameter.
567 (expand_partial_symbol_name): Likewise.
568 * c-lang.c (c_language_defn, cplus_language_defn)
569 (asm_language_defn, minimal_language_defn): Add value for
570 la_symbol_name_compare field.
571 * d-lang.c (d_language_defn): Likewise.
572 * f-lang.c (f_language_defn): Ditto.
573 * jv-lang.c (java_language_defn): Ditto.
574 * m2-lang.c (m2_language_defn): Ditto.
575 * objc-lang.c (objc_language_defn): Ditto.
576 * opencl-lang.c (opencl_language_defn): Ditto.
577 * p-lang.c (pascal_language_defn): Ditto.
578 * language.c (unknown_language_defn, auto_language_defn)
579 (local_language_defn): Ditto.
580
5812011-12-06 Tom Tromey <tromey@redhat.com>
582
583 * linespec.c (iterate_over_all_matching_symtabs): Use
584 LA_ITERATE_OVER_SYMBOLS.
585 (lookup_prefix_sym, add_matching_symbols_to_info): Likewise.
586 (find_function_symbols, decode_variable): Remove Ada special
587 case.
588 * language.h (struct language_defn) <la_iterate_over_symbols>: New
589 field.
590 (LA_ITERATE_OVER_SYMBOLS): New macro.
591 * language.c (unknown_language_defn, auto_language_defn)
592 (local_language_defn): Update.
593 * c-lang.c (c_language_defn, cplus_language_defn)
594 (asm_language_defn, minimal_language_defn): Update.
595 * d-lang.c (d_language_defn): Update.
596 * f-lang.c (f_language_defn): Update.
597 * jv-lang.c (java_language_defn): Update.
598 * m2-lang.c (m2_language_defn): Update.
599 * objc-lang.c (objc_language_defn): Update.
600 * opencl-lang.c (opencl_language_defn): Update.
601 * p-lang.c (pascal_language_defn): Update.
602 * ada-lang.c (ada_iterate_over_symbols): New function.
603 (ada_language_defn): Update.
604
6052011-12-06 Tom Tromey <tromey@redhat.com>
606 Joel Brobecker <brobecker@acacore.com>
607
608 PR breakpoints/13105, PR objc/8341, PR objc/8343, PR objc/8366,
609 PR objc/8535, PR breakpoints/11657, PR breakpoints/11970,
610 PR breakpoints/12023, PR breakpoints/12334, PR breakpoints/12856,
611 PR shlibs/8929, PR shlibs/7393:
612 * python/py-type.c (compare_maybe_null_strings): Rename from
613 compare_strings.
614 (check_types_equal): Update.
615 * utils.c (compare_strings): New function.
616 * tui/tui-winsource.c (tui_update_breakpoint_info): Update for
617 location changes.
618 * tracepoint.c (scope_info): Update.
619 (trace_find_line_command): Use DECODE_LINE_FUNFIRSTLINE.
620 * symtab.h (iterate_over_minimal_symbols)
621 (iterate_over_some_symtabs, iterate_over_symtabs)
622 (find_pcs_for_symtab_line, iterate_over_symbols)
623 (demangle_for_lookup): Declare.
624 (expand_line_sal): Remove.
625 * symtab.c (iterate_over_some_symtabs, iterate_over_symtabs)
626 (lookup_symtab_callback): New functions.
627 (lookup_symtab): Rewrite.
628 (demangle_for_lookup): New function, extract from
629 lookup_symbol_in_language.
630 (lookup_symbol_in_language): Use it.
631 (iterate_over_symbols): New function.
632 (find_line_symtab): Update.
633 (find_pcs_for_symtab_line): New functions.
634 (find_line_common): Add 'start' argument.
635 (decode_line_spec): Update. Change argument to 'flags', change
636 interpretation.
637 (append_expanded_sal): Remove.
638 (append_exact_match_to_sals): Remove.
639 (expand_line_sal): Remove.
640 * symfile.h (struct quick_symbol_functions) <lookup_symtab>:
641 Remove.
642 <map_symtabs_matching_filename>: New field.
643 * stack.c (func_command): Only look in the current program space.
644 Use DECODE_LINE_FUNFIRSTLINE.
645 * source.c (line_info): Set pspace on sal. Check program space in
646 the loop. Use DECODE_LINE_LIST_MODE.
647 (select_source_symtab): Use DECODE_LINE_FUNFIRSTLINE.
648 * solib-target.c: Remove DEF_VEC_I(CORE_ADDR).
649 * python/python.c (gdbpy_decode_line): Update.
650 * psymtab.c (partial_map_expand_apply): New function.
651 (partial_map_symtabs_matching_filename): Rename from
652 lookup_partial_symbol. Update arguments.
653 (lookup_symtab_via_partial_symtab): Remove.
654 (psym_functions): Update.
655 * objc-lang.h (parse_selector, parse_method): Don't declare.
656 (find_imps): Update.
657 * objc-lang.c (parse_selector, parse_method): Now static.
658 (find_methods): Change arguments. Fill in a vector of symbol
659 names.
660 (uniquify_strings): New function.
661 (find_imps): Change arguments.
662 * minsyms.c (iterate_over_minimal_symbols): New function.
663 * linespec.h (enum decode_line_flags): New.
664 (struct linespec_sals): New.
665 (struct linespec_result) <canonical>: Remove.
666 <pre_expanded, addr_string, sals>: New fields.
667 (destroy_linespec_result, make_cleanup_destroy_linespec_result)
668 (decode_line_full): Declare.
669 (decode_line_1): Update.
670 * linespec.c (struct address_entry, struct linespec_state, struct
671 collect_info): New types.
672 (add_sal_to_sals_basic, add_sal_to_sals, hash_address_entry)
673 (eq_address_entry, maybe_add_address): New functions.
674 (total_number_of_methods): Remove.
675 (iterate_name_matcher, iterate_over_all_matching_symtabs): New
676 functions.
677 (find_methods): Change arguments. Don't canonicalize input.
678 Simplify logic.
679 (add_matching_methods, add_constructors)
680 (build_canonical_line_spec): Remove.
681 (filter_results, convert_results_to_lsals): New functions.
682 (decode_line_2): Change arguments. Rewrite for new data
683 structures.
684 (decode_line_internal): Rename from decode_line_1. Change
685 arguments. Add cleanups. Update for new data structures.
686 (linespec_state_constructor, linespec_state_destructor)
687 (decode_line_full, decode_line_1): New functions.
688 (decode_indirect): Change arguments. Update.
689 (locate_first_half): Use skip_spaces.
690 (decode_objc): Change arguments. Update for new data structures.
691 Simplify logic.
692 (decode_compound): Change arguments. Add cleanups. Remove
693 fallback code, replace with error.
694 (struct decode_compound_collector): New type.
695 (collect_one_symbol): New function.
696 (lookup_prefix_sym): Change arguments. Update.
697 (compare_symbol_name, add_all_symbol_names_from_pspace)
698 (find_superclass_methods ): New functions.
699 (find_method): Rewrite.
700 (struct symtab_collector): New type.
701 (add_symtabs_to_list, collect_symtabs_from_filename): New
702 functions.
703 (symtabs_from_filename): Change API. Rename from
704 symtab_from_filename.
705 (collect_function_symbols): New function.
706 (find_function_symbols): Change API. Rename from
707 find_function_symbol. Rewrite.
708 (decode_all_digits): Change arguments. Rewrite.
709 (decode_dollar): Change arguments. Use decode_variable.
710 (decode_label): Change arguments. Rewrite.
711 (collect_symbols): New function.
712 (minsym_found): Change arguments. Rewrite.
713 (check_minsym, search_minsyms_for_name)
714 (add_matching_symbols_to_info): New function.
715 (decode_variable): Change arguments. Iterate over all symbols.
716 (symbol_found): Remove.
717 (symbol_to_sal): New function.
718 (init_linespec_result, destroy_linespec_result)
719 (cleanup_linespec_result, make_cleanup_destroy_linespec_result):
720 New functions.
721 (decode_digits_list_mode, decode_digits_ordinary): New functions.
722 * dwarf2read.c (dw2_map_expand_apply): New function.
723 (dw2_map_symtabs_matching_filename): Rename from
724 dw2_lookup_symtab. Change arguments.
725 (dwarf2_gdb_index_functions): Update.
726 * dwarf2loc.c: Remove DEF_VEC_I(CORE_ADDR).
727 * defs.h (compare_strings): Declare.
728 * cli/cli-cmds.c (compare_strings): Move to utils.c.
729 (edit_command, list_command): Use DECODE_LINE_LIST_MODE. Call
730 filter_sals.
731 (compare_symtabs, filter_sals): New functions.
732 * breakpoint.h (struct bp_location) <line_number, source_file>:
733 New fields.
734 (struct breakpoint) <line_number, source_file>: Remove.
735 <filter>: New field.
736 * breakpoint.c (print_breakpoint_location, init_raw_breakpoint)
737 (momentary_breakpoint_from_master, add_location_to_breakpoint):
738 Update for changes to locations.
739 (init_breakpoint_sal): Add 'filter' argument. Set 'filter' on
740 breakpoint.
741 (create_breakpoint_sal): Add 'filter' argument.
742 (remove_sal, expand_line_sal_maybe): Remove.
743 (create_breakpoints_sal): Remove 'sals' argument. Handle
744 pre-expanded sals and the filter.
745 (parse_breakpoint_sals): Use decode_line_full.
746 (check_fast_tracepoint_sals): Use get_sal_arch.
747 (create_breakpoint): Create a linespec_sals. Update.
748 (break_range_command): Use decode_line_full. Update.
749 (until_break_command): Update.
750 (clear_command): Update match conditions for linespec.c changes.
751 Use DECODE_LINE_LIST_MODE.
752 (say_where): Update for changes to locations.
753 (bp_location_dtor): Free 'source_file'.
754 (base_breakpoint_dtor): Free 'filter'. Don't free 'source_file'.
755 (update_static_tracepoint): Update for changes to locations.
756 (update_breakpoint_locations): Disable ranged breakpoint if too
757 many locations match. Update.
758 (addr_string_to_sals): Use decode_line_full. Resolve all sal
759 PCs.
760 (breakpoint_re_set_default): Don't call expand_line_sal_maybe.
761 (decode_line_spec_1): Update. Change argument name to 'flags',
762 change interpretation.
763 * block.h (block_containing_function): Declare.
764 * block.c (block_containing_function): New function.
765 * skip.c (skip_function_command): Update.
766 (skip_re_set): Update.
767 * infcmd.c (jump_command): Use DECODE_LINE_FUNFIRSTLINE.
768 * mi/mi-main.c (mi_cmd_trace_find): Use DECODE_LINE_FUNFIRSTLINE.
769 * NEWS: Add entry.
770
7712011-12-06 Tom Tromey <tromey@redhat.com>
772
773 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Allow
774 breakpoint's pspace to be NULL.
775 * breakpoint.h (struct breakpoint) <pspace>: Update comment.
776 * breakpoint.c (init_raw_breakpoint): Conditionally set
777 breakpoint's pspace.
778 (init_breakpoint_sal): Don't set breakpoint's pspace.
779 (prepare_re_set_context): Conditionally switch program space.
780 (addr_string_to_sals): Check executing_startup on location's
781 program space.
782
7832011-12-06 Tom Tromey <tromey@redhat.com>
784
785 * breakpoint.h (enum enable_state) <bp_startup_disabled>: Remove.
786 * breakpoint.c (should_be_inserted): Explicitly check if program
787 space is executing startup.
788 (describe_other_breakpoints): Update.
789 (disable_breakpoints_before_startup): Change executing_startup
790 earlier. Remove loop.
791 (enable_breakpoints_after_startup): Likewise.
792 (init_breakpoint_sal): Don't use bp_startup_disabled.
793 (create_breakpoint): Don't use bp_startup_disabled.
794 (update_global_location_list): Use should_be_inserted.
795 (bkpt_re_set): Update.
796
75c8c9d7
TT
7972011-12-06 Tom Tromey <tromey@redhat.com>
798
799 * python/lib/gdb/command/pretty_printers.py
800 (InfoPrettyPrinter.invoke1): Remove extra double quote.
801
7376e450
TT
8022011-12-06 Tom Tromey <tromey@redhat.com>
803
804 * NEWS: Add MI news.
805
c642a434
UW
8062011-12-06 Ulrich Weigand <uweigand@de.ibm.com>
807
808 * s390-tdep.h (S390_ORIG_R2_REGNUM): Define.
809 (S390_LAST_BREAK_REGNUM): Likewise.
810 (S390_SYSTEM_CALL_REGNUM): Likewise.
811 (S390_NUM_REGS): Update.
812
813 (s390_regmap_last_break): Add declaration.
814 (s390x_regmap_last_break): Likewise.
815 (s390_regmap_system_call): Likewise.
816
817 (tdesc_s390_linux32v1): Add declaration.
818 (tdesc_s390_linux32v2): Likewise.
819 (tdesc_s390_linux64v1): Likewise.
820 (tdesc_s390_linux64v2): Likewise.
821 (tdesc_s390x_linux64v1): Likewise.
822 (tdesc_s390x_linux64v2): Likewise.
823
824 * s390-tdep.c: Include new target description files
825 "features/s390-linux32v1.c", "features/s390-linux32v2.c",
826 "features/s390-linux64v1.c", "features/s390-linux64v2.c",
827 "features/s390x-linux64v1.c", and "features/s390x-linux64v2.c".
828 (s390_cannot_store_register): New function.
829 (s390_write_pc): Likewise.
830 (s390_dwarf_regmap): Add fields for new registers.
831 (s390_regmap_gregset): Likewise.
832 (s390x_regmap_gregset): Likewise.
833 (s390_regmap_fpregset): Likewise.
834 (s390_regmap_upper): Likewise.
835 (s390_regmap_last_break): New variable.
836 (s390x_regmap_last_break): Likewise.
837 (s390_regmap_system_call): Likewise.
838 (s390_last_break_regset): Likewise.
839 (s390x_last_break_regset): Likewise.
840 (s390_system_call_regset): Likewise.
841 (s390_upper_regset_sections): Rename to ...
842 (s390_linux64_regset_sections): ... this.
843 (s390_linux32_regset_sections): New variable.
844 (s390x_linux64_regset_sections): Likewise.
845 (s390_linux32v1_regset_sections): Likewise.
846 (s390_linux32v2_regset_sections): Likewise.
847 (s390_linux64v1_regset_sections): Likewise.
848 (s390_linux64v2_regset_sections): Likewise.
849 (s390x_linux64v1_regset_sections): Likewise.
850 (s390x_linux64v2_regset_sections): Likewise.
851 (s390_regset_from_core_section): Handle .reg-s390-last-break and
852 .reg-s390-system-call core file sections.
853 (s390_core_read_description): Check for presence of
854 .reg-s390-last-break and .reg-s390-system-call core file
855 sections and return appropriate target description.
856 (s390_gdbarch_init): Detect Linux-specific registers "orig_r2",
857 "last_break" and "system_call" in target description. Install
858 appropriate gdbarch_core_regset_sections array.
859 Call set_gdbarch_cannot_store_register and set_gdbarch_write_pc.
860 (_initialize_s390_tdep): Initialize additional target descriptions.
861
862 * s390-nat.c: Include "elf/common.h".
863 (PTRACE_GETREGSET, PTRACE_SETREGSET): Define if undefined.
864 (have_regset_last_break): New static variable.
865 (have_regset_system_call): Likewise.
866 (s390_native_supply): Handle S390_ORIG_R2_REGNUM.
867 (s390_native_collect): Likewise.
868 (fetch_regset, store_regset, check_regset): New functions.
869 (s390_linux_fetch_inferior_registers): Handle S390_LAST_BREAK_REGNUM
870 and S390_SYSTEM_CALL_REGNUM.
871 (s390_linux_store_inferior_registers): Likewise.
872 (s390_read_description): Check for presence of NT_S390_LAST_BREAK
873 and NT_S390_SYSTEM_CALL regsets and use appropriate description.
874
875 * features/Makefile (WHICH): Add s390-linux32v1, s390-linux64v1,
876 s390x-linux64v1, s390-linux32v2, s390-linux64v2, and s390x-linux64v2.
877 (s390-linux32v1-expedite): Define.
878 (s390-linux32v2-expedite): Likewise.
879 (s390-linux64v1-expedite): Likewise.
880 (s390-linux64v2-expedite): Likewise.
881 (s390x-linux64v1-expedite): Likewise.
882 (s390x-linux64v2-expedite): Likewise.
883
884 * features/s390-linux32.xml: Add orig_r2 register.
885 * features/s390-linux64.xml: Likewise.
886 * features/s390x-linux64.xml: Likewise.
887 * features/s390-linux32v1.xml: New file.
888 * features/s390-linux32v2.xml: Likewise.
889 * features/s390-linux64v1.xml: Likewise.
890 * features/s390-linux64v2.xml: Likewise.
891 * features/s390x-linux64v1.xml: Likewise.
892 * features/s390x-linux64v2.xml: Likewise.
893
894 * features/s390-linux32.c: Regenerate.
895 * features/s390-linux64.c: Likewise.
896 * features/s390x-linux64.c: Likewise.
897 * features/s390-linux32v1.c: New generated file.
898 * features/s390-linux32v2.c: Likewise.
899 * features/s390-linux64v1.c: Likewise.
900 * features/s390-linux64v2.c: Likewise.
901 * features/s390x-linux64v1.c: Likewise.
902 * features/s390x-linux64v2.c: Likewise.
903
904 * regformats/s390-linux32.dat: Regenerate.
905 * regformats/s390-linux64.dat: Regenerate.
906 * regformats/s390x-linux64.dat: Regenerate.
907 * regformats/s390-linux32v1.dat: New generated file.
908 * regformats/s390-linux32v2.dat: Likewise.
909 * regformats/s390-linux64v1.dat: Likewise.
910 * regformats/s390-linux64v2.dat: Likewise.
911 * regformats/s390x-linux64v1.dat: Likewise.
912 * regformats/s390x-linux64v2.dat: Likewise.
913
336060f3
PA
9142011-12-05 Pedro Alves <pedro@codesourcery.com>
915
916 * linux-nat.c (resume_stopped_resumed_lwps): Call
917 registers_changed.
918
049e32d3
PA
9192011-12-05 Pedro Alves <pedro@codesourcery.com>
920
921 * breakpoint.c: Include record.h.
922 (breakpoints_always_inserted_mode): Return false when the record
923 target is in use.
924
5c03c7f9 9252011-12-05 Pedro Alves <pedro@codesourcery.com>
482950ed
PA
926
927 * amd64-linux-nat.c (amd64_linux_dr_get): Remove FIXME comment.
928 Reinstate perror_with_name call on ptrace error. Remove #if 0.
929 * i386-linux-nat.c (i386_linux_dr_get): Likewise.
930 * i386bsd-nat.c (i386bsd_dr_get_status): Likewise.
931
fbbd034e
AS
9322011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
933
934 * breakpoint.c (init_breakpoint_sal): Remove nested definitions of
935 `i'(-Wshadow).
936
a5ff8356 9372011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
12747160
AS
938
939 * bcache.c (bcache): Rename `bcache' to `cache'(-Wshadow).
940
9412011-12-05 Andrey Smirnov <andrew.smirnov@gmail.com>
942
a5ff8356
AS
943 * amd64-tdep.c (amd64_push_dummy_call): Remove nested definition
944 of `tdep'(-Wshadow).
945
93f2a35e
JK
9462011-12-03 Jan Kratochvil <jan.kratochvil@redhat.com>
947
948 Fix compilation --without-expat.
949 * solib-svr4.c (svr4_free_so, svr4_free_library_list): Move them here
950 from ...
951 [HAVE_LIBEXPAT] (svr4_free_so, svr4_free_library_list): ... here.
952
2268b414
JK
9532011-12-02 Paul Pluzhnikov <ppluzhnikov@google.com>
954 Jan Kratochvil <jan.kratochvil@redhat.com>
955
956 * Makefile.in (XMLFILES): Add library-list-svr4.dtd.
957 * features/library-list-svr4.dtd: New file.
958 * remote.c (PACKET_qXfer_libraries_svr4): New.
959 (remote_protocol_features): new entry for PACKET_qXfer_libraries_svr4.
960 (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES_SVR4.
961 * solib-svr4.c (struct svr4_library_list): New.
962 [HAVE_LIBEXPAT]: Include xml-support.h.
963 [HAVE_LIBEXPAT] (svr4_library_list_start_library)
964 [HAVE_LIBEXPAT] (svr4_library_list_start_list, svr4_library_attributes)
965 [HAVE_LIBEXPAT] (svr4_library_list_children)
966 [HAVE_LIBEXPAT] (svr4_library_list_attributes)
967 [HAVE_LIBEXPAT] (svr4_library_list_elements, svr4_parse_libraries)
968 [HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries)
969 [!HAVE_LIBEXPAT] (svr4_current_sos_via_xfer_libraries): New.
970 (svr4_read_so_list): Extend the corruption message by addresses.
971 (svr4_current_sos): New variable library_list, call
972 svr4_current_sos_via_xfer_libraries.
973 * target.h (enum target_object): New TARGET_OBJECT_LIBRARIES_SVR4.
974
585861ea
JK
9752011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
976
977 PR threads/13448
978 * dwarf2read.c (decode_locdesc): Handle DW_OP_const8u.
979 For DW_OP_GNU_push_tls_address increment the value, new comment for it.
980
9750bca9
JK
9812011-12-02 Jan Kratochvil <jan.kratochvil@redhat.com>
982
983 PR breakpoints/13346
984 * dwarf2read.c (process_psymtab_comp_unit): Set
985 PSYMTABS_ADDRMAP_SUPPORTED.
986 * psympriv.h (struct partial_symtab): Comment textlow and texthigh
987 validity. New field psymtabs_addrmap_supported.
988 * psymtab.c (find_pc_sect_psymtab_closer): New gdb_assert on
989 psymtabs_addrmap_supported.
990 (find_pc_sect_psymtab): Do not fallback to TEXTLOW and TEXTHIGH for
991 !PSYMTABS_ADDRMAP_SUPPORTED.
992 (dump_psymtab, maintenance_info_psymtabs): Print also
993 psymtabs_addrmap_supported.
994
f28c316a
DE
9952011-12-01 Doug Evans <dje@google.com>
996
997 * python/py-type.c (type_object_methods): Fix "array" doc string.
998
fc0ae648
AB
9992011-12-01 Andrew Burgess <aburgess@broadcom.com>
1000
1001 * source.c (print_source_lines_base): Fix missing braces on else
1002 clause leading to additional output.
1003
d6db1fab
UW
10042011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1005
1006 * s390-nat.c (SUBOFF): Remove.
1007 (s390_native_supply, s390_native_collect): New functions.
1008 (supply_gregset, supply_fpregset): Use s390_native_supply.
1009 (fill_gregset, fill_fpregset): Use s390_native_collect.
1010
1011 * s390-tdep.c (s390_pseudo_register_reggroup_p): Update comment.
1012 (s390_unwind_pseudo_register): New function.
1013 (s390_prologue_frame_unwind_cache): Unwind PSW address and mask
1014 registers instead of PC and CC.
1015 (s390_backchain_frame_unwind_cache): Likewise.
1016 (s390_sigtramp_frame_unwind_cache): Do not unwind PC, CC, or
1017 full GPR pseudos.
1018 (s390_trad_frame_prev_register): New function.
1019 (s390_frame_prev_register): Use it.
1020 (s390_sigtramp_frame_prev_register): Likewise.
1021 (s390_dwarf2_prev_register): Use s390_unwind_pseudo_register.
1022 (s390_dwarf2_frame_init_reg): Unwind PSW address and mask. Use
1023 special callback to unwind any pseudo.
1024
1025 * features/s390-core32.xml: Add pswm/pswa to save/restore group.
1026 * features/s390-core64.xml: Likewise.
1027 * features/s390x-core64.xml: Likewise.
1028 * features/s390-linux32.c: Regenerate.
1029 * features/s390-linux64.c: Likewise.
1030 * features/s390x-linux64.c: Likewise.
1031
1dd635ac
UW
10322011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1033
1034 * s390-tdep.c (s390_gdbarch_init): Call set_gdbarch_get_siginfo_type.
1035
0161e4b9
UW
10362011-11-30 Ulrich Weigand <uweigand@de.ibm.com>
1037
1038 * s390-tdep.c (s390_displaced_step_fixup): Fix processing of LARL
1039 instruction. Add more diagnostic output.
1040
0c36327f
AS
10412011-11-29 Andrey Smirnov <andrew.smirnov@gmail.com>
1042
1043 * MAINTAINERS (Write After Approval): Add myself to the list.
1044
b4264740
SD
10452011-11-29 Sanjoy Das <sdas@igalia.com>
1046
1047 * jit.c (add_objfile_entry, jit_reader_try_read_symtab)
1048 (jit_bfd_try_read_symtab): Fix comments.
1049
87326c78
DD
10502011-11-28 DJ Delorie <dj@redhat.com>
1051
1052 * NEWS: Mention RL78 simulator.
1053
1e3a8f45
JB
10542011-11-28 Joel Brobecker <brobecker@adacore.com>
1055
1056 * symfile.h (struct quick_symbol_functions): Fix the documentation
1057 of field map_matching_symbols, as symbols are sorted using
1058 strcmp_iw_ordered, not strcmp_iw.
1059
265e52c3
JB
10602011-11-28 Paul Hilfinger <hilfinger@adacore.com>
1061
1062 * symfile.h (struct quick_symbol_functions): Update the
1063 documentation for field map_matching_symbols.
1064
1a1d5513
JB
10652011-11-28 Joel Brobecker <brobecker@adacore.com>
1066
1067 * ada-lang.c (compare_names): Fix wrong return value in case
1068 string1 starts with the same contents as string2, followed
1069 by an underscore that do not start a symbol name suffix.
1070
5d9c5995
PM
10712011-11-28 Phil Muldoon <pmuldoon@redhat.com>
1072
1073 PR python/13369
1074 PR python/13374
1075
1076 * python/python.c (gdbpy_decode_line): Do not acquire GIL.
1077 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1078 * python/py-value.c (valpy_nonzero): Use TRY_CATCH to catch GDB
1079 exceptions.
1080 * python/py-type.c (typy_strip_typedefs): Ditto.
1081 (typy_legacy_template_argument): Ditto.
1082 * python/py-inferior.c (inferior_to_inferior_object): Ditto.
1083 * python/py-breakpoint.c (bppy_set_ignore_count): Ditto.
1084
2bf50f6f
JB
10852011-11-27 Joel Brobecker <brobecker@acacore.com>
1086
1087 * remote.c (remote_get_tracepoint_status): Delete addrbuf
1088 local variable. Avoid use of sprintf_vma.
1089
744ab88c
SD
10902011-11-27 Sanjoy Das <sdas@igalia.com>
1091
1092 Fix regression in jit.exp.
1093 * jit.c (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1094 (jit_register_code): Set the jit_objfile_data field to the correct
1095 value.
1096
46ad3598
UW
10972011-11-25  Uros Bizjak  <ubizjak@gmail.com>
1098
1099 * alpha-tdep.c (br_opcode): New.
1100 (ldl_l_opcode, ldq_l_opcode, stl_c_opcode, stq_c_opcode): Ditto.
1101 (alpha_deal_with_atomic_sequence): New function.
1102 (alpha_gdbarch_init): Handle single stepping of atomic sequences
1103 with alpha_deal_with_atomic_sequence.
1104
e4c5f296
TG
11052011-11-24 Tristan Gingold <gingold@adacore.com>
1106
1107 * machoread.c (oso_el): Remove num_Sections, symbols, offsets
1108 fields. Add oso_sym, end_sym and nbr_syms.
1109 (macho_register_oso): Change interface.
1110 (macho_symtab_add_minsym): New function.
1111 (macho_symtab_read): Rewritten.
1112 (get_archive_prefix_len): Remove trailing blanks.
1113 (oso_el_compare_name): Add comment.
1114 (struct macho_sym_hash_entry): New structure.
1115 (macho_relocate_common_syms): Remove.
1116 (macho_sym_hash_newfunc): New function.
1117 (macho_resolve_oso_sym_with_minsym): Likewise.
1118 (macho_add_oso_symfile): Rewritten.
1119 (macho_symfile_read_all_oso): Remove trailing blanks.
1120 Adjust code to free oso vector.
1121 (macho_symfile_read): Likewise.
1122 Move code to initialize minimal symbol
1123
130854df
MR
11242011-11-24 Maciej W. Rozycki <macro@codesourcery.com>
1125
1126 * mips-tdep.c (extended_offset): Fix formatting.
1127
3d7bb9d9
DE
11282011-11-23 Doug Evans <dje@google.com>
1129
1130 * dwarf2read.c (dw2_lookup_symtab): Add comment.
1131 (dw2_expand_symtabs_with_filename): Ditto.
1132 (dw2_expand_symtabs_matching): Ditto.
1133 (dw2_map_symbol_filenames): Ditto.
1134
1fbf5ada
JB
11352011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1136
1137 * ada-lang.c (assign_aggregate): Minor reformatting.
1138
d984108d
JB
11392011-11-23 Andrey Smirnov <andrew.smirnov@gmail.com>
1140
1141 * ada-lang.c (assign_aggregate): Remove declaration of local
1142 variable `i' which is shadowing another variable with the same
1143 name declared in the outer scope.
1144
18af8284
JB
11452011-11-23 Joel Brobecker <brobecker@adacore.com>
1146
1147 * ada-lang.c (get_base_type): Renames base_type. Adjust all
1148 calls throughout this file.
1149
1fc7b5d7
JB
11502011-11-23 Joel Brobecker <brobecker@adacore.com>
1151
1152 * gdb-dlfcn.c (gdb_dlopen): Add missing coma in call to
1153 FormatMessage.
1154
36dfb11c
TT
11552011-11-22 Tom Tromey <tromey@redhat.com>
1156
1157 PR mi/8444:
1158 * mi/mi-common.h (EXEC_ASYNC_SOLIB_EVENT, EXEC_ASYNC_FORK)
1159 (EXEC_ASYNC_VFORK, EXEC_ASYNC_SYSCALL_ENTRY)
1160 (EXEC_ASYNC_SYSCALL_RETURN, EXEC_ASYNC_EXEC): New constants.
1161 * mi/mi-common.c (async_reason_string_lookup): Add new reasons.
1162 * breakpoint.c (print_it_catch_fork, print_it_catch_vfork)
1163 (print_it_catch_syscall, print_it_catch_exec)
1164 (internal_bkpt_print_it): Use ui_out. Emit stop reason.
1165 (bpstat_print): Add 'kind' argument. Handle
1166 TARGET_WAITKIND_LOADED.
1167 * infrun.c (normal_stop): Update for bpstat_print change. Don't
1168 handle TARGET_WAITKIND_LOADED here.
1169 * breakpoint.h (bpstat_print): Update.
1170
5bd6aa83
TT
11712011-11-22 Tom Tromey <tromey@redhat.com>
1172
1173 * mi/mi-interp.c (mi_on_normal_stop): Call bpstat_print.
1174
f5afdc18
TT
11752011-11-22 Tom Tromey <tromey@redhat.com>
1176
1177 * mi/mi-common.c (_initialize_gdb_mi_common): Remove.
1178 Use static_assert to check the size of
1179 async_reason_string_lookup.
1180 * common/gdb_assert.h (static_assert): New macro.
1181
a3769e0c
AM
11822011-11-22 Alan Modra <amodra@gmail.com>
1183
1184 * rs6000-tdep.c (ppc_deal_with_atomic_sequence): Correct branch
1185 destination calculation. Don't expect >> to sign extend. Don't
1186 add a break if branch lands inside the sequence anywhere.
1187
56767571
KS
11882011-11-21 Keith Seitz <keiths@redhat.com>
1189
1190 * gdb.mi/mi-var-display.exp: Remove XFAIL for c_variable-7.51,
1191 -var-evaluate-expression of an enumeration and fix expected result.
1192 * gdb.mi/mi2-varvdisplay.exp: Likewise.
1193
8443c207
KY
11942011-11-21 Kwok Cheung Yeung <kcy@codesourcery.com>
1195
1196 * osdata.c (info_osdata_command): Rename nprocs to nrows. Handle
1197 the case where osdata->items is empty. Rename column names to a
1198 canonical form to avoid problems with unusual column names.
1199
97643830
YQ
12002011-11-21 Yao Qi <yao@codesourcery.com>
1201
1202 * MAINTAINERS (Write After Approval): Keep list in alphabetical order.
1203
f196051f
SS
12042011-11-20 Stan Shebs <stan@codesourcery.com>
1205
1206 * NEWS: Mention tracepoint additions.
1207 * breakpoint.h (struct tracepoint): New field traceframe_usage.
1208 * breakpoint.c (print_one_breakpoint_location): Identify
1209 tracepoints as such when reporting hit counts, report
1210 trace buffer usage.
1211 (create_tracepoint_from_upload): Copy status info.
1212 * tracepoint.h (struct trace_status): Rename error_desc to stop_desc,
1213 add fields user_name, notes, start_time, stop_time.
1214 (struct uploaded_tp): Add fields hit_count, traceframe_usage.
1215 * tracepoint.c (trace_user): New global.
1216 (trace_notes): New global.
1217 (trace_stop_notes): New global.
1218 (start_tracing): Add argument and trace note handling.
1219 (stop_tracing): Ditto.
1220 (trace_start_command): Add notes argument.
1221 (trace_stop_command): Ditto.
1222 (trace_status_command): Report additional status info.
1223 (trace_status_mi): Similarly.
1224 (trace_save): Update, record tracepoint status.
1225 (set_disconnected_tracing): Call target method directly.
1226 (send_disconnected_tracing_value): Remove.
1227 (set_trace_user): New function.
1228 (set_trace_notes): New function.
1229 (set_trace_stop_notes): New function.
1230 (parse_trace_status): Handle additional status.
1231 (parse_tracepoint_status): New function.
1232 (parse_tracepoint_definition): Call it.
1233 (tfile_get_tracepoint_status): New function.
1234 (init_tfile_ops): Use it.
1235 (_initialize_tracepoint): Add new setshows.
1236 * target.h (struct target_ops): New methods to_get_tracepoint_status
1237 and to_set_trace_notes.
1238 (target_get_tracepoint_status): New macro.
1239 (target_set_trace_notes): New macro.
1240 * target.c (update_current_target): Add new methods.
1241 * remote.c (remote_get_tracepoint_status): New function.
1242 (remote_set_trace_notes): New function.
1243 (init_remote_ops): Add them.
1244 * mi/mi-main.c (mi_cmd_trace_start): Add argument to call.
1245 (mi_cmd_trace_stop): Ditto.
1246
3623dc3a
SD
12472011-11-20 Sanjoy Das <sdas@igalia.com>
1248
1249 * jit.c: Include regcache.h.
1250 (jit_gdbarch_data, jit_frame_unwind): New static variables.
1251 (jit_unwind_reg_set_impl, free_reg_value_impl)
1252 (jit_unwind_reg_get_impl, jit_frame_sniffer)
1253 (jit_frame_unwind_stop_reason, jit_frame_this_id)
1254 (jit_frame_prev_register, jit_dealloc_cache)
1255 (jit_prepend_unwinder, jit_gdbarch_data_init): New functions.
1256 (jit_inferior_init): Prepend (new) pseudo unwinder by calling
1257 jit_prepend_unwinder.
1258 (_initialize_jit): Register new gdbarch data jit_gdbarch_data.
1259
1825a88d
SD
12602011-11-20 Sanjoy Das <sdas@igalia.com>
1261
1262 * jit.c: Include block.h, dictionary.h and frame-unwind.h.
1263 (add_objfile_entry, jit_target_read_impl, jit_object_open_impl)
1264 (jit_symtab_open_impl, compare_block, jit_block_open_impl)
1265 (jit_symtab_line_mapping_add_impl, jit_symtab_close_impl)
1266 (finalize_symtab, jit_object_close_impl)
1267 (jit_reader_try_read_symtab, jit_bfd_try_read_symtab)
1268 (free_objfile_data): New functions.
1269 (_initialize_jit): Register jit_objfile_data with a proper cleanup
1270 function.
1271
784c47ee
SD
12722011-11-20 Sanjoy Das <sdas@igalia.com>
1273
1274 * jit.c: Include gdb-dlfcn.h.
1275 (loaded_jit_reader, reader_init_fn_sym): New static variables.
1276 (jit_reader_load, jit_reader_load_command)
1277 (jit_reader_unload_command): New functions.
1278 (_initialize_jit): Add commands "jit-reader-load" and
1279 "jit-reader-unload".
1280
a2d08b9e
SD
12812011-11-20 Sanjoy Das <sdas@igalia.com>
1282
1283 * Makefile.in: Add gdb-dlfcn.c and gdb-dlfcn.h to build system.
1284 * config.in: Add new #define HAVE_LIBDL.
1285 * configure.ac: Add check for -ldl.
1286 * configure: Re-generated by autoconf.
1287 * gdb-dlfcn.c: New file.
1288 * gdb-dlfcn.h: New file.
1289
b8e0a31c
SD
12902011-11-20 Sanjoy Das <sdas@igalia.com>
1291
1292 * config.in: Add new #defines: JIT_READER_DIR and
1293 JIT_READER_DIR_RELOCATABLE.
1294 * configure.ac: New GDB directory entry for jit-reader-dir.
1295 * configure: Re-generated by autoconf.
1296 * jit.c: New static variable: const char *jit_reader_dir.
1297 (_initialize_jit): Relocate jit_reader_dir.
1298
f997c383
SD
12992011-11-20 Sanjoy Das <sdas@igalia.com>
1300
1301 * Makefile.in: Add jit-reader.h as a header. Have it installed in
1302 $(includedir)/gdb.
1303 * configure.ac: Generate a correct value for TARGET_PTR for
1304 jit-reader.h. Tell configure to generate jit-reader.h from
1305 jit-reader.in.
1306 * configure: Re-generated by autoconf.
1307 * jit-reader.in: New file.
1308 * jit.c: Include jit-reader.h.
1309
dc8c0494
SD
13102011-11-20 Sanjoy Das <sdas@igalia.com>
1311
1312 * MAINTAINERS (Write After Approval): Add myself to the list.
1313
01efb936
UW
13142011-11-18 Ulrich Weigand <uweigand@de.ibm.com>
1315
1316 * findvar.c (read_frame_register_value): Respect value_offset
1317 of the register value. Remove big-endian special case.
1318
732f3f12
TT
13192011-11-18 Tom Tromey <tromey@redhat.com>
1320
1321 PR build/7196:
1322 * remote.c (putpkt_for_catch_errors): New function.
1323 (remote_kill): Use it.
1324
bfccc43c
YQ
13252011-11-18 Yao Qi <yao@codesourcery.com>
1326
1327 * breakpoint.c (create_breakpoint): Produce query message according to
1328 breakpoint's type.
1329 Allocate tracepoint per correct type.
1330 Don't check SALs for pending fast tracepoints.
1331 * tracepoint.c (process_tracepoint_on_disconnect): New.
1332 (disconnect_tracing): Call process_tracepoint_on_disconnect.
1333
3ea46bff
YQ
13342011-11-18 Yao Qi <yao@codesourcery.com>
1335
1336 * breakpoint.c (install_breakpoint): Add one more parameter so that
1337 update_global_location_list is called conditionally.
1338 (create_fork_vfork_event_catchpoint): Update.
1339 (create_syscall_event_catchpoint): Update.
1340 (create_breakpoint_sal): Update.
1341 (create_breakpoint_sal): Update. Call do_cleanups before
1342 install_breakpoint.
1343 * ada-lang.c (create_ada_exception_catchpoint): Update.
1344 * breakpoint.h (install_breakpoint): Update declaration.
1345
598cfb71
UW
13462011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1347
1348 * spu-tdep.c (spu_return_value): Fix handling of
1349 TYPE_CALLING_CONVENTION annotation.
1350
caf4328c
UW
13512011-11-16 Ulrich Weigand <uweigand@de.ibm.com>
1352
1353 * skip.c (skip_function_command): Work around uninitialized
1354 variable warning.
1355
2b54dda2
DM
13562011-11-16 David S. Miller <davem@davemloft.net>
1357
1358 * utils.c (report_command_stats): Cast delta_wall_time 'tv_sec' and
1359 'tv_usec' to long for printf since these fields have a type which
1360 varies.
1361
93bf33fd
DE
13622011-11-15 Doug Evans <dje@google.com>
1363
1364 * buildsym.c (add_symbol_to_list): Delete outdated comment.
1365
9cc10fd1
PK
13662011-11-15 Paul Koning <paul_koning@dell.com>
1367
1368 * python/py-type.c (typy_get_composite): New function.
1369 (typy_nonzero): New function.
1370 (typy_values): Rename from typy_fields.
1371 (typy_fields): New function.
1372 (typy_length): Raise exception if not struct, union, or enum type.
1373 (typy_getitem): Ditto.
1374 (typy_has_key): Ditto.
1375 (typy_make_iter): Ditto.
1376
c011a4f4
DE
13772011-11-15 Doug Evans <dje@google.com>
1378
1963ff96 1379 PR gdb/8367
c011a4f4
DE
1380 * NEWS: Mention new parameter basenames-may-differ.
1381 * dwarf2read.c (dw2_lookup_symtab): Avoid calling gdb_realpath if
1382 ! basenames_may_differ.
1383 * psymtab.c (lookup_partial_symtab): Ditto.
1384 * symtab.c (lookup_symtab): Ditto.
1385 (basenames_may_differ): New global.
1386 (_initialize_symtab): New parameter basenames-may-differ.
1387 * symtab.h (basenames_may_differ): Declare.
1388
865ecab4
LM
13892011-11-15 Pedro Alves <pedro@codesourcery.com>
1390 Luis Machado <lgustavo@codesourcery.com>
1391
1392 * auxv.c: Include observer.h.
1393 (auxv_inferior_data_cleanup): New.
1394 (invalidate_auxv_cache_inf): New.
1395 (invalidate_auxv_cache): New.
1396 (get_auxv_inferior_data): New.
1397 (auxv_inferior_data): New static global.
1398 (auxv_info): New structure.
1399 (target_auxv_search): Use get_auxv_inferior_data instead of
1400 target_read_alloc and don't free cached buffers.
1401 (fprint_target_auxv): Likewise
1402 (_initialize_auxv): Register per-inferior auxv cache and register
1403 observers to invalidate auxv cache when needed.
1404
ed59ded5
DE
14052011-11-14 Doug Evans <dje@google.com>
1406
37acd67c 1407 PR gdb/7200 Make "!" an alias for "shell".
ed59ded5
DE
1408 * NEWS: Add mention.
1409 * cli/cli-cmds.c (init_cli_cmds): Remove xdb_commands condition on
1410 adding "!" command, always add it.
1411 * cli/cli-decode.c (find_command_name_length): Recognize "!" as a
1412 command of length one.
1413
405f8e94
SS
14142011-11-14 Stan Shebs <stan@codesourcery.com>
1415 Kwok Cheung Yeung <kcy@codesourcery.com>
1416
1417 * NEWS: Document shorter fast tracepoints and qTMinFTPILen packet.
1418 * i386-tdep.c (i386_fast_tracepoint_valid_at): Query target for
1419 the minimum instruction size for fast tracepoints.
1420 * target.h (struct target_ops): Add new method
1421 to_get_min_fast_tracepoint_insn_len.
1422 (target_get_min_fast_tracepoint_insn_len): New.
1423 * target.c (update_current_target): Set up new target operation.
1424 * remote.c (remote_write_bytes_aux): Fix typo.
1425 (remote_get_min_fast_tracepoint_insn_len): New.
1426 (init_remote_ops): Initialize new field.
1427
3e05895e
TT
14282011-11-14 Tom Tromey <tromey@redhat.com>
1429
1430 * tracepoint.c (encode_actions_1): Use the location's gdbarch.
1431 (encode_actions): Likewise.
1432
1e4d1764
YQ
14332011-11-14 Yao Qi <yao@codesourcery.com>
1434
1435 * remote.c (struct remote_state): <install_in_trace> new field.
1436 (PACKET_InstallInTrace): New enum value.
1437 (remote_install_in_trace_feature): Support InstallInTrace.
1438 (remote_supports_install_in_trace): Likewise.
1439 (remote_protocol_features): Likewise.
1440 (_initialize_remote): Likewise.
1441 (remote_can_download_tracepoint): New.
1442 * target.h (struct target): New field
1443 `to_can_download_tracepoint'.
1444 (target_can_download_tracepoint): New macro.
1445 * target.c (update_current_target): Update.
1446 * breakpoint.h (struct bp_location): Add comment on field
1447 `duplicate'.
3ccd4ac6
YQ
1448 * breakpoint.c (should_be_inserted): Don't differentiate breakpoint
1449 and tracepoint.
1e4d1764
YQ
1450 (remove_breakpoints): Don't remove tracepoints.
1451 (tracepoint_locations_match ): New.
1452 (breakpoint_locations_match): Call it.
1453 (disable_breakpoints_in_unloaded_shlib): Handle tracepoint.
1454 (download_tracepoint_locations): New.
1455 (update_global_location_list): Call it.
1456 * tracepoint.c (find_matching_tracepoint): Delete.
1457 (find_matching_tracepoint_location): Renamed from
1458 find_matching_tracepoint. Return bp_location rather than
1459 tracepoint.
1460 (merge_uploaded_tracepoints): Set `inserted' field to 1 if
1461 tracepoint is found.
1462
e8ba3115
YQ
14632011-11-14 Yao Qi <yao@codesourcery.com>
1464
1465 * target.h (struct target): <to_download_tracepoint> Change type
1466 of parameter from tracepoint to bp_location.
1467 * target.c (update_current_target): Update.
1468 * tracepoint.c (start_tracing): Update.
1469 * remote.c (remote_download_tracepoint): Remove loop for each location
1470 of a tracepoint.
1471
edcc485a
MR
14722011-11-14 Maciej W. Rozycki <macro@codesourcery.com>
1473
1474 * i386-nat.c (i386_insert_hw_breakpoint): Call
1475 i386_update_inferior_debug_regs.
1476 (i386_remove_hw_breakpoint): Likewise.
1477
3742cc8b
YQ
14782011-11-14 Yao Qi <yao@codesourcery.com>
1479
1480 * breakpoint.c (init_raw_breakpoint): Call
1481 add_location_to_breakpoint to replace duplicated code.
1482 (add_location_to_breakpoint): Adjust the breakpoint's
1483 address prior to allocating a location.
1484
71eba9c2 14852011-11-12 Matt Rice <ratmice@gmail.com>
1486
1487 * macrocmd.c (macro_no_macro_info): New function.
1488 (macro_expand_command): Use macro_no_macro_info.
1489 (macro_expand_once_command): Ditto.
1490 (info_macro_command): Add argument processing,
1491 move info_definitions_command here.
1492 (_initialize_macrocmd): Remove info definitions command.
1493 Add arguments to info macro help text.
1494 * NEWS: Replace info definitions command with new info macro options.
1495
731971ed
KS
14962011-11-11 Keith Seitz <keiths@redhat.com>
1497
1498 PR gdb/12843
1499 * linespec.c (locate_first_half): Keep ':' if it looks
1500 like it could be part of a Windows path starting with
1501 a drive letter.
1502
6953d224
PA
15032011-11-10 Pedro Alves <pedro@codesourcery.com>
1504
1505 * linux-nat.c (linux_nat_wait): Don't force waking up the event
1506 loop when returning a TARGET_WAITKIND_NO_RESUMED.
1507
0c94aa73
PA
15082011-11-10 Pedro Alves <pedro@codesourcery.com>
1509
1510 * target.c (target_waitstatus_to_string): Handle
1511 TARGET_WAITKIND_NO_RESUMED.
1512
f6b47be4
DE
15132011-11-10 Doug Evans <dje@google.com>
1514
74e2f255
DE
1515 * dwarf2read.c (dw2_map_symbol_filenames): New parameter
1516 `need_fullname'.
1517 * psymtab.c (map_symbol_filenames_psymtab): Ditto.
1518 (map_partial_symbol_filenames): Ditto. All callers updated.
1519 * psymtab.h (map_partial_symbol_filenames): Update prototype.
1520 * symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
1521 parameter need_fullname.
1522
256f06f3
DE
1523 * psymtab.c (psymtab_to_fullname): Use cached copy if it exists.
1524 * source.c (symtab_to_fullname): Ditto.
1525
50f182aa
DE
1526 * defs.h (is_cplus_marker, set_demangling_style): Moved to ...
1527 * gdb-demangle.h: ... here. New file.
1528 * demangle.c: #include "gdb-demangle.h".
1529 (_initialize_demangler): Use initialize_file_ftype for prototype.
1530 Move "set demangle" and "set asm-demangle" parameters here from utils.c
1531 (demangle, show_demangle, asm_demangle, show_asm_demangle): Move here
1532 from utils.c
1533 * utils.c: Update. #include "gdb-demangle.h".
1534 * symtab.h (asm_demangle): Delete.
1535 (demangle): Move declaration next to use.
1536 * breakpoint.c: #include "gdb-demangle.h" instead of "demangle.h".
1537 * dwarf2read.c: #include "gdb-demangle.h".
1538 * gnu-v2-abi.c: Ditto.
1539 * jv-typeprint.c: Ditto.
1540 * mdebugread.c: Ditto.
1541 * p-typeprint.c: Ditto.
1542 * stabsread.c: Ditto.
1543 * printcmd.c: Ditto.
1544 (asm_demangle): Delete declaration.
1545 * tui/tui-stack.c: #include "gdb-demangle.h".
1546
f6b47be4
DE
1547 * python/py-type.c (typy_fields_items): Call check_typedef.
1548
22355c90
JB
15492011-11-10 Joel Brobecker <brobecker@adacore.com>
1550
1551 * findvar.c (read_frame_register_value): Read the correct bytes
1552 from registers on big-endian architectures.
1553
bd119cf1 15542011-11-10 Tom Tromey <tromey@redhat.com>
e28cade7
JB
1555
1556 * procfs.c (load_syscalls): Make a cleanup.
1557 (open_procinfo_files): fd==0 is ok.
1558
0a86f364
JB
15592011-11-10 Joel Brobecker <brobecker@adacore.com>
1560
1561 * procfs.c (iterate_over_mappings): Call do_cleanups before
1562 returning.
1563
9bc118a5
DE
15642011-11-09 Doug Evans <dje@google.com>
1565
1566 * gdbtypes.c (check_typedef): Document that this function can
1567 throw an exception.
1568
a7860e76
TT
15692011-11-09 Tom Tromey <tromey@redhat.com>
1570
1571 PR c++/13342:
1572 * valops.c (value_full_object): Return early if real type is
1573 smaller than the enclosing type.
1574
60965737
YQ
15752011-11-08 Yao Qi <yao@codesourcery.com>
1576
1577 * amd64-tdep.c (amd64_relocate_instruction): Make it static.
1578
72a2e3dc
MI
15792011-11-08 Meador Inge <meadori@codesourcery.com>
1580
1581 * arm-tdep.c (thumb_analyze_prologue): Always fallback on the SP
1582 register when the frame can't be determined.
1583 * arm-tdep.c (arm_analyze_prologue): Ditto.
1584
ce3b0ff7
SS
15852011-11-07 Stan Shebs <stan@codesourcery.com>
1586
1587 * MAINTAINERS: Move Michael Snyder to Past Maintainers.
1588
2b914b52
JB
15892011-11-07 Joel Brobecker <brobecker@adacore.com>
1590
1591 * infrun.c (handle_inferior_event): Minor reformatting.
1592
6f809020
DE
15932011-11-05 Doug Evans <dje@google.com>
1594
1595 * source.c (forget_cached_source_info_for_objfile): Move call to
1596 objfile->sf->qf->forget_cached_source_info outside of
1597 ALL_OBJFILE_SYMTABS loop.
1598 (forget_cached_source_info): Delete unused variable `s'.
1599
75d12218
JK
16002011-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1601
1602 * i386-nat.c (dr_ref_count): Remove unused variable.
1603
e565b837
DE
16042011-11-05 Doug Evans <dje@google.com>
1605
1606 * main.c (captured_main): Set lim_at_start before calling
1607 make_command_stats_cleanup.
1608
0a1c4d10
DE
16092011-11-04 Doug Evans <dje@google.com>
1610
1611 * utils.c: #include "timeval-utils.h".
1612 (cmd_stats): Rename start_time to start_cpu_time.
1613 New member start_wall_time.
1614 (report_command_stats): Report wall time.
1615 (make_command_stats_cleanup): Record start wall time.
1616
a1d705ee
TT
16172011-11-04 Tom Tromey <tromey@redhat.com>
1618
1619 * cp-namespace.c (cp_lookup_symbol_imports): Reindent.
1620
81de56be
RO
16212011-11-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1622
1623 * coff-pe-read.c: Include defs.h before bfd.h.
1624
3ab1ec27
PM
16252011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1626
1627 PR Python/13345
1628
1629 * python/python.c (python_run_simple_file): Expand tilde in path.
1630
cd829959
PM
16312011-11-04 Phil Muldoon <pmuldoon@redhat.com>
1632
1633 PR Python/13363
1634
1635 * python/py-type.c (typy_lookup_type): Do not return a type in
1636 an exception handler.
1637
080ad648
JK
16382011-11-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1639 Eli Zaretskii <eliz@gnu.org>
1640
1641 * linux-nat.c (_initialize_linux_nat): Improve help
1642 for `info proc stat', `info proc status', `info proc cwd',
1643 `info proc cmdline' and `info proc exe'.
1644
3065dfb6
SS
16452011-11-02 Stan Shebs <stan@codesourcery.com>
1646
1647 String collection for tracepoints.
1648 * NEWS: Mention string collection.
1649 * common/ax.def (tracenz): New bytecode.
1650 * ax-gdb.h (trace_string_kludge): Declare.
1651 * ax-gdb.c: Include valprint.h and c-lang.h.
1652 (trace_string_kludge): New global.
1653 (gen_traced_pop): Add string case.
1654 (agent_command): Add string case.
1655 * tracepoint.h (decode_agent_options): Declare.
1656 * tracepoint.c: Include cli-utils.h.
1657 (decode_agent_options): New function.
1658 (validate_actionline): Call it.
1659 (encode_actions_1): Ditto.
1660 * target.h (struct target_ops): New method to_supports_string_tracing.
1661 (target_supports_string_tracing): New macro.
1662 * target.c (update_current_target): Add to_supports_string_tracing.
1663 * remote.c (struct remote_state): New field string_tracing.
1664 (remote_string_tracing_feature): New function.
1665 (remote_protocol_features): New feature tracenz.
1666 (remote_supports_string_tracing): New function.
1667 (init_remote_ops): Set to_supports_string_tracing.
1668
f179e162
JK
16692011-11-02 Pedro Alves <pedro@codesourcery.com>
1670 Jan Kratochvil <jan.kratochvil@redhat.com>
1671
1672 * linux-nat.c: Include cli/cli-utils.h.
1673 (enum info_proc_what): New.
1674 (linux_nat_info_proc_cmd): Rename to ...
1675 (linux_nat_info_proc_cmd_1): ... here. Remove variables argv and all.
1676 New parameter what. Initialize cmdline_f, cwd_f, exe_f, mappings_f,
1677 status_f and stat_f from WHAT. Throw error on extra parameters.
1678 (linux_nat_info_proc_cmd, linux_nat_info_proc_cmd_mappings)
1679 (linux_nat_info_proc_cmd_stat, linux_nat_info_proc_cmd_status)
1680 (linux_nat_info_proc_cmd_cwd, linux_nat_info_proc_cmd_cmdline)
1681 (linux_nat_info_proc_cmd_exe, linux_nat_info_proc_cmd_all): New.
1682 (_initialize_linux_nat): New variable info_proc_cmdlist. Install `info
1683 proc mappings', `info proc stat`, `info proc status', `info proc cwd',
1684 `info proc cmdline', `info proc exe' and `info proc all' as real
1685 subcommands of `info proc'.
1686
7b35ec7f 16872011-11-01 Justin Lebar <justin.lebar@gmail.com>
1bfeeb0f
JL
1688
1689 * Makefile.in: (SFILES): Add skip.c.
1690 (HFILES_NO_SRCDIR): Add skip.h.
1691 (COMMON_OBS): Add skip.o.
1692 * skip.h, skip.c: New.
1693 * breakpoint.h (set_default_breakpoint): Remove.
1694 (get_sal_arch): Declare.
1695 * breakpoint.c: Remove default_breakpoint_valid,
1696 default_breakpoint_address, default_breakpoint_symtab,
1697 default_breakpoint_line, default_breakpoint_pspace variables.
1698 (get_sal_arch): Make public.
1699 (set_default_breakpoint): Remove.
1700 (parse_breakpoint_sals, create_breakpoint, clear_command,
1701 decode_line_spec_1): Remove uses of default_breakpoint variables;
1702 replaced with function calls into stack.c.
1703 * cli/cli-cmds.h: Add cmd_list_element *skiplist.
1704 * cli/cli-cmds.c: Add skiplist.
1705 (init_cmd_lists): Initialize skiplist.
1706 (init_cli_cmds): Fix comment (classes of commands appear in
1707 alphabetical order).
1708 * infrun.c (handle_inferior_event): Add check that we don't step into
1709 a function whose pc is marked for skip.
1710 * stack.c: Declare last_displayed_sal_valid, last_displayed_pspace,
1711 last_displayed_addr, last_displayed_symtab, last_displayed_line
1712 variables.
1713 (set_last_displayed_sal): New static function.
1714 (print_frame_info): Switch call to set_default_breakpoint to call to
1715 set_last_displayed_sal.
1716 (clear_last_displayed_sal, last_displayed_sal_is_valid,
1717 get_last_displayed_pspace, get_last_displayed_addr,
1718 get_last_displayed_symtab, get_last_displayed_line,
1719 get_last_displayed_sal): New public functions.
1720 * stack.h (clear_last_displayed_sal, last_displayed_sal_is_valid,
1721 get_last_displayed_pspace, get_last_displayed_addr,
1722 get_last_displayed_symtab, get_last_displayed_line,
1723 get_last_displayed_sal): Declare.
1724
b60e1588
JL
17252011-11-01 Justin Lebar <justin.lebar@gmail.com>
1726
1727 * MAINTAINERS (Write After Approval): Add myself to the list.
1728
d31647d2
YQ
17292011-10-29 Yao Qi <yao@codesourcery.com>
1730
1731 * infcmd.c (disconnect_command): Call disconnect_tracing.
1732
b1d96efd
JK
17332011-10-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1734
1735 Code cleanup.
1736 * symtab.c (skip_prologue_sal): Code reformatting.
1737
4dfb2365
JK
17382011-10-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1739
1740 PR symtab/13208
1741 * jit.c (jit_register_code): Remove unused variable my_cleanups. Check
1742 for NULL from bfd_open_from_target_memory. Fix ownership of NBFD and
1743 SAI.
1744
0e5bf2a8
PA
17452011-10-28 Pedro Alves <pedro@codesourcery.com>
1746
1747 * linux-nat.c (linux_nat_filter_event): Remove `options'
1748 parameter, and dead code that used it. If we're handling a
1749 PTRACE_EVENT_EXEC event, and the thread group leader is no longer
1750 in our lwp list, re-add it.
1751 (check_zombie_leaders): New.
1752 (linux_nat_wait_1): Remove `options' and `pid' locals. Always
1753 wait for children with WNOHANG, and always wait for all children.
1754 Don't check for no resumed children upfront. Simplify wait loop.
1755 Check for zombie thread group leaders after handling all wait
1756 statuses. Return TARGET_WAITKIND_NO_RESUMED if there no
1757 unwaited-for children left.
1758 * infrun.c (fetch_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1759 (handle_inferior_event): Handle TARGET_WAITKIND_NO_RESUMED.
1760 (normal_stop): Handle TARGET_WAITKIND_NO_RESUMED.
1761 * target.h (enum target_waitkind) <TARGET_WAITKIND_NO_RESUMED>: New.
1762
821296b7
SA
17632011-10-28 Sterling Augustine <saugustine@google.com>
1764
1765 * psymtab.c (map_symbol_filenames_psymtab): Call QUIT.
1766 * symtab.c (free_completion_list): New function.
1767 (do_free_completion_list): Likewise.
1768 (default_make_symbol_completion_list_break_on): New variable
1769 back_to. Call make_cleanup and discard_cleanups.
1770 (make_source_files_completion_list): Likewise.
1771
03c3051a
PK
17722011-10-28 Paul Koning <paul_koning@dell.com>
1773
1774 * python/lib/gdb/types.py (deep_items): Rename from deepitems.
1775 * NEWS: Mention deep_items.
1776
8e7ebaf5
PA
17772011-10-28 Alen Skondro <askondro@gmail.com>
1778
8de33dc2 1779 * ser-tcp.c [USE_WIN32API] (ETIMEDOUT): Don't define if already
8e7ebaf5
PA
1780 defined.
1781
e0c6ef61
MI
17822011-10-27 Meador Inge <meadori@codesourcery.com>
1783
1784 * MAINTAINERS (Write After Approval): Add myself to the list.
1785
b56d6f31
JB
17862011-10-27 Joel Brobecker <brobecker@adacore.com>
1787
1788 * value.h (read_frame_register_value): Add declaration.
1789 * findvar.c (read_frame_register_value): New function.
1790 (value_from_register): Use read_frame_register_value
1791 instead of get_frame_register_value + value_contents_copy
1792 to get value contents.
1793
d234ef5c
DE
17942011-10-27 Doug Evans <dje@google.com>
1795
1796 * cli/cli-cmds.c (source_script_with_search): Pass full path to
1797 source_script_from_stream if it may have been found on the search path.
1798 * python/py-auto-load.c (source_section_scripts): Pass full path to
1799 source_python_script_for_objfile.
1800 * python/python.c (source_python_script): Delete stream parameter.
1801 All callers updated.
1802 (source_python_script_for_objfile): Ditto.
1803 * python/python-internal.h (source_python_script_for_objfile): Update.
1804 * python/python.h (source_python_script): Update.
1805
d849d44f
TT
18062011-10-27 Tom Tromey <tromey@redhat.com>
1807
1808 * ada-lang.h (ada_start_decode_line_1, ada_finish_decode_line_1)
1809 (ada_sals_for_line): Remove declarations.
1810
2231f1fb
KP
18112011-10-27 Kevin Pouget <kevin.pouget@st.com>
1812
1813 Move unwind reasons to an external .def file
1814 * frame.c (frame_stop_reason_string): Rewrite using
1815 unwind_stop_reasons.def.
1816 * frame.h (enum unwind_stop_reason): Likewise.
1817 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
1818 (gdbpy_frame_stop_reason_string): Use new enum unwind_stop_reason
1819 constants for bound-checking.
1820 * unwind_stop_reasons.def: New file.
1821 * stack.c (backtrace_command_1): Handle UNWIND_FIRST_ERROR as an alias
1822 instead of a distinct value.
1823
f77b9a5d
PM
18242011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1825
1826 PR python/13331
1827
1828 * python/py-function.c (fnpy_call): Check 'args' is not NULL.
1829 (convert_values_to_python): Return on Python tuple allocation
1830 failure. Return NULL on value conversion error.
1831
76dce0be
PM
18322011-10-27 Phil Muldoon <pmuldoon@redhat.com>
1833
1834 * python/py-breakpoint.c (bppy_set_enabled): Use TRY_CATCH.
1835 (bppy_set_task): Ditto.
1836 (bppy_delete_breakpoint): Ditto.
1837 * python/py-symbol.c (gdbpy_lookup_symbol): Ditto.
1838 (gdbpy_lookup_global_symbol): Ditto.
1839 * python/py-lazy-string.c (stpy_convert_to_value): Ditto.
1840 * python/py-frame.c (frapy_is_valid): Ditto.
1841 (frame_info_to_frame_object): Ditto.
1842 * python/py-type.c (typy_lookup_type): Ditto.
1843 (typy_getitem): Ditto.
1844 (typy_has_key): Ditto.
1845 (typy_richcompare): Use TRY_CATCH. Do not return Py_NE on error.
1846
f17b6955
JB
18472011-10-26 Joel Brobecker <brobecker@adacore.com>
1848
1849 * gdbarch.h: Regenerate.
1850
86ba1042
JB
18512011-10-26 Meador Inge <meadori@codesourcery.com>
1852
1853 * gdbarch.sh (function_list): Use 'pstring' when printing
1854 'gcore_bfd_target'.
1855 * gdbarch.c: Regenerate.
1856
c34fd852
UW
18572011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1858
1859 * regcache.c (registers_changed_ptid): Invalidate thread architecture
1860 and frame caches if PTID refers to all threads of a process.
1861
931bb47f
UW
18622011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1863
1864 * spu-tdep.c (spu_catch_start): Pass non-NULL breakpoint ops
1865 to create_breakpoint.
1866
88aed45e
UW
18672011-10-26 Ulrich Weigand <uweigand@de.ibm.com>
1868
1869 * ppc-sysv-tdep.c (ppc_sysv_use_opencl_abi): New function.
1870 (ppc_sysv_abi_push_dummy_call): Use it.
1871 (do_ppc_sysv_return_value): Likewise.
1872 (ppc64_sysv_abi_push_dummy_call): Likewise.
1873 (ppc64_sysv_abi_return_value): Likewise.
1874
3eaf3fa2
PK
18752011-10-26 Paul Koning <paul_koning@dell.com>
1876
1877 * python/lib/gdb/types.py (deepitems): New function.
1878
913460fc
PK
18792011-10-25 Paul Koning <paul_koning@dell.com>
1880
1881 PR python/13327
1882
1883 * python/py-value.c (value_to_value_object): Remove fetching of
1884 the value if it was lazy.
1885 (valpy_get_is_lazy): New function.
1886 (valpy_fetch_lazy): New function.
1887
2b5b9d09
JB
18882011-10-24 Joel Brobecker <brobecker@adacore.com>
1889
1890 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Do not check
1891 FUNC_TYPE's calling convention if FUNC_TYPE is not a function.
1892
e21ffe51
PA
18932011-10-24 Pedro Alves <pedro@codesourcery.com>
1894
1895 * linux-nat.c (linux_handle_extended_wait): When handling a clone
1896 event, in non-stop, if not stopping, make sure the new lwp has
1897 last_resume_kind set to resume_continue. Assert that when we're
1898 resuming the new lwp, its last_resume_kind is resume_continue.
1899
7aee8dc2
PA
19002011-10-24 Pedro Alves <pedro@codesourcery.com>
1901
1902 * infrun.c (handle_inferior_event): Don't assume inferior_ptid is
1903 already set when marking the event thread as not executing in
1904 non-stop mode.
1905
4b4e080e
PA
19062011-10-24 Pedro Alves <pedro@codesourcery.com>
1907
1908 * infrun.c (handle_inferior_event): Add debug output for
1909 TARGET_WAITKIND_NO_HISTORY.
1910
baacfb07
PM
19112011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1912
1913 * NEWS: Move set/show extended-prompt to "New Options". Expand
1914 description. Fix typos.
1915
8432bc41
PM
19162011-10-24 Phil Muldoon <pmuldoon@redhat.com>
1917
1918 PR python/13310
1919
1920 * python/py-param.c (call_doc_function): Correctly deference on
1921 function exit.
1922
6cda5a20
JB
19232011-10-21 Joel Brobecker <brobecker@adacore.com>
1924
1925 * ada-tasks.c (print_ada_task_info): Fix computation of
1926 number of tasks displayed in command output.
1927
13294f7d
JK
19282011-10-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1929 Ulrich Weigand <uweigand@de.ibm.com>
1930
1931 * dwarf2-frame-tailcall.c: Include dwarf2-frame.h.
1932 (dwarf2_tailcall_prev_register_first): Use dwarf2_frame_cfa.
1933 (dwarf2_tailcall_sniffer_first): Remove variable pc_regnum. Replace
1934 gdbarch_pc_regnum and frame_unwind_register_unsigned by
1935 gdbarch_unwind_pc.
1936
460c1c54
CC
19372011-10-20 Cary Coutant <ccoutant@google.com>
1938
1939 * dwarf2read.c (dw2_get_file_names): Move adjustment for type
1940 section to...
1941 (partial_read_comp_unit_head): ...here. Add is_debug_type_section
1942 flag. Adjust all callers.
1943 (process_psymtab_comp_unit): Remove adjustment for type section.
1944
a10964d1
AR
19452011-10-20 Aleksandar Ristovski <aristovski@qnx.com>
1946
1947 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Changed function
1948 arguments by adding OBJFILE. Instead of getting objfile from
1949 symbol's symtab, use new argument OBJFILE.
1950 * cp-support.h (cp_scan_for_anonymous_namespaces): Changed function
1951 arguments by adding OBJFILE.
1952 * gdb/dwarf2read.c (new_symbol_full): Change call to
1953 cp_scan_for_anonymous_namespaces to match new signature.
1954 * gdb/stabsread.c (define_symbol): Change call to
1955 cp_scan_for_anonymous_namespaces to match new signature.
1956
27ca1a5b
PM
19572011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1958
1959 PR python/13308
1960 PR python/13309
1961
1962 * python/py-breakpoint.c (gdbpy_breakpoints): Fix List reference
1963 leak.
1964 * python/py-inferior.c (gdbpy_inferiors): Fix List reference
1965 leak. Delete unused variables.
1966
9df2fbc4
PM
19672011-10-20 Phil Muldoon <pmuldoon@redhat.com>
1968
1969 PR python/12656
1970
1971 * python/py-frame.c (frapy_read_var): Use const struct *block.
1972 * python/py-type.c (typy_lookup_typename): Likewise.
1973 (typy_lookup_type): Likewise.
1974 (typy_legacy_template_argument): Likewise.
1975 (typy_template_argument): Likewise.
1976 (gdbpy_lookup_type): Likewise.
1977 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1978 * python/py-block.c (blpy_block_object): Likewise.
1979 (blpy_iter): Likewise.
1980 (blpy_get_start): Likewise.
1981 (blpy_get_end): Likewise.
1982 (blpy_get_function): Likewise.
1983 (blpy_get_superblock): Likewise.
1984 (set_block): Likewise.
1985 (block_to_block_object): Likewise.
1986 (block_object_to_block): Likewise.
1987 (blpy_is_valid): Likewise.
1988 (blpy_get_global_block): New function.
1989 (blpy_get_static_block): New function.
1990 (blpy_is_global): New function.
1991 (blpy_is_static): New function.
1992 * blockframe.c (block_innermost_frame): Likewise.
1993 * valops.c (value_of_variable): Likewise.
1994 * frame.h: Update prototypes.
1995 * python/python-internal.h: Likewise.
1996 * value.h: Likewise.
1997
4743b735
CC
19982011-10-19 Cary Coutant <ccoutant@google.com>
1999
2000 * dwarf2read.c (create_debug_types_hash_table): Fix size of
2001 type_offset field.
2002
6caca83c
CC
20032011-10-19 Cary Coutant <ccoutant@google.com>
2004
2005 * dwarf2read.c (peek_abbrev_code): New function.
2006 (dw2_get_file_names): Check for dummy compilation units.
2007 (create_debug_types_hash_table): Likewise.
2008 (process_psymtab_comp_unit): Likewise.
2009 (load_partial_comp_unit): Likewise.
2010 (load_full_comp_unit): Likewise.
2011
43136979
AR
20122011-10-18 Aleksandar Ristovski <aristovski@qnx.com>
2013
2014 * solib-svr4.c (read_program_header): New variables pt_phdr, pt_phdr_p,
2015 initialize them from target PT_PHDR p_vaddr, relocate sect_addr by
2016 pt_phdr if PT_PHDR was found.
2017
0a07729b
TT
20182011-10-17 Joost van der Sluis <joost@cnoc.nl>
2019
2020 * gdbtypes.h: Added TYPE_SAFE_NAME macro to get the name of a
2021 type or "<unnamed type"> when there is no name assigned.
2022 * gnu-v3-abi.c (gnuv3_rtti_type): Use TYPE_SAFE_NAME macro to
2023 avoid a sigint when no name is assigned.
2024
21ae7a4d
JK
20252011-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2026
2027 Revert:
2028 2011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2029 * dwarf2expr.c (ctx_no_read_reg): New function.
2030 * dwarf2expr.h (ctx_no_read_reg): New declaration.
2031 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
2032 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
2033 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
2034
32d1c362
DE
20352011-10-16 Doug Evans <dje@google.com>
2036
2037 * NEWS: Document python gdb.printing.register_pretty_printer's new
2038 `replace' parameter.
2039
da096638
KS
20402011-10-14 Keith Seitz <keiths@redhat.com>
2041
2042 PR c++/13225
2043 * eval.c (evaluate_subexp_standard): Do not construct
2044 an array of types; pass the value array directly to
2045 find_overload_match.
2046 * gdbtypes.h (NULL_POINTER_CONVERSION_BADNESS): Declare.
2047 (rank_function): Take an array of values instead of types.
2048 (rank_one_type): Add struct value * parameter.
2049 * gdbtypes.c (NULL_POINTER_CONVERSION_BADNESS): Define.
2050 (rank_function): For each argument, pass the argument's
2051 value to rank_one_type.
2052 (rank_one_type): Add VALUE parameter.
2053 If the parameter type is a pointer and the argument type
2054 is an integer, return NULL_POINTER_CONVERSION_BADNESS if
2055 VALUE is zero.
2056 Update all calls to rank_one_type, passing NULL for new
2057 VALUE parameter.
2058 * valarith.c (value_user_defined_cpp_op): Do not construct
2059 an array of types; pass the value array directly to
2060 find_overload_match.
2061 * valops.c (find_overload_method_list): Take an array of
2062 values instead of types.
2063 Save the type of OBJP for later use.
2064 Update calls to find_oload_champ, and find_oload_champ_namespace.
2065 (find_oload_champ_namespace): Take an array of values instead
2066 of types.
2067 (find_oload_champ_namespace_loop): Likewise.
2068 (find_oload_champ): Likewise.
2069 (classify_oload_match): Inspect all arguments
2070 until INCOMPATIBLE is found. Return the worst badness found
2071 otherwise.
2072 (compare_parameters): Update call to rank_one_type.
2073 * value.h (find_overload_match): Take an array of values instead
2074 of types.
2075
3957565a
JK
20762011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2077
2078 Drop lazy lm_info reading.
2079 * solib-svr4.c (struct lm_info): Remove field lm. New fields l_addr_p,
2080 l_addr_inferior, l_ld, l_next, l_prev and l_name.
2081 (lm_info_read): New function.
2082 (lm_addr_from_link_map, lm_dynamic_from_link_map): Remove.
2083 (lm_addr_check): Use l_addr_p. No longer use lm_addr_from_link_map and
2084 lm_dynamic_from_link_map.
2085 (lm_next, lm_prev, lm_name): Remove.
2086 (svr4_keep_data_in_core): Use lm_info_read, drop the lm_info entries
2087 initialization incl. read_memory. No longer use lm_name.
2088 (svr4_free_so): Drop lm_info->lm freeing.
2089 (svr4_default_sos): Initialize lminfo with zeroes. Use l_addr_p. Drop
2090 explicit lm_addr and lm initialization.
2091 (svr4_read_so_list): Use lm_info_read, drop the initailization of
2092 fields by hand, incl. read_memory. No longer use lm_next, lm_prev and
2093 lm_name.
2094
cb08cc53
JK
20952011-10-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2096 Paul Pluzhnikov <ppluzhnikov@google.com>
2097
2098 * defs.h (struct so_list): New forward declaration.
2099 (make_cleanup_free_so): New declaration.
2100 * solib-svr4.c (ignore_first_link_map_entry): Remove.
2101 (svr4_free_so): Move the function here from downwards. Handle NULL
2102 so->lm_info.
2103 (svr4_free_library_list): New.
2104 (svr4_read_so_list): New, moved here code from svr4_current_sos.
2105 Use more cleanups. Use new parameter ignore_first instead of
2106 ignore_first_link_map_entry.
2107 (svr4_current_sos): New variable ignore_first, initialize it. New
2108 variable back_to, use it for svr4_free_library_list protection.
2109 (svr4_free_so): Remove - move upwards.
2110 * utils.c: Include solist.h.
2111 (do_free_so, make_cleanup_free_so): New functions.
2112
22c05d8a
JK
21132011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2114
2115 Fix internal error regression.
2116 * value.c (value_primitive_field): Handle value_optimized_out. Move
2117 packed bitfields comment.
2118
d930d06e
TT
21192011-10-13 Tom Tromey <tromey@redhat.com>
2120
2121 * python/py-breakpoint.c (gdbpy_breakpoint_deleted): Ensure GIL is
2122 always released.
2123
2ff6b080
TT
21242011-10-13 Tom Tromey <tromey@redhat.com>
2125
2126 * python/py-type.c (typy_has_key): Make 'field' const.
2127
d6c5869f
LM
21282011-10-13 Luis Machado <lgustavo@codesourcery.com>
2129
2130 * remote.c (remote_save_trace_data): Invert comparison.
2131
a70633a2
LM
21322011-10-13 Luis Machado <lgustavo@codesourcery.com>
2133
2134 * tracepoint.c (trace_save_command): Use filename instead of
2135 args when printing.
2136
e103e986
JK
21372011-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2138
2139 * dwarf2read.c (dwarf2_fetch_die_location_block): Initialize .data even
2140 if .size is 0.
2141
db24da6d
YQ
21422011-10-13 Yao Qi <yao@codesourcery.com>
2143
2144 PR gdb/12703
2145 * arm-tdep.c (thumb_analyze_prologue): Call thumb_insn_size to check
2146 whether insn is a 32-bit Thumb-2 instruction.
2147 (thumb_in_function_epilogue_p): Likewise.
2148 (thumb_get_next_pc_raw): Likewise.
2149 (arm_breakpoint_from_pc): Likewise.
2150
1d6edc3c
JK
21512011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2152
2153 Fix empty DWARF expressions DATA vs. SIZE conditionals.
2154 * dwarf2loc.c (dwarf2_find_location_expression): Clear *LOCEXPR_LENGTH.
2155 (dwarf_expr_frame_base_1): Indicate unavailability via zero *LENGTH.
2156 (locexpr_tracepoint_var_ref): Check only zero SIZE, not zero DATA.
2157 (loclist_read_variable, loclist_tracepoint_var_ref): Do not check for
2158 zero DATA.
2159 * dwarf2loc.h (struct dwarf2_locexpr_baton): Comment DATA vs. SIZE
2160 validity.
2161 * dwarf2read.c (struct dwarf_block): Comment DATA validity.
2162 (dwarf2_fetch_die_location_block, dwarf2_symbol_mark_computed): Do not
2163 clear DATA on zero SIZE.
2164
adabb602
DE
21652011-10-12 Doug Evans <dje@google.com>
2166
2167 * dwarf2read.c (partial_read_comp_unit_head): Set header->offset,
2168 header->first_die_offset here. All callers updated.
2169
5048e516
JK
21702011-10-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2171
2172 Fix compatibility with texinfo versions older than 4.12.
2173 * Makefile.in (MAKEINFO): Set to @MAKEINFO@.
2174 (MAKEINFOFLAGS, MAKEINFO_EXTRA_FLAGS, MAKEINFO_CMD): New.
2175 (MAKEHTMLFLAGS): Use MAKEINFO_CMD.
2176 (FLAGS_TO_PASS): Add MAKEINFOFLAGS and MAKEINFO_EXTRA_FLAGS.
2177 * configure: Regenerate.
2178 * configure.ac (MAKEINFO): Find it, from libiberty/configure.ac.
2179 (MAKEINFOFLAGS): Pre-set it to --split-size=5000000.
2180 (MAKEINFO_EXTRA_FLAGS): New test for -DHAVE_MAKEINFO_CLICK.
2181
0574c78f
GB
21822011-10-12 Gary Benson <gbenson@redhat.com>
2183
2184 * breakpoint.h (pc_at_non_inline_function): Declare.
2185 * breakpoint.c (is_non_inline_function,
2186 pc_at_non_inline_function): New functions.
2187 * infrun.c (handle_inferior_event): Don't call skip_inline_frames
2188 if the stop is at a location where functions cannot be inlined.
2189
12d9289a
PA
21902011-10-12 Pedro Alves <pedro@codesourcery.com>
2191
2192 * linux-nat.c (stop_and_resume_callback): Don't re-resume LWPs if
2193 the core wanted them stopped, or if they now have a pending event
2194 to report.
ecf8e7f5
PA
2195 (linux_nat_filter_event): New parameter `new_pending_p'. Pass it
2196 down to stop_and_resume_callback.
2197 (linux_nat_wait_1): Always clear `options' when retrying. Handle
2198 having new pending events after calling linux_nat_filter_event.
12d9289a 2199
96408a79
SA
22002011-10-11 Sterling Augustine <saugustine@google.com>
2201
2202 * dwarf2read.c: Undo inadvertent changes in previous commit.
2203
9c6c53f7
SA
22042011-10-11 Sterling Augustine <saugustine@google.com>
2205
2206 * dwarf2read.c (partial_die_parent_scope): Rearrange conditional
2207 logic.
2208
0e8aefe7
UW
22092011-10-11 Ulrich Weigand <ulrich.weigand@linaro.org>
2210
2211 * symfile.c (separate_debug_file_exists): Fix condition.
2212
349d1385
DM
22132011-10-11 David S. Miller <davem@davemloft.net>
2214
2215 * regcache.c (regcache_restore): Do not write unavailable regs, mark
2216 static.
2217 * regcache.h (regcache_restore): Remove declaration.
2218
205c306f
DM
2219 * gdbarch.sh: New field 'long_long_align_bit'.
2220 * gdbarch.c, gdbarch.h: Regenerate.
2221 * i386-tdep.c (i386_gdbarch_init): Set long_long_align_bit to 32.
2222 * jit.c (jit_read_code_entry): Use it to determine correct size offset.
2223
941b2081
JK
22242011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2225
2226 Revert this part of:
2227 2011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2228 Support @entry in input expressions.
2229 * c-exp.y (ENTRY, unknown_cpp_name): New.
2230 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2231 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2232 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2233 (name_not_typename: ENTRY): New.
2234 (yylex): Recognize ENTRY.
2235
2236 Reimplement @entry in input expressions.
2237 * c-exp.y (ENTRY): New.
2238 (variable: name_not_typename ENTRY): New.
2239 (lex_one_token): Optionally return ENTRY instead of the '@' lex.
2240
3c4d7e12
PA
22412011-10-11 Pedro Alves <pedro@codesourcery.com>
2242
2243 * linux-nat.c (linux_handle_extended_wait): Always dump both the
2244 parent and child's pids as soon as we detect a clone event.
2245 Adjust another debug message.
2246
ea23808b
PA
22472011-10-11 Pedro Alves <pedro@codesourcery.com>
2248
2249 * linux-nat.c (linux_lwp_is_zombie): Return early if the LWP is
2250 not zombie instead of reading the whole file.
2251
904578ed
JK
22522011-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2253
2254 Fix separate debuginfo warning with "remote:" access.
2255 * objfiles.h (struct objfile): New fields crc32 and crc32_p.
2256 * symfile.c (get_file_crc): New function with the code moved from ...
2257 (separate_debug_file_exists): ... this function, specifically variables
2258 buffer and count. New variable verified_as_different, set it. Remove
2259 file_crc initialization. Verify also if both files are not the same
2260 manually, if needed.
2261
51370a33
YQ
22622011-10-11 Yao Qi <yao@codesourcery.com>
2263
2264 * arm-tdep.c (arm_get_next_pc_raw): Use read_memory_unsigned_integer
2265 to get address.
2266
0838fb57
DE
22672011-10-10 Doug Evans <dje@google.com>
2268
2269 * linux-thread-db.c (thread_db_new_objfile): Only try to load
2270 libthread_db when we load libpthread or the main symbol file.
2271 (thread_db_inferior_created): New function.
2272 (_initialize_thread_db): Attach inferior_created observer.
2273 * linux-nat.c (linux_child_post_attach): Remove call to
2274 check_for_thread_db.
2275 (linux_child_post_startup_inferior): Ditto.
2276 * objfiles.h (OBJF_MAINLINE): Define.
2277 * symfile.c (symbol_file_add_with_addrs_or_offsets): Pass it to
2278 allocate_objfile when appropriate.
2279
623bd5b7
UW
22802011-10-10 Ulrich Weigand <ulrich.weigand@linaro.org>
2281
2282 PR gdb/13218
2283 * arm-linux-nat.c (os_version, os_major, os_minor, os_release):
2284 Remove unused variables.
2285 (get_linux_version): Remove function.
2286 (_initialize_arm_linux_nat): Do not call it.
2287
79395f92
PA
22882011-10-10 Pedro Alves <pedro@codesourcery.com>
2289
2290 * linux-nat.c (linux_handle_extended_wait): Don't resume the new
2291 new clone lwp if the core asked it to stop. Don't pass on
2292 unexpected signals to the new clone; leave them pending instead.
2293
eff3df78
PA
22942011-10-10 Pedro Alves <pedro@codesourcery.com>
2295
2296 * linux-nat.c (resume_lwp): Remove redundant debug output.
2297
4b60df3d
PA
22982011-10-10 Pedro Alves <pedro@codesourcery.com>
2299
2300 * linux-nat.c (linux_nat_wait_1): Copy the event lwp's
2301 last_resume_kind before clearing it, and use the copy instead to
2302 determine whether to report a SIGSTOP as TARGET_SIGNAL_0. Use
2303 resume_clear_callback in the non-stop path too.
2304
6501578c
YQ
23052011-10-09 Yao Qi <yao@codesourcery.com>
2306
2307 * valprint.c (value_check_printable): Add one parameter OPTIONS.
2308 Honor OPTIONS and VAL's type.
2309 (common_val_print, value_print): Update to pass one more parameter.
2310
5a56e9c5
DE
23112011-10-09 Doug Evans <dje@google.com>
2312
2313 Add new "alias" command.
2314 * NEWS: Mention new command.
2315 * command.h (valid_user_defined_cmd_name_p): Declare.
2316 * defs.h (make_cleanup_dyn_string_delete): Declare.
2317 * utils.c: #include "dyn-string.h".
2318 (do_dyn_string_delete, make_cleanup_dyn_string_delete): New functions.
2319 * cli/cli-cmds.c: #include "dyn-string.h".
2320 (argv_to_dyn_string, valid_command_p, alias_command): New functions.
2321 (init_cli_cmds): Add new command.
2322 * cli/cli-decode.c (valid_user_defined_cmd_name_p): New function.
2323
509f0fd9
JK
23242011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 Fix compatibility with older GCCs.
2327 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Initialize parameter.
2328 * stack.c (read_frame_arg): Initialize val_deref.
2329
2bda9cc5
JK
23302011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2331
2332 Entry values NEWS entries, DWARF disassembly support.
2333 * NEWS: New entry values entry.
2334 (set print entry-values, show print entry-values)
2335 (set debug entry-values, show debug entry-values): New entries.
2336 * dwarf2loc.c (disassemble_dwarf_expression): New parameters start and
2337 indent. Remove variable start. Move header printing out. Respect
2338 INDENT. Support DW_OP_GNU_entry_value.
2339 (locexpr_describe_location_1): Move the header printing here, extend
2340 the disassemble_dwarf_expression passed parameters.
2341
a471c594
JK
23422011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2343
2344 Display @entry parameter values even for references.
2345 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_REF>: Try also
2346 coerce_ref_if_computed.
2347 * c-valprint.c (c_val_print) <TYPE_CODE_REF>: Likewise.
2348 * dwarf2expr.c (dwarf_block_to_dwarf_reg_deref): New function.
2349 (execute_stack_op) <DW_OP_GNU_entry_value>: Add -1 deref_size to the
2350 existing push_dwarf_reg_entry_value call. Add new detection calling
2351 dwarf_block_to_dwarf_reg_deref. Update the error message.
2352 (ctx_no_push_dwarf_reg_entry_value): New parameter deref_size.
2353 * dwarf2expr.h
2354 (struct dwarf_expr_context_funcs) <push_dwarf_reg_entry_value>: Add new
2355 parameter deref_size, describe it in the comment.
2356 (ctx_no_push_dwarf_reg_entry_value): Add new parameter deref_size.
2357 (dwarf_block_to_dwarf_reg_deref): New declaration.
2358 * dwarf2loc.c (dwarf_entry_parameter_to_value): Add new parameter
2359 deref_size, describe it in the function comment. New variables
2360 data_src and size, fetch the alternative block accoring to DEREF_SIZE.
2361 (dwarf_expr_push_dwarf_reg_entry_value): Add new parameter deref_size,
2362 describe it in the function comment. Fetch the alternative block
2363 accoring to DEREF_SIZE.
2364 (entry_data_value_coerce_ref, entry_data_value_copy_closure)
2365 (entry_data_value_free_closure, entry_data_value_funcs): New.
2366 (value_of_dwarf_reg_entry): New variables checked_type, target_type,
2367 outer_val, target_val, val and addr. Try to fetch and create also
2368 referenced value content.
2369 (pieced_value_funcs): NULL value for coerce_ref.
2370 (needs_dwarf_reg_entry_value): Add new parameter deref_size.
2371 * f-valprint.c (f_val_print) <TYPE_CODE_REF>: Try also
2372 coerce_ref_if_computed.
2373 * opencl-lang.c (opencl_value_funcs): NULL value for coerce_ref.
2374 * p-valprint.c (pascal_val_print) <TYPE_CODE_REF>: Likewise.
2375 * stack.c (read_frame_arg): Compare also dereferenced values.
2376 * value.c (value_computed_funcs): Make the parameter v const, use
2377 value_lval_const for it.
2378 (value_lval_const, coerce_ref_if_computed): New function.
2379 (coerce_ref): New variable retval. Call also coerce_ref_if_computed.
2380 * value.h (struct lval_funcs): New field coerce_ref.
2381 (value_computed_funcs): Make the parameter v const.
2382 (value_lval_const, coerce_ref_if_computed): New declarations.
2383
36b11add
JK
23842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2385
2386 Support @entry in input expressions.
2387 * c-exp.y (ENTRY, unknown_cpp_name): New.
2388 (exp: UNKNOWN_CPP_NAME): Change to `exp: unknown_cpp_name'.
2389 (unknown_cpp_name: UNKNOWN_CPP_NAME, unknown_cpp_name: ENTRY)
2390 (variable: name_not_typename '@' ENTRY, name: ENTRY)
2391 (name_not_typename: ENTRY): New.
2392 (yylex): Recognize ENTRY.
2393 * eval.c (evaluate_subexp_standard): Support also OP_VAR_ENTRY_VALUE.
2394 * expprint.c (print_subexp_standard, dump_subexp_body_standard):
2395 Likewise.
2396 * parse.c (operator_length_standard): Likewise.
2397 * std-operator.def: New operator OP_VAR_ENTRY_VALUE.
2398
3343315b
JK
23992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2400
2401 Display referenced values in backtraces.
2402 * printcmd.c (print_variable_and_value): Set OPTS.DEREF_REF to 1.
2403 * stack.c (print_frame_arg): Likewise.
2404
ac71a68c
JK
24052011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2406
2407 Make some lval_funcs methods to default on NULL.
2408 * valops.c (value_fetch_lazy): Check if lval_computed read method is
2409 NULL.
2410 (value_assign): Check if lval_computed write method is NULL.
2411 * value.h (struct lval_funcs): Comment NULL values for read and write
2412 methods.
2413
e18b2753
JK
24142011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2415
2416 Display @entry parameter values (without references).
2417 * dwarf2expr.c (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2418 New functions.
2419 * dwarf2expr.h (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset):
2420 New declarations.
2421 * dwarf2loc.c (dwarf2_find_location_expression): Support location list
2422 entry record.
2423 (dwarf_entry_parameter_to_value, value_of_dwarf_reg_entry)
2424 (value_of_dwarf_block_entry, locexpr_read_variable_at_entry): New
2425 functions.
2426 (dwarf2_locexpr_funcs): Install locexpr_read_variable_at_entry.
2427 (loclist_read_variable_at_entry): New function.
2428 (dwarf2_loclist_funcs): Install loclist_read_variable_at_entry.
2429 * dwarf2read.c (read_call_site_scope): Support also DW_OP_fbreg in
2430 DW_AT_location, call dwarf_block_to_sp_offset for it.
2431 * frame.h (print_entry_values_no, print_entry_values_only)
2432 (print_entry_values_preferred, print_entry_values_if_needed)
2433 (print_entry_values_both, print_entry_values_compact)
2434 (print_entry_values_default, print_entry_values): New declarations.
2435 (struct frame_arg): New field entry_kind.
2436 (read_frame_arg): New parameter entryargp.
2437 * mi/mi-cmd-stack.c (list_arg_or_local): New gdb_assert for
2438 arg->entry_kind. Optionally print the `@entry' suffix.
2439 (list_args_or_locals): New variable entryarg, initialize it.
2440 Initialize also entry_kind of arg and entryarg. Conditionalize
2441 list_arg_or_local for arg, add list_arg_or_local for entryarg. Call
2442 xfree for entryarg.error.
2443 * stack.c (print_entry_values_no, print_entry_values_only)
2444 (print_entry_values_preferred, print_entry_values_if_needed)
2445 (print_entry_values_both, print_entry_values_compact)
2446 (print_entry_values_default, print_entry_values_choices)
2447 (print_entry_values): New variables.
2448 (print_frame_arg): New gdb_assert for arg->entry_kind. Optionally
2449 print the `@entry' suffix, possibly in combination for
2450 print_entry_values_compact.
2451 (read_frame_arg): New parameter entryargp, new variables entryval,
2452 entryval_error and val_equal. Read in also entryargp, respect
2453 print_entry_values, compare the values using val_equal, fill in also
2454 argp->entry_kind (together with entryargp->entry_kind).
2455 (print_frame_args): New variable entryarg, initialize it.
2456 Conditionalize print_frame_arg for arg, add print_frame_arg for
2457 entryarg. Call xfree for entryarg.error.
2458 (_initialize_stack): Call add_setshow_enum_cmd for `entry-values'.
2459 * symtab.h (struct symbol_computed_ops): New field
2460 read_variable_at_entry.
2461
93d86cef
JK
24622011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2463
2464 Code reshuffle.
2465 * frame.h (struct frame_arg): New definition.
2466 (read_frame_arg): New declaration.
2467 * mi/mi-cmd-stack.c (list_arg_or_local): New functiom from ...
2468 (list_args_or_locals): ... the code here. New variable arg, call
2469 read_frame_arg and list_arg_or_local with it. Unify the
2470 PRINT_SIMPLE_VALUES and PRINT_ALL_VALUES cases. Call xfree for
2471 arg.error.
2472 * stack.c (print_frame_arg): New functiom from the code of
2473 print_frame_args.
2474 (read_frame_arg): New function.
2475 (print_frame_args): Remove variable val. New variable arg, call
2476 read_frame_arg and print_frame_arg with it. Call xfree for arg.error.
2477
2d6c5dc2
JK
24782011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2479
2480 Protect entry values against self tail calls.
2481 * dwarf2loc.c (VEC (CORE_ADDR), func_verify_no_selftailcall): New.
2482 (dwarf_expr_dwarf_reg_entry_value): Call func_verify_no_selftailcall.
2483
111c6489
JK
24842011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2485
2486 Recognize virtual tail call frames.
2487 * Makefile.in (SFILES): Add dwarf2-frame-tailcall.c.
2488 (HFILES_NO_SRCDIR): Add dwarf2-frame-tailcall.h.
2489 (COMMON_OBS): Add dwarf2-frame-tailcall.o.
2490 * dwarf2-frame-tailcall.c: New file.
2491 * dwarf2-frame-tailcall.h: New file.
2492 * dwarf2-frame.c: Include dwarf2-frame-tailcall.h.
2493 (execute_cfa_program): New function comment. Return INSN_PTR. Reset
2494 REGS.PREV only after CIE execution.
2495 (struct dwarf2_frame_cache): New field tailcall_cache.
2496 (dwarf2_frame_cache): New variables entry_pc, entry_cfa_sp_offset,
2497 entry_cfa_sp_offset_p and instr. Execute FDE instructions in two
2498 parts, try to find entry_cfa_sp_offset. Call
2499 dwarf2_tailcall_sniffer_first.
2500 (dwarf2_frame_prev_register): Call dwarf2_tailcall_prev_register_first
2501 when appropriate.
2502 (dwarf2_frame_dealloc_cache): New function.
2503 (dwarf2_frame_sniffer): Preinitialize cache by dwarf2_frame_cache.
2504 (dwarf2_frame_unwind): Install dwarf2_frame_dealloc_cache.
2505 (dwarf2_signal_frame_unwind): Do not install dwarf2_frame_dealloc_cache.
2506 (dwarf2_append_unwinders): Add dwarf2_tailcall_frame_unwind.
2507 (dwarf2_frame_cfa): Support also dwarf2_tailcall_frame_unwind.
2508 * dwarf2loc.c (func_addr_to_tail_call_list)
2509 (tailcall_dump, call_sitep, VEC (call_sitep), chain_candidate)
2510 (call_site_find_chain_1, call_site_find_chain): New.
2511 * dwarf2loc.h (struct call_site_chain): New.
2512 (call_site_find_chain): New declaration.
2513 * frame.c (get_frame_address_in_block): Support also TAILCALL_FRAME.
2514 * frame.h (enum frame_type): New entry TAILCALL_FRAME.
2515 * python/py-frame.c (gdbpy_initialize_frames): Add TAILCALL_FRAME.
2516 * stack.c (frame_info): Support also TAILCALL_FRAME.
2517
bb984ff1
JK
25182011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2519
2520 Tail call sites reader implementation.
2521 * dwarf2read.c (read_call_site_scope): Recognize DW_AT_GNU_tail_call,
2522 fill in TYPE_TAIL_CALL_LIST.
2523 * gdbtypes.h (struct func_type): New field tail_call_list.
2524 (struct call_site): New field tail_call_next.
2525 (TYPE_TAIL_CALL_LIST): New definition.
2526
8e3b41a9
JK
25272011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2528
2529 Implement basic support for DW_TAG_GNU_call_site.
2530 * block.c: Include gdbtypes.h and exceptions.h.
2531 (call_site_for_pc): New function.
2532 * block.h (call_site_for_pc): New declaration.
2533 * defs.h: Include hashtab.h.
2534 (make_cleanup_htab_delete, core_addr_hash, core_addr_eq): New
2535 declarations.
2536 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Install
2537 ctx_no_push_dwarf_reg_entry_value.
2538 * dwarf2expr.c (read_uleb128, read_sleb128): Support R as NULL.
2539 (dwarf_block_to_dwarf_reg): New function.
2540 (execute_stack_op) <DW_OP_GNU_entry_value>: Implement it.
2541 (ctx_no_push_dwarf_reg_entry_value): New function.
2542 * dwarf2expr.h (struct dwarf_expr_context_funcs): New field
2543 push_dwarf_reg_entry_value.
2544 (ctx_no_push_dwarf_reg_entry_value, dwarf_block_to_dwarf_reg): New
2545 declarations.
2546 * dwarf2loc.c: Include gdbcmd.h.
2547 (dwarf_expr_ctx_funcs): New forward declaration.
2548 (entry_values_debug, show_entry_values_debug, call_site_to_target_addr)
2549 (dwarf_expr_reg_to_entry_parameter)
2550 (dwarf_expr_push_dwarf_reg_entry_value): New.
2551 (dwarf_expr_ctx_funcs): Install dwarf_expr_push_dwarf_reg_entry_value.
2552 (dwarf2_evaluate_loc_desc_full): Handle NO_ENTRY_VALUE_ERROR.
2553 (needs_dwarf_reg_entry_value): New function.
2554 (needs_frame_ctx_funcs): Install it.
2555 (_initialize_dwarf2loc): New function.
2556 * dwarf2loc.h (entry_values_debug): New declaration.
2557 * dwarf2read.c (struct dwarf2_cu): New field call_site_htab.
2558 (read_call_site_scope): New forward declaration.
2559 (process_full_comp_unit): Copy call_site_htab.
2560 (process_die): Support DW_TAG_GNU_call_site.
2561 (read_call_site_scope): New function.
2562 (dwarf2_get_pc_bounds): Support NULL HIGHPC.
2563 (dwarf_tag_name): Support DW_TAG_GNU_call_site.
2564 (cleanup_htab): Delete.
2565 (write_psymtabs_to_index): Use make_cleanup_htab_delete instead of it.
2566 * exceptions.h (enum errors): New NO_ENTRY_VALUE_ERROR.
2567 * gdb-gdb.py (StructMainTypePrettyPrinter): Support
2568 FIELD_LOC_KIND_DWARF_BLOCK.
2569 * gdbtypes.h (enum field_loc_kind): New entry
2570 FIELD_LOC_KIND_DWARF_BLOCK.
2571 (struct main_type): New loc entry dwarf_block.
2572 (struct call_site, FIELD_DWARF_BLOCK, SET_FIELD_DWARF_BLOCK)
2573 (TYPE_FIELD_DWARF_BLOCK): New.
2574 * python/py-type.c: Include dwarf2loc.h.
2575 (check_types_equal): Support FIELD_LOC_KIND_DWARF_BLOCK. New
2576 internal_error call on unknown FIELD_LOC_KIND.
2577 * symtab.h (struct symtab): New field call_site_htab.
2578 * utils.c (do_htab_delete_cleanup, make_cleanup_htab_delete)
2579 (core_addr_hash, core_addr_eq): New functions.
2580
b6cdc2c1
JK
25812011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2582
2583 Code reshuffle.
2584 * gdb-gdb.py (StructMainTypePrettyPrinter): Change
2585 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC. Move
2586 calling_convention under func_stuff there.
2587 * gdbtypes.c (make_function_type): Call INIT_FUNC_SPECIFIC.
2588 (init_type) <TYPE_CODE_FUNC>: Likewise.
2589 (recursive_dump_type): Change TYPE_SPECIFIC_CALLING_CONVENTION to
2590 TYPE_SPECIFIC_FUNC. New comment for tail_call_list.
2591 * gdbtypes.h (enum type_specific_kind): Change
2592 TYPE_SPECIFIC_CALLING_CONVENTION to TYPE_SPECIFIC_FUNC.
2593 (struct main_type) <type_specific>: Change calling_convention to
2594 func_stuff. Move calling_convention to ...
2595 (struct func_type): ... this new struct.
2596 (INIT_FUNC_SPECIFIC): New #define.
2597 (TYPE_CALLING_CONVENTION): Change calling_convention to func_stuff.
2598
181cebd4
JK
25992011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2600
2601 Fix DW_OP_GNU_implicit_pointer for DWARF32 v3+ on 64-bit arches.
2602 * dwarf2-frame.c (execute_stack_op): Initialize ctx->ref_addr_size.
2603 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Use
2604 ctx->ref_addr_size. Handle its invalid value.
2605 * dwarf2expr.h (struct dwarf_expr_context): New field ref_addr_size.
2606 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full)
2607 (dwarf2_loc_desc_needs_frame): Initialize ctx->ref_addr_size.
2608 * dwarf2loc.h (dwarf2_per_cu_ref_addr_size): New declaration.
2609 * dwarf2read.c (decode_locdesc): Initialize ctx->ref_addr_size.
2610 (dwarf2_per_cu_ref_addr_size): New function.
2611
c471e790
JK
26122011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2613
2614 Code cleanup.
2615 * dwarf2read.c (per_cu_header_read_in): New function.
2616 (dwarf2_per_cu_addr_size, dwarf2_per_cu_offset_size): Use it, with new
2617 variables cu_header_local and cu_headerp.
2618
741f5e3c
JK
26192011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2620
2621 Fix initial language detection with -readnow.
2622 * dwarf2read.c (dw2_find_symbol_file): Handle OBJF_READNOW case.
2623 * symfile.h (struct quick_symbol_functions): State find_symbol_file
2624 searches only for global symbols.
2625
a73d2258
JK
26262011-10-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2627
2628 Fix printed anonymous struct name.
2629 * dwarf2read.c (fixup_partial_die): Handle for anonymous structs also
2630 DW_TAG_interface_type. Strip for anonymous structs any prefixes.
2631 (anonymous_struct_prefix): New function.
2632 (determine_prefix): New variables retval. Call anonymous_struct_prefix.
2633 (dwarf2_name): Strip for anonymous structs any prefixes.
2634
749fd4ea
DE
26352011-10-07 Doug Evans <dje@google.com>
2636
1fa57852
DE
2637 * python/lib/gdb/printing.py (register_pretty_printer): New argument
2638 `replace'.
2639
690a4937
DE
2640 * python/lib/gdb/printing.py: Whitespace cleanup.
2641
749fd4ea
DE
2642 * python/py-value.c (valpy_call): Initialize ftype to avoid compiler
2643 warning.
2644
4c38200f
PA
26452011-10-07 Pedro Alves <pedro@codesourcery.com>
2646
2647 * linux-nat.h (ALL_LWPS): Remove the ptid parameter.
2648 * amd64-linux-nat.c (amd64_linux_dr_set_control)
2649 (amd64_linux_dr_set_addr, amd64_linux_dr_unset_status): Adjust.
2650 * arm-linux-nat.c (arm_linux_insert_hw_breakpoint)
2651 (arm_linux_remove_hw_breakpoint, arm_linux_insert_watchpoint)
2652 (arm_linux_remove_watchpoint): Adjust.
2653 * i386-linux-nat.c (i386_linux_dr_set_control)
2654 (i386_linux_dr_set_addr, i386_linux_dr_unset_status): Adjust.
2655 * ia64-linux-nat.c (ia64_linux_insert_watchpoint)
2656 (ia64_linux_remove_watchpoint): Adjust.
2657 * mips-linux-nat.c (write_watchpoint_regs): Adjust.
2658 * ppc-linux-nat.c (ppc_linux_insert_hw_breakpoint)
2659 (ppc_linux_insert_hw_breakpoint, ppc_linux_remove_hw_breakpoint)
2660 (ppc_linux_insert_mask_watchpoint)
2661 (ppc_linux_remove_mask_watchpoint, ppc_linux_insert_watchpoint)
2662 (ppc_linux_remove_watchpoint): Adjust.
2663 * s390-nat.c (s390_insert_watchpoint, s390_remove_watchpoint):
2664 Adjust.
2665
b7ff339d
CV
26662011-10-07 Corinna Vinschen <vinschen@redhat.com>
2667
2668 * windows-nat.c: Include wchar.h to avoid compiler warnings.
2669 (clear_win32_environment): New function for Cygwin to clear out
2670 Win32 environment.
2671 (windows_create_inferior): Prepare new environment from in_env
2672 for Cygwin, too.
2673
f287c1f3
PM
26742011-10-07 Phil Muldoon <pmuldoon@redhat.com>
2675
5631e596 2676 PR python/13264
f287c1f3
PM
2677 * python/py-value.c (valpy_call): Check that arguments are
2678 a tuple.
2679 (is_intlike): Remove call to CHECK_TYPEDEF.
2680 (valpy_nonzero): Catch GDB exceptions.
2681 (valpy_absolute): Ditto.
2682 (valpy_lazy_string): Ditto.
2683 (valpy_call): Ditto.
2684 (valpy_get_is_optimized_out): Ditto.
2685 (valpy_long): Ditto.
2686 (valpy_float): Ditto.
2687 (valpy_int): Call CHECK_TYPEDEF. Catch GDB exceptions.
2688 (valpy_richcompare): Ditto.
2689
03583c20
UW
26902011-10-07 Ulrich Weigand <ulrich.weigand@linaro.org>
2691
2692 * inferior.h (disable_randomization): Declare.
2693 * infrun.c (disable_randomization): New global variable.
2694 (show_disable_randomization): New function.
2695 (set_disable_randomization): Likewise.
2696 (_initialize_infrun): Install set/show disable-randomization
2697 commands.
2698 * linux-nat.c (disable_randomization): Remove.
2699 (show_disable_randomization): Likewise.
2700 (set_disable_randomization): Likewise.
2701 (_initialize_linux_nat): No longer install set/show
2702 disable-randomization commands here.
2703 (linux_nat_supports_disable_randomization): New function.
2704 (linux_nat_add_target): Install it.
2705 * remote.c (PACKET_QDisableRandomization): New enum value.
2706 (remote_protocol_packets): Support QDisableRandomization.
2707 (_initialize_remote): Likewise.
2708 (remote_supports_disable_randomization): New function.
2709 (init_remote_ops): Install it.
2710 (extended_remote_supports_disable_randomization): New function.
2711 (init_extended_remote_ops): Install it.
2712 (extended_remote_disable_randomization): New function.
2713 (extended_remote_create_inferior_1): Call it.
2714 * target.h (struct target_ops): Add to_supports_disable_randomization.
2715 (target_supports_disable_randomization): Add prototype.
2716 * target.c (target_supports_disable_randomization): New function.
2717 (find_default_supports_disable_randomization): Likewise.
2718 (init_dummy_target): Install it.
2719
20c168b5
KP
27202011-10-07 Kevin Pouget <kevin.pouget@st.com>
2721
2722 Allow Python notification of new object-file loadings.
2723 * Makefile.in (SUBDIR_PYTHON_SRCS): Add py-newobjfilevent.c.
2724 (SUBDIR_PYTHON_OBS): Add py-newobjfileevent.o.
2725 Add build rule for this file.
2726 * python/py-event.h (emit_new_objfile_event): New prototype.
2727 (newobjfile): New Python event emitter.
2728 * python/py-evts.c (gdbpy_initialize_py_events): Add new_objfile to
2729 Python event registry.
2730 * python/py-inferior.c: Include objfiles.h
2731 (python_new_objfile): New function.
2732 (gdbpy_initialize_inferior): Add python_new_objfile to the new objfile
2733 observers.
2734 * python/py-newobjfileevent.c: New file.
2735 * python-internal.h (gdbpy_initialize_new_objfile_event): New
2736 prototype.
2737 * python/python.c (_initialize_python): Add
2738 gdbpy_initialize_new_objfile_event call.
2739 * NEWS: Add item for new Python event "gdb.newobjfile"
2740
b1c8db38
TG
27412011-10-05 Tristan Gingold <gingold@adacore.com>
2742
2743 * ada-tasks.c (read_atcb): Make ravenscar_task_name static.
2744 Extract the ravenscar task name from the symbol for the atcb.
2745
0dab82e9
PK
27462011-10-04 Paul Koning <paul_koning@dell.com>
2747
2748 * python/py-type.c (typy_make_iter): Add forward declaration.
2749 (typy_fields_items): Use the gdb.Type iterator.
2750
84ad80e6
PK
27512011-10-04 Paul Koning <paul_koning@dell.com>
2752
2753 * NEWS: Add entry for Python gdb.Type mapping methods.
2754
cb6be26b
KP
27552011-10-04 Kevin Pouget <kevin.pouget@st.com>
2756
2757 PR python/12691: Add the inferior to Python exited event
2758 * python/py-exitedevent.c (create_exited_event_object): Add inferior
2759 to exited_event.
2760 * python/py-event.h (emit_exited_event): Likewise
2761 * python/-inferior.c (python_inferior_exit): Likewise
2762
6005b210
JB
27632011-10-03 Joel Brobecker <brobecker@adacore.com>
2764
2765 * ada-tasks.c (print_ada_task_info): Add "thread-id" field
2766 in output of -ada-task-info GDB/MI command.
2767
75082e8c
JB
27682011-10-03 Joel Brobecker <brobecker@adacore.com>
2769
2770 * ada-lang.h (struct inferior): Declare.
2771 (print_ada_task_info): Add declaration.
2772 * ada-tasks.c (print_ada_task_info): Make non-static.
2773 * mi/mi-cmds.c (mi_cmds): Add "ada-task-info".
2774 * mi/mi-cmds.h (mi_cmd_ada_task_info): Add declaration.
2775 * mi/mi-main.c: #include "ada-lang.h".
2776 (mi_cmd_list_features): Add "ada-task-info" to the list
2777 of supported features.
2778 (mi_cmd_ada_task_info): New function.
2779
7ed7d719
JB
27802011-10-03 Joel Brobecker <brobecker@adacore.com>
2781
2782 * python/python.c (python_run_simple_file): New function.
2783 (source_python_script, source_python_script_for_objfile):
2784 Replace call to PyRun_SimpleFile by call to
2785 python_run_simple_file.
2786
3fcaed38
PK
27872011-10-03 Paul Koning <paul_koning@dell.com>
2788
2789 * python/py-value.c (valpy_get_address): Use Py_XINCREF.
2790 (value_to_value_object): Fetch value if it was lazy.
2791
8e5c319d
JK
27922011-10-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2793
2794 Code cleanup.
2795 * solib-svr4.c (svr4_default_sos): Remove variables head and link_ptr.
2796 Rearrange the code for it.
2797
dd11a36c
JB
27982011-10-02 Joel Brobecker <brobecker@adacore.com>
2799
2800 * breakpoint.c (bkpt_print_recreate): Add call to
2801 print_recreate_thread.
2802
723b724b
MF
28032011-09-29 Mike Frysinger <vapier@gentoo.org>
2804
2805 * common/linux-ptrace.h (PTRACE_GETFDPIC, PTRACE_GETFDPIC_EXEC,
2806 PTRACE_GETFDPIC_INTERP): Define.
2807
412946b6
YQ
28082011-09-28 Yao Qi <yao@codesourcery.com>
2809
2810 * symfile.c (add_symbol_file_command): Update message on usage.
2811
a73bb892
PK
28122011-09-28 Paul Koning <paul_koning@dell.com>
2813
2814 * python/py-type.c (make_fielditem, typy_field_names, typy_items)
2815 (typy_length, typy_get, typy_has_key, typy_make_iter)
2816 (typy_iterkeys, typy_iteritems, typy_itervalues, typy_iter)
2817 (typy_iterator_iter, typy_iterator_iternext)
2818 (typy_iterator_dealloc): New functions to implement standard
2819 Python mapping methods on gdb.Type object.
2820 (gdb.TypeIterator): New Python type.
2821 * python/python-internal.h (gdbpy_iter_kind): New enum.
a73bb892 2822
fe10a582
DM
28232011-09-28 David S. Miller <davem@davemloft.net>
2824
2825 * sparc-tdep.h (SPARC_F2_REGNUM, SPARC_F3_REGNUM, SPARC_F4_REGNUM,
2826 SPARC_F5_REGNUM, SPARC_F6_REGNUM, SPARC_F7_REGNUM): New enums.
2827 * sparc-tdep.c (sparc_complex_floating_p): New function.
2828 (sparc32_store_arguments): Handle complex floats.
2829 (sparc32_extract_return_value): Likewise.
2830 (sparc32_store_return_value): Likewise.
2831 (sparc32_stabs_argument_has_addr): Likewise.
2832 * sparc64-tdep.c (sparc64_complex_floating_p): New function.
2833 (sparc64_store_floating_fields): Handle complex floats.
2834 (sparc64_store_arguments): Likewise.
2835 (sparc64_store_return_value): Likewise.
2836
c93dbcba
EZ
28372011-09-28 Eli Zaretskii <eliz@gnu.org>
2838
2839 * windows-nat.c (env_sort) [!__CYGWIN__]: Function restored from
2840 before the change on 2006-12-09.
2841 (windows_create_inferior) [!__CYGWIN__]: Restore code that
2842 generates the environment block for CreateProcessA, modulo the
2843 Cygwin-specific parts that are not needed here.
2844
f00c55f8
TG
28452011-09-27 Tristan Gingold <gingold@adacore.com>
2846
2847 * target.h (enum target_object): Add TARGET_OBJECT_DARWIN_DYLD_INFO.
2848 * solib-darwin.c (DYLD_VERSION_MAX): Update number.
2849 (darwin_solib_get_all_image_info_addr_at_init): New function.
2850 (darwin_solib_read_all_image_info_addr): Likewise.
2851 (darwin_solib_create_inferior_hook): Use the above two functions.
2852 * darwin-nat.c (darwin_execvp): Renames retval to res.
2853 (darwin_read_write_inferior): Update comment.
2854 (darwin_read_dyld_info): New function.
2855 (darwin_xfer_partial): Handle DYLD_INFO.
2856
6710bf39
SS
28572011-09-27 Stan Shebs <stan@codesourcery.com>
2858
2859 Add return address collection for tracepoints.
2860 * tracepoint.c (encode_actions_1): Add case for $_ret.
2861 (validate_actionline): Check for $_ret.
2862 (trace_dump_actions): Ditto.
2863 * ax-gdb.h (gen_trace_for_return_address): Declare.
2864 * ax-gdb.c: Include arch-utils.h.
2865 (gen_trace_for_return_address): New function.
2866 (agent_command): Add return address special case.
2867 * amd64-tdep.c: Include ax.h and ax-gdb.h.
2868 (amd64_gen_return_address): New function.
2869 (amd64_init_abi): Call it.
2870 * i386-tdep.c: Include ax.h and ax-gdb.h.
2871 (i386_gen_return_address): New function.
2872 (i386_init_abi): Call it.
2873 * arch-utils.h (default_gen_return_address): Declare.
2874 * arch-utils.c (default_gen_return_address): New function.
2875 * gdbarch.sh (gen_return_address): New method.
2876 * gdbarch.h, gdbarch.c: Regenerate.
2877
e04e5beb
JM
28782011-09-23 Joseph Myers <joseph@codesourcery.com>
2879
2880 PR gdb/13079
2881 * i386-tdep.c (i386_frame_align): New.
2882 (i386_gdbarch_init): Use i386_frame_align.
2883
f3d6df6d
YQ
28842011-09-23 Yao Qi <yao@codesourcery.com>
2885
2886 * i386-linux-nat.c (i386_linux_resume): Use read_memory_unsigned_integer
2887 to get address.
2888
e69860f1
TG
28892011-09-22 Tristan Gingold <gingold@adacore.com>
2890
2891 * fork-child.c (fork_inferior): Add exec_fun parameter.
2892 Call exec_fun or execvp.
2893 * inferior.h: Adjust prototype.
2894 * gnu-nat.c (gnu_create_inferior): Adjust fork_inferior call.
2895 * inf-ttrace.c (inf_ttrace_create_inferior): Ditto.
2896 * inf-ptrace.c (inf_ptrace_create_inferior): Ditto.
2897 * procfs.c (procfs_create_inferior): Ditto.
2898 * darwin-nat.c (darwin_execvp): New function.
2899 (darwin_create_inferior): Use it.
2900
4b51d87b
YQ
29012011-09-22 Yao Qi <yao@codesourcery.com>
2902
2903 * infrun.c (context_switch): Print debug message when switching to
2904 a different thread.
2905
56b9d9ac
UW
29062011-09-21 Ulrich Weigand <uweigand@de.ibm.com>
2907
2908 * s390-tdep.c (s390_function_arg_pass_by_reference): Handle
2909 complex and vector types.
2910 (s390_return_value_convention): Likewise.
2911
2912 (s390_value_from_register): Call check_typedef.
2913 (extend_simple_arg): Likewise.
2914 (alignment_of): Likewise.
2915 (s390_push_dummy_call): Likewise.
2916 (s390_return_value): Likewise.
2917
b2cd6b29
JM
29182011-09-21 Joseph Myers <joseph@codesourcery.com>
2919
2920 * event-top.c (async_disconnect): If an exception is thrown from
2921 quit_cover, call pop_all_targets. Use TRY_CATCH instead of
2922 catch_errors.
2923 * top.c (quit_cover): Return void and take no arguments.
2924 * top.h (quit_cover): Update prototype.
2925
67ba4e42
JM
29262011-09-20 Joseph Myers <joseph@codesourcery.com>
2927
2928 * mi/mi-main.c (mi_load_progress): Restore saved_uiout value to
2929 current_uiout, not uiout.
2930
562f943b
DE
29312011-09-19 Doug Evans <dje@google.com>
2932
2933 * python/py-auto-load.c (source_section_scripts): Fix file
2934 descriptor leak.
2935 * python/python.c (source_python_script_for_objfile): Tweak comments.
2936
34518530
YQ
29372011-09-18 Yao Qi <yao@codesourcery.com>
2938 Ulrich Weigand <ulrich.weigand@linaro.org>
2939
2940 Support displaced stepping for Thumb 16-bit insns.
2941 * arm-tdep.c (THUMB_NOP) Define.
2942 (thumb_copy_unmodified_16bit): New.
2943 (thumb_copy_b, thumb_copy_bx_blx_reg): New.
2944 (thumb_copy_alu_reg): New.
2945 (arm_copy_svc): Move some common code to ...
2946 (install_svc): ... here. New.
2947 (thumb_copy_svc): New.
2948 (install_pc_relative): New.
2949 (thumb_copy_pc_relative_16bit): New.
2950 (thumb_decode_pc_relative_16bit): New.
2951 (thumb_copy_16bit_ldr_literal): New.
2952 (thumb_copy_cbnz_cbz): New.
2953 (cleanup_pop_pc_16bit_all): New.
2954 (thumb_copy_pop_pc_16bit): New.
2955 (thumb_process_displaced_16bit_insn): New.
2956 (thumb_process_displaced_32bit_insn): New.
2957 (thumb_process_displaced_insn): process thumb instruction.
2958
2959 Support displaced stepping for Thumb 32-bit insns.
2960 * arm-tdep.c (thumb_copy_unmodified_32bit): New.
2961 (thumb2_copy_preload): New.
2962 (thumb2_copy_copro_load_store): New.
2963 (thumb2_copy_b_bl_blx): New.
2964 (thumb2_copy_alu_imm): New.
2965 (thumb2_copy_load_reg_imm): New.
2966 (thumb2_copy_load_literal): New
2967 (thumb2_copy_block_xfer): New.
2968 (thumb_32bit_copy_undef): New.
2969 (thumb_32bit_copy_unpred): New.
2970 (thumb2_decode_ext_reg_ld_st): New.
2971 (thumb2_decode_svc_copro): New.
2972 (decode_thumb_32bit_store_single_data_item): New.
2973 (thumb_copy_pc_relative_32bit): New.
2974 (thumb_decode_pc_relative_32bit): New.
2975 (decode_thumb_32bit_ld_mem_hints): New.
2976 (thumb2_copy_table_branch): New
2977 (thumb_process_displaced_32bit_insn): Process Thumb 32-bit
2978 instructions.
2979
2b16b2e3
YQ
29802011-09-18 Yao Qi <yao@codesourcery.com>
2981
2982 * arm-tdep.c (install_copro_load_store): PC is set 4-byte aligned.
2983 (install_b_bl_blx): Likewise.
2984
0f6f04ba
YQ
29852011-09-17 Yao Qi <yao@codesourcery.com>
2986
2987 * arm-tdep.c (install_ldr_str_ldrb_strb): Renamed to ...
2988 (install_load_store): ... this. New.
2989 Change parameter BYTE to SIZE.
2990 (arm_copy_ldr_str_ldrb_strb): Update caller.
2991 (arm_decode_ld_st_word_ubyte): Update caller.
2992
e2d96639
YQ
29932011-09-17 Yao Qi <yao@codesourcery.com>
2994
2995 * infrun.c (displaced_step_fixup): Move some code ...
2996 (displaced_step_restore): ... here. New function.
2997 (handle_inferior_event): Cleanup displaced stepping state for both
2998 child and parent when get forked or vforked event.
2999 * regcache.c (get_thread_arch_aspace_regcache): New function.
3000 get_thread_arch_regcache (): Call it.
3001
a8123151
JB
30022011-09-16 Joel Brobecker <brobecker@adacore.com>
3003
3004 * ada-tasks.c (print_ada_task_info): New function, merging
3005 short_task_info and info_tasks together. Reimplement using
3006 ui-out instead of printing to stdout directly. Move the code
3007 building and checking the task list here, instead of leaving it
3008 in info_tasks_command.
3009 (info_task): Move the code building and checking the task
3010 list here, instead of leaving it in info_tasks_command.
3011 (info_tasks_command): Delete code building and checking
3012 the task list - moved elsewhere. Update calls to info_tasks
3013 and info_task.
3014
fbf06824
JB
30152011-09-16 Joel Brobecker <brobecker@adacore.com>
3016
3017 * ada-tasks.c (info_task): Delete parameter `from_tty'.
3018
34a0bc90
JB
30192011-09-16 Joel Brobecker <brobecker@adacore.com>
3020
3021 * ada-tasks.c (info_tasks): Delete parameter `from_tty'.
3022
79779fa9
JB
30232011-09-16 Joel Brobecker <brobecker@adacore.com>
3024
3025 * ada-lang.h (ada_build_task_list): Remove parameter
3026 `warn_if_null'.
3027 * ada-tasks.c (ada_build_task_list): Remove parameter
3028 `warn_if_null'. Adjust implementation and documentation.
3029 (valid_task_id, ada_get_environment_task)
3030 iterate_over_live_ada_tasks): Adjust call to ada_build_task_list.
3031 (info_tasks_command): Adjust implementation.
3032 (task_command): Likewise.
3033 * ravenscar-thread.c (ravenscar_find_new_threads): Fix call
3034 to ada_build_task_list.
3035
e225eb91
JB
30362011-09-16 Joel Brobecker <brobecker@adacore.com>
3037
3038 * ada-tasks.c (ada_tasks_check_symbol_table, task_list): Delete.
3039 (enum ada_known_tasks_kind, struct ada_tasks_inferior_data): New.
3040 (ada_tasks_inferior_data_handle): New static global.
3041 (get_ada_tasks_inferior_data): New function.
3042 (ada_get_task_number, get_task_number_from_id, valid_task_id)
3043 (ada_get_environment_task, iterate_over_live_ada_tasks)
3044 (add_ada_task, read_known_tasks_array, read_known_tasks_list):
3045 Adjust.
3046 (ada_set_current_inferior_known_tasks_addr): New function.
3047 (read_known_tasks, ada_build_task_list, short_task_info)
3048 (info_tasks, info_task, info_tasks_command, task_command_1)
3049 (task_command, ada_task_list_changed): Adjust.
3050 (ada_tasks_invalidate_inferior_data): New function.
3051 (ada_normal_stop_observer, ada_new_objfile_observer): Adjust.
3052 (_initialize_tasks): Set ada_tasks_inferior_data_handle.
3053 * ada-lang.h (struct inferior): Add declaration.
3054 (ada_task_list_changed): Update profile.
3055 * remote-wtx-pd.c: #include "inferior.h".
3056 (switch_to_pd_internal): Update call to ada_task_list_changed.
3057
6da9ca05
JB
30582011-09-16 Joel Brobecker <brobecker@adacore.com>
3059
3060 * ada-tasks.c: #include "progspace.h" and "objfiles.h".
3061 (atcb_type, atcb_common_type, atcb_ll_type, atcb_call_type)
3062 (atcb_fieldno): Delete these static globals.
3063 (struct ada_tasks_pspace_data): New struct.
3064 (ada_tasks_pspace_data_handle): New static global.
3065 (get_ada_tasks_pspace_data): New function.
3066 (ada_tasks_invalidate_pspace_data): New function.
3067 (get_tcb_types_info, ptid_from_atcb_common, read_atcb)
3068 (read_known_tasks_list, ada_new_objfile_observer): Adjust.
3069 (_initialize_tasks): Create this module's per-progspace
3070 data handle.
3071
dccd3cbd
JB
30722011-09-16 Joel Brobecker <brobecker@adacore.com>
3073
3074 * ada-tasks.c (struct atcb_fieldnos): Renames struct tcb_fieldnos.
3075
f877b031
TG
30762011-09-16 Tristan Gingold <gingold@adacore.com>
3077
3078 * fork-child.c (fork_inferior): Update comment. Use alloca
3079 instead of xmalloc for argv. Move len and shell_command
3080 declarations in the block where they are used.
3081 Only call execvp. Factorize failure code.
3082
ae0c443d
JK
30832011-09-16 Abhijit Halder <abhijit.k.halder@gmail.com>
3084
3085 Code cleanup.
3086 * parse.c (write_exp_elt): Change argument to pass a pointer of union
3087 `exp_element' instead of an element of the same and make the function
3088 static.
3089 (write_exp_elt_opcode, write_exp_elt_sym, write_exp_elt_block)
3090 (write_exp_elt_objfile, write_exp_elt_longcst, write_exp_elt_dblcst)
3091 (write_exp_elt_decfloatcst, write_exp_elt_type, write_exp_elt_intern):
3092 Change argument of `write_exp_elt' function call.
3093 Remove extra spaces from comments.
3094 * parser-defs.h (write_exp_elt): Remove prototype.
3095
5af65ec0
PK
30962011-09-15 Paul Koning <paul_koning@dell.com>
3097
3098 * python/py-cmd.c (gdbpy_string_to_argv): Decrement reference
3099 count of item appended to list.
3100 * python/py-type.c (typy_fields): Likewise.
3101
72be8ccc
PK
31022011-09-15 Paul Koning <paul_koning@dell.com>
3103
883640a8 3104 * MAINTAINERS (Write After Approval): Add myself to the list.
72be8ccc 3105
92f6badc
KP
31062011-09-15 Kevin Pouget <kevin.pouget@st.com>
3107
3108 PR threads/12628
3109 * linux-fork.c (checkpoint_command): Disallow checkpointing of
3110 processes with multiple threads.
3111 (inf_has_multiple_thread_cb): New function.
3112 (inf_has_multiple_threads): New function.
3113
0672bf41 31142011-09-15 Kevin Pouget <kevin.pouget@st.com>
2aa48337
KP
3115
3116 PR Python/12692 Add gdb.selected_inferior() to Python interface.
3117 * python/py-inferior.c (GdbMethods): New Python method definition.
3118
6839b47f
KP
31192011-09-15 Kevin Pouget <kevin.pouget@st.com>
3120
3121 Handle multiple breakpoint hits in Python interface:
3122 * python/py-bpevent.c (create_breakpoint_event_object): Rename C/Python
3123 variable to breakpoints.
3124 * python/py-stopevent.c (emit_stop_event): Return a Python tuple of
3125 bps instead of single breakpoint. Fix some space typos.
3126 * python/py-stopevent.c (create_breakpoint_event_object): Rename
3127 variable to breakpoints.
3128
672f9b60
KP
31292011-09-15 Kevin Pouget <kevin.pouget@st.com>
3130
3131 * breakpoint.c (describe_other_breakpoints): Do not write 'duplicate'
3132 note if the breakpoint is internal.
3133
43675ae4
KP
31342011-09-15 Kevin Pouget <kevin.pouget@st.com>
3135
0672bf41 3136 * MAINTAINERS (Write After Approval): Add myself to the list
43675ae4 3137
15148d6a
PA
31382011-09-14 Pedro Alves <pedro@codesourcery.com>
3139
3140 * infrun.c (prepare_for_detach, wait_for_inferior)
3141 (fetch_inferior_event): Don't flush the register cache.
3142 * remote.c (struct stop_reply) <regcache>: Add comment.
3143
d83e736b
JK
31442011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3145
3146 Remove excessive DWARF expressions memory duplication.
3147 * dwarf2loc.c (per_cu_dwarf_call): Remove variable back_to and its use
3148 for block.data.
3149 (indirect_pieced_value): Remove variable result. Remove variable
3150 back_to and its use for baton.data.
3151 (dwarf2_compile_expr_to_ax): Remove variable back_to and its use for
3152 block.data.
3153 * dwarf2read.c (dwarf2_fetch_die_location_block): Remove xmemdup.
3154 Update the function comment.
3155
c65b3e0d
PA
31562011-09-13 Pedro Alves <pedro@codesourcery.com>
3157
3158 * inferior.h (ALL_INFERIORS): New.
3159 * linux-thread-db.c (thread_db_find_new_threads_2): Remove check
3160 for a stopped thread.
3161 (thread_db_find_new_threads): Look for threads in all inferiors.
3162
a1398e0c
PA
31632011-09-13 Pedro Alves <pedro@codesourcery.com>
3164
3165 * breakpoint.c (update_watchpoint): Handle the case of the
3166 watchpoint to update not being in the breakpoint list yet.
3167 (hw_watchpoint_use_count): New, factored out from
3168 hw_watchpoint_used_count.
3169 (hw_watchpoint_used_count): Rename to ...
3170 (hw_watchpoint_used_count_others): ... this. Add `except'
3171 parameter. Don't count resources of `except'. Use
3172 hw_watchpoint_use_count.
3173
30596231
PA
31742011-09-13 Pedro Alves <pedro@codesourcery.com>
3175
3176 * gdbthread.h (enum thread_state): Moved here.
3177 (struct thread_info): Rename `executing_' field to `executing' and
3178 `state_' to `state'.
3179 * thread.c (enum thread_state): Moved to gdbthread.h.
3180 (new_thread, add_thread_silent, delete_thread_1)
3181 (any_live_thread_of_process, thread_alive, set_running)
3182 (set_running, is_thread_state, any_running, is_executing)
3183 (set_executing, finish_thread_state, print_thread_info)
3184 (do_captured_thread_select): Adjust.
3185
bede5f5f
JK
31862011-09-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3187
3188 Fix compatibility with gcc < 4.3 and non-gcc compilers.
3189 * amd64-tdep.c (amd64_skip_xmm_prologue): Convert 0b constants.
3190
4801a9a3
PA
31912011-09-12 Pedro Alves <pedro@codesourcery.com>
3192 Matt Rice <ratmice@gmail.com>
3193
3194 PR gdb/13175
3195
3196 * interps.c (struct interp) <interpreter_out>: Delete field.
3197 (interp_new): Remove the data and uiout parameters and adjust.
3198 (interp_set): Only set the current_uiout from the interpreter's
3199 uiout after initializing the interpreter. Adjust call to
3200 init_proc.
3201 (interp_ui_out): Adjust to call procs->ui_out_proc.
3202 (interp_data, interp_name): New.
3203 * interps.h (interp_init_ftype): Add `self' parameter.
3204 (interp_ui_out_ftype): New typedef.
3205 (struct interp_procs) <ui_out_proc>: New method pointer.
3206 (interp_new): Remove the data and uiout parameters.
3207 (interp_data, interp_name): Declare.
3208 * tui/tui-interp.c (tui_init): Adjust prototype.
3209 (tui_ui_out): New.
3210 (_initialize_tui_interp): Install tui_ui_out. Don't instanciate
3211 tui_out here. Adjust call to interp_new.
3212 * tui/tui-io.c (tui_initialize_io): Don't set current_uiout here.
3213 * cli/cli-interp.c (cli_interpreter_init): Adjust prototype.
3214 (cli_ui_out): New.
3215 (_initialize_cli_interp): Install it. Adjust call to interp_new.
3216 * mi/mi-common.h (struct mi_interp) <uiout>: New field.
3217 * mi/mi-interp.c (mi_interpreter_init): Adjust prototype.
3218 Initialize mi->uiout depending on the mi_version as extracted from
3219 the interpreter's name.
3220 (mi_ui_out): New.
3221 (_initialize_mi_interp): Install mi_ui_out. Adjust calls to
3222 interp_new. Don't allocate the ui_out's of the interpreters here.
3223
d0afda03 32242011-09-12 Aleksandar Ristovski <aristovski@qnx.com>
59145f8c 3225
d0afda03 3226 * solib.c (solib_used): New function.
59145f8c
AR
3227 (update_solib_list, reload_shared_libraries_1): Check if objfile is used
3228 by another so_list object before freeing it.
3229
bdaf8d4a
JK
32302011-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3231
3232 Code cleanup.
3233 * mi/mi-cmd-stack.c (list_args_or_locals): Use enum for the parameter
3234 values.
3235
df15bd07
JK
32362011-09-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3237
3238 Code cleanup.
3239 * amd64-tdep.c (amd64_skip_prologue): Move the XMM code to ...
3240 (amd64_skip_xmm_prologue): ... this new function. Describe its
3241 parameters. No longer use amd64_prologue_line_bug.
3242 * defs.h (producer_is_gcc_ge_4): New declaration.
3243 * dwarf2read.c (producer_is_gcc_ge_4): Move to utils.c.
3244 (process_full_comp_unit): Update its caller. Remove
3245 amd64_prologue_line_bug initialization.
3246 * symtab.h (struct symtab): Remove field amd64_prologue_line_bug.
3247 * utils.c (producer_is_gcc_ge_4): Moved here from dwarf2read.c.
3248
25289eb2
PA
32492011-09-09 Pedro Alves <pedro@codesourcery.com>
3250
3251 * linux-nat.h (enum resume_kind): New.
3252 (struct lwp_info) <last_resume_kind>: New field.
ddf17726
PA
3253 * linux-nat.c (linux_child_follow_fork): Set last_resume_kind to
3254 resume_stop on the new lwp.
25289eb2
PA
3255 (add_lwp): Set last_resume_kind as resume_continue by default.
3256 (lin_lwp_attach_lwp): Set last_resume_kind as resume_stop.
3257 (resume_lwp): New, factored out from resume_callback. Also check
3258 for pending status in lp->waitstatus.
3259 (resume_callback): Reimplement.
3260 (resume_clear_callback): Set last_resume_kind as resume_stop.
3261 (resume_set_callback): Set last_resume_kind as resume_continue.
3262 (linux_nat_resume, linux_handle_extended_wait): Set
3263 last_resume_kind.
3264 (running_callback): Also check lp->waitstatus for pending events.
3265 (select_singlestep_lwp_callback): Check that lp->last_resume_kind
3266 is resume_step.
3267 (stop_and_resume_callback): Don't re-resume if the core wanted the
3268 lwp stopped. Use resume_lwp instead of resume_callback. Avoid
3269 using an invalidated pointer.
3270 (linux_nat_filter_event): Don't discard SIGSTOPs as delayed
3271 SIGSTOPs if the core wanted the LWP to stop.
3272 (linux_nat_wait_1) Don't consume a pending SIGSTOP if the core
3273 wanted the lwp to stop. If the core wanted the lwp to stop, and
3274 the lwp stopped with a SIGSTOP, report a TARGET_SIGNAL_0 instead
3275 of TARGET_SIGNAL_STOP.
3276 (linux_nat_stop_lwp): Don't synchronously wait for the lwp to stop
3277 here. Instead, signal the lwp, and set the last_resume_kind to
3278 resume_stop.
3279
f687d035
PA
32802011-09-09 Pedro Alves <pedro@codesourcery.com>
3281
3282 * linux-nat.c (lin_lwp_attach_lwp): Return 1 (ignore) instead of
3283 -1 (error), if the lwp exits right after attaching.
3284
bc587a6b
DE
32852011-09-08 Doug Evans <dje@google.com>
3286
63d97a20
DE
3287 * py-cmd.c: Some minor formatting fixes.
3288 (gdbpy_parse_command_name): Rename text arg to name, make const.
3289 All callers updated.
3290 * python-internal.h (gdbpy_parse_command_name): Update.
3291
bc587a6b
DE
3292 * cli/cli-decode.c (add_cmd): Add comment.
3293
08711b9a
JK
32942011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3295
3296 PR breakpoints/12435
3297 * amd64-tdep.c (amd64_skip_prologue): New variables start_pc_sal,
3298 next_sal, buf, offset and xmmreg. Advance PC if it sees the PR.
3299 * dwarf2read.c (process_full_comp_unit): Initialize
3300 amd64_prologue_line_bug.
3301 * symtab.h (struct symtab): New field amd64_prologue_line_bug.
3302
b2e7f004
JK
33032011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3304
3305 Fix TUI screen corruption.
3306 * utils.c (fputs_maybe_filtered): Replace !input_from_terminal_p by
3307 batch_flag.
3308
8afd712c
JK
33092011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3310
3311 * findvar.c (read_var_value): Never return NULL, throw an error
3312 instead. Update the function comment. State symbol name in the error
3313 messages.
3314 * python/py-frame.c (frapy_read_var): Remove handling of NULL from
3315 read_var_value.
3316 * stack.c (print_frame_args): Likewise.
3317 * valops.c (value_of_variable): Likewise.
3318
b99b5f66
JK
33192011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3320
3321 * stack.c (print_frame_args): New variable except. Wrap
3322 read_var_value and common_val_print into TRY_CATCH.
3323
85bc8cb7
JK
33242011-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3325
3326 * eval.c (evaluate_subexp_standard) <OP_THIS>: Update the value_of_this
3327 caller to value_of_this.
3328 * p-exp.y: Update the value_of_this caller to value_of_this_silent.
3329 Twice.
3330 * valops.c (value_of_this): Remove parameter complain and variable ret.
3331 Update function comment. Never return NULL by this code.
3332 (value_of_this_silent): New function.
3333 * value.h (value_of_this): Remove parameter complain.
3334 (value_of_this_silent): New declaration.
3335
ede1849f
YQ
33362011-09-07 Yao Qi <yao@codesourcery.com>
3337
3338 * gdbthread.h (struct thread_info): Remove fields
3339 `stepping_through_solib_after_catch' and
3340 `stepping_through_solib_catchpoints'.
3341 * infrun.c (init_thread_stepping_state): Update.
3342 (process_event_stop_test, currently_stepping): Update.
3343 (currently_stepping_or_nexting_callback): Update.
3344
6aa27652
YQ
33452011-09-07 Yao Qi <yao@codesourcery.com>
3346
3347 * gdbthread.h (struct thread_info): Comment on field
3348 `step_after_step_resume_breakpoint'.
3349
00db5b94
PA
33502011-09-07 Abhijit Halder <abhijit.k.halder@gmail.com>
3351
3352 * remote.c (remote_console_output): Reindent.
3353
861152be
LM
33542011-09-06 Luis Machado <lgustavo@codesourcery.com>
3355
3356 * frame.c (has_stack_frames): Check for currently selected
3357 traceframe.
3358
ab821bc6
PA
33592011-09-06 Pedro Alves <pedro@codesourcery.com>
3360
3361 * event-top.h (MAXPROMPTS, struct prompts): Delete.
3362 (set_async_annotation_level, set_async_prompt, pop_prompt)
3363 (push_prompt, new_async_prompt): Delete declarations.
3364 * top.h (get_prompt, set_prompt): Change prototype.
3365 (get_prefix, set_prefix, get_suffix, set_suffix): Delete
3366 declarations.
3367 * top.c (command_loop):
3368 (top_prompt): New global.
3369 (get_prefix, set_prefix, get_suffix, ): Delete.
3370 (get_prompt, set_prompt): Rewrite.
3371 (show_new_async_prompt): Rename to ...
3372 (show_prompt): ... this.
3373 (init_main): Adjust. Don't handle --annotate=2 here.
3374 * event-top.c (new_async_prompt): Delete.
3375 (the_prompts): Delete.
3376 (more_to_come): Make static.
3377 (display_gdb_prompt): Use top_level_prompt() to compute the top
3378 level prompt, and don't notify the before_prompt observers
3379 directly here. Always trick readline into not trying to display
3380 the prompt if sync_execution and displaying the primary prompt.
3381 If displaying a local/secondary prompt, always show it, even if
3382 sync_execution is set.
3383 (change_annotation_level): Delete.
3384 (top_level_prompt): New, based on change_annotation_level.
3385 (push_prompt, pop_prompt): Delete.
3386 (async_disable_stdin): No longer pushes prompt.
3387 (command_line_handler): No longer pushes or pops prompt. If more
3388 input is expected, call display_gdb_prompt with an explicit empty
3389 prompt.
3390 (async_stop_sig): Adjust.
3391 (set_async_annotation_level, set_async_prompt): Delete.
3392 * python/python.c (before_prompt_hook): Adjust.
3393
f1d90504
PA
33942011-09-05 Pedro Alves <pedro@codesourcery.com>
3395
3396 PR cli/13110
3397
3398 * infrun.c (fetch_inferior_event): Check if there's a selected
3399 thread before checking if the selected thread is executing.
3400
0f641c01
PA
34012011-09-05 Pedro Alves <pedro@codesourcery.com>
3402
3403 * inf-loop.c (execute_command): Don't check if the current thread
3404 if running before synchronously waiting for command completion.
3405 * infrun.c (fetch_inferior_event): Handle "set exec-done-display"
3406 here.
3407 (normal_stop): Call async_enable_stdin here.
3408 * inf-loop.c (inferior_event_handler): Don't call
3409 async_enable_stdin, nor handle "set exec-done-display" here.
3410
30368258 34112011-09-04 Joel Brobecker <brobecker@adacore.com>
3412
3413 GDB 7.3.1 released.
3414
31916278
JB
34152011-09-04 Joel Brobecker <brobecker@adacore.com>
3416
3417 * NEWS: Change `7.3' into `7.3.1' in `Changes since GDB 7.3'.
3418
e8d56f18
JB
34192011-09-04 Joel Brobecker <brobecker@adacore.com>
3420
3421 * NEWS: Add entry for OpenBSD/NetBSD build failure.
3422
5dd05d8c
JK
34232011-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3424
3425 * config/s390/s390.mh (NATDEPFILES): Add linux-procfs.o dependency.
3426
7d8e6458 34272011-09-02 Matt Rice <ratmice@gmail.com>
3428
3429 PR gdb/10720
3430 * event-top.c (cli_command_loop): Replace readline setup with
3431 direct call to display_gdb_prompt.
3432 (display_gdb_prompt): Do not call observer mechanism during
3433 synchronous execution.
3434
84636d28
PA
34352011-09-02 Pedro Alves <pedro@codesourcery.com>
3436
3437 * linux-nat.c (in_pid_list_p): New.
3438 (linux_record_stopped_pid): Delete.
3439 (lin_lwp_attach_lwp): Check if PTRACE_ATTACH failed because we're
3440 already attached to the LWP. Return an indication if so.
3441 (linux_nat_filter_event): Adjust.
3442 * linux-thread-db.c (attach_thread): Handle lin_lwp_attach_lwp
3443 returning an indication to ignore this thread.
3444
b4a14fd0
PA
34452011-09-02 Pedro Alves <pedro@codesourcery.com>
3446
3447 * top.c: Include interps.h.
3448 (execute_command): If the target can async, but the interpreter is
3449 in sync mode, synchronously wait for the command to finish before
3450 returning.
3451 (execute_command_to_string): Force the interpreter to sync mode.
3452 * infrun.c: Include interps.h.
3453 (fetch_inferior_event): Don't restore the prompt yet if the
3454 interpreter is in sync mode.
3455 * interps.c (interpreter_async): New global.
3456 * interps.h (interpreter_async): Declare.
3457 * inf-loop.c: Include interps.h.
3458 (inferior_event_handler): Don't print the language change or run
3459 breakpoint commands yet if the interpreter in is sync mode.
3460 * main.c (captured_command_loop): Flip the interpreter to async
3461 mode.
3462 * cli/cli-script.c: Include interps.h.
3463 (execute_user_command, while_command, if_command): Force the
3464 interpreter to sync mode.
3465 * python/python.c: Include interps.h.
3466 (python_command, execute_gdb_command): Force the interpreter to
3467 sync mode.
3468
c709acd1
PA
34692011-09-02 Pedro Alves <pedro@codesourcery.com>
3470
3471 * value.c (show_convenience): Catch errors thrown while printing
3472 each internal variable.
3473 * infrun.c (validate_siginfo_access): New function.
3474 (siginfo_value_read, siginfo_value_write): Call it.
3475
9655e943
JK
34762011-09-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3477
3478 Revert:
3479 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
3480 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
3481 attribute.
3482
cb457ae2
YQ
34832011-08-29 Yao Qi <yao@codesourcery.com>
3484
3485 * solib-dsbt.c (bfd_lookup_symbol): Removed.
3486 (cmp_name): New.
3487 (enable_break2): Update caller.
3488 * solib-frv.c (bfd_lookup_symbol): Removed.
3489 (cmp_name): New.
3490 (enable_break2): Update caller.
3491 * solib-pa64.c (bfd_lookup_symbol): Removed.
3492 (cmp_name): New.
3493 * solib-svr4.c (bfd_lookup_symbol): Removed.
3494 (cmp_name_and_sec_flags): New.
3495 (enable_break): Update caller.
3496 * solib.c (gdb_bfd_lookup_symbol_from_symtab): New.
3497 (gdb_bfd_lookup_symbol_from_dyn_symtab): New.
3498 (gdb_bfd_lookup_symbol): New.
3499 * solib.h: Functions declarations.
3500
83d1a36a
YQ
35012011-08-29 Yao Qi <yao@codesourcery.com>
3502
3503 * Makefile.in (ALL_TARGET_OBS): Add tic6x-tdep.o tic6x-linux-tdep.o
3504 and solib-dsbt.o.
3505
c04b3e8f
JK
35062011-08-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3507
3508 Fix TUI stepi on code without symbols.
3509 * tui/tui-stack.c (tui_show_frame_info): Remove error, set LOW for
3510 current PC instead.
3511
cb0fd152
JK
35122011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3513
3514 Code cleanup.
3515 * mi/mi-cmd-stack.c (list_args_or_locals): Remove stb initialization
3516 and the static keyword.
3517 * mi/mi-cmd-target.c (mi_cmd_target_file_get, mi_cmd_target_file_put):
3518 Make prefix an array.
3519 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3520 * mi/mi-main.c (get_register): Remove stb initialization and the static
3521 keyword.
3522
91174723
JK
35232011-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3524
3525 Code cleanup - make mi_opt const.
3526 * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Make
3527 opts const.
3528 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
3529 * mi/mi-cmd-env.c (mi_cmd_env_path): Likewise.
3530 (mi_cmd_env_dir): Likewise.
3531 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Likewise.
3532 (mi_cmd_target_file_put): Likewise.
3533 * mi/mi-cmd-target.c (mi_cmd_target_file_delete): Likewise.
3534 * mi/mi-cmd-var.c (mi_cmd_var_evaluate_expression): Likewise.
3535 * mi/mi-getopt.c (mi_getopt): Make opts and opt const.
3536 (mi_valid_noargs): Make opts const.
3537 * mi/mi-getopt.h (mi_getopt): Make opts and opt const.
3538 * mi/mi-main.c (mi_cmd_list_thread_groups): Make opts const.
3539 (mi_cmd_data_read_memory): Likewise.
3540 (mi_cmd_data_read_memory_bytes): Likewise.
3541 (mi_cmd_data_write_memory): Likewise.
3542
5068b8e8 35432011-08-26 Matt Rice <ratmice@gmail.com>
3544
3545 * solib-sunos.c (allocate_rt_common_objfile): Add missing arguments to
3546 bcache_xmalloc, replace bcache_xmalloc with call to
3547 psymbol_bcache_init for psymbol_cache.
3548 * symfile.c (reread_symbols): Remove extra calls to bcache_xmalloc.
3549
a4f2ce05
JK
35502011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3551
3552 * inf-loop.c (inferior_event_handler): Add exception_print in
3553 INF_EXEC_COMPLETE.
3554
353d1d73
JK
35552011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3556
3557 * breakpoint.c (bpstat_do_actions): New variable cleanup_if_error, call
3558 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3559 * defs.h (make_bpstat_clear_actions_cleanup): New declaration.
3560 * exceptions.c (throw_exception): Remove the bpstat_clear_actions call.
3561 * inf-loop.c (inferior_event_handler): New variable cleanup_if_error,
3562 call make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3563 Call bpstat_clear_actions for failed fetch_inferior_event_wrapper.
3564 * infrun.c (fetch_inferior_event): Call
3565 make_bpstat_clear_actions_cleanup.
3566 * top.c (execute_command): New variable cleanup_if_error, call
3567 make_bpstat_clear_actions_cleanup and discard_cleanups for it.
3568 * utils.c (do_bpstat_clear_actions_cleanup)
3569 (make_bpstat_clear_actions_cleanup): New functions.
3570
3ced3da4
PA
35712011-08-26 Pedro Alves <pedro@codesourcery.com>
3572
3573 * linux-nat.c (linux_child_follow_fork): Don't set lp->resumed on
3574 either the parent or the child forks. Rename a couple locals.
3575
a9f4bb21
PA
35762011-08-26 Pedro Alves <pedro@codesourcery.com>
3577
3578 * linux-nat.c (wait_lwp): Avoid assuming errno is preserved by a
3579 library call. Avoid reading the `status' local if all waitpid
3580 calls failed.
3581
e5798bef
PA
35822011-08-26 Pedro Alves <pedro@codesourcery.com>
3583
3584 * common/linux-osdata.c (get_cores_used_by_process): Don't assume
3585 opening /proc/PID/task always succeeds.
3586
edb2aadf
AR
35872011-08-26 Aleksandar Ristovski <aristovski@qnx.com>
3588
3589 * linespec.c (symtab_from_filename): Check for the end of string.
3590
0d932b2f
MK
35912011-08-26 Marc Khouzam <marc.khouzam@ericsson.com>
3592
3593 PR mi/11912
3594 * varobj.c (cplus_describe_child): Add the keyword
3595 'class' to the output of the method when dealing
3596 with a cast to a base class.
3597
e93ca019
JK
35982011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3599
3600 No functionality change.
3601 * breakpoint.c (bpstat_clear_actions): Remove the BS parameter, make
3602 function comment a reference, new variables tp and bs, move here code
3603 from throw_exception.
3604 * breakpoint.h (bpstat_clear_actions): Remove the BS parameter,
3605 describe it in the comment.
3606 * exceptions.c (throw_exception): Remove variable tp, move the code for
3607 bpstat_clear_actions to bpstat_clear_actions.
3608
13da1c97
LM
36092011-08-24 Luis Machado <lgustavo@codesourcery.com>
3610
3611 * linux-nat.h (linux_proc_get_tgid): Remove declaration.
3612 * linux-nat.c: Include linux-procfs.h.
3613 (linux_proc_get_tgid): Move to ...
3614 * common/linux-procfs.c: ... here. New file.
3615 * common/linux-procfs.h: New file.
3616 * linux-thread-db.c: Include linux-procfs.h.
3617 * Makefile.in: Update dependencies.
3618 * config/alpha/alpha-linux.mh: Add linux-procfs.o dependency.
3619 * config/arm/linux.mh: Likewise.
3620 * config/i386/linux.mh: Likewise.
3621 * config/i386/linux64.mh: Likewise.
3622 * config/ia64/linux.mh: Likewise.
3623 * config/m32r/linux.mh: Likewise.
3624 * config/m68k/linux.mh: Likewise.
3625 * config/mips/linux.mh: Likewise.
3626 * config/pa/linux.mh: Likewise.
3627 * config/pa/linux.mh: Likewise.
3628 * config/powerpc/linux.mh: Likewise.
3629 * config/powerpc/ppc64-linux.mh: Likewise.
3630 * config/powerpc/spu-linux.mh: Likewise.
3631 * config/sparc/linux.mh: Likewise.
3632 * config/sparc/linux64.mh: Likewise.
3633 * config/xtensa/linux.mh: Likewise.
3634
4e5c165d
HZ
36352011-08-24 Hui Zhu <teawater@gmail.com>
3636
3637 * tracepoint.c (cond_string_is_same): New function.
3638 (find_matching_tracepoint): Add condition check
3639 by cond_string_is_same.
3640
6e2f5b22
JK
36412011-08-23 Josh Matthews <josh@joshmatthews.net>
3642
3643 Fix build error in Darwin port.
3644 * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
3645
abf85f46
JK
36462011-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3647
3648 Code cleanup.
3649 * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left.
3650 (command_line_is_silent): New function.
3651 (bpstat_do_actions_1): No longer use commands_left, use
3652 command_line_is_silent for commands.
3653 (bpstat_alloc): Remove clearing of commands_left.
3654 (bpstat_stop_status): Remove initialization of commands_left, use
3655 command_line_is_silent.
3656 * breakpoint.h (struct bpstats): Remove commands_left.
3657
3a93a0c2
KS
36582011-08-18 Keith Seitz <keiths@redhat.com>
3659
3660 PR c++/12266
3661 * cp-name-parser.y (struct demangle_info): Remove unused
3662 member PREV.
3663 (d_grab): Likewise.
3664 (allocate_info): Change return type to struct demangle_info *.
3665 Always allocate a new demangle_info.
3666 Remove unused PREV pointer.
3667 (cp_new_demangle_parse_info): New function.
3668 (cp_demangled_name_parse_free): New function.
3669 (do_demangled_name_parse_free_cleanup): New function.
3670 (make_cleanup_cp_demangled_name_parse_free): New function.
3671 (cp_demangled_name_to_comp): Change return type to
3672 struct demangle_parse_info *.
3673 Allocate a new storage for each call.
3674 (main): Update usage for cp_demangled_name_to_comp
3675 API change.
3676 * cp-support.h (struct demangle_parse_info): New structure.
3677 (cp_demangled_name_to_comp): Update API change for
3678 return type.
3679 (cp_new_demangle_parse_info): Declare.
3680 (make_cleanup_cp_demangled_name_parse_free): New declaration.
3681 (cp_demangled_name_parse_free): Declare.
3682 * cp-support.c (cp_canonicalize_string): Update API
3683 change for cp_demangled_name_to_comp.
3684 (mangled_name_to_comp): Likewise.
3685 Return struct demangle_parse_info, too.
3686 (cp_class_name_from_physname): Update mangled_name_to_comp
3687 API change.
3688 (method_name_from_physname): Likewise.
3689 (cp_func_name): Update API change for cp_demangled_name_to_comp.
3690 (cp_remove_params): Likewise.
3691 * python/py-type.c (typy_legacy_template_argument): Likewise.
3692
3693 * cp-support.h (cp_canonicalize_string_no_typedefs): Declare.
3694 (cp_merge_demangle_parse_infos): Declare.
3695 * cp-support.c (ignore_typedefs): New file global.
3696 (copy_string_to_obstack): New function.
3697 (inspect_type): New function.
3698 (replace_typedefs): New function.
3699 (replace_typedefs_qualified_name): New function.
3700 (cp_canonicalize_string_no_typedefs): New function.
3701 * cp-name-parser.y (cp_merge_demangle_parse_infos): New function.
3702 (cp_new_demangle__parse_info): Allocate and initialize the obstack.
3703 * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs
3704 instead of cp_canonicalize_string.
3705 (find_method): Likewise.
3706 (decode_compound): Before looking up the name, call
3707 cp_canonicalize_string_no_typedefs.
3708 (decode_variable): Likewise.
3709
fa3a4f15
PM
37102011-08-17 Phil Muldoon <pmuldoon@redhat.com>
3711 Tom Tromey <tromey@redhat.com>
3712 Matt Rice <ratmice@gmail.com>
3713
3714 * python/lib/gdb/prompt.py: New file.
3715 * python/lib/gdb/command/prompt.py: New file.
3716 * NEWS: Document set extended-prompt and gdb.prompt library
3717
85661b1e
YQ
37182011-08-16 Yao Qi <yao@codesourcery.com>
3719
3720 * tic6x-linux-tdep.c: Move const arrays definition from here...
3721 * tic6x-tdep.c: to here ...
3722
11315641
YQ
37232011-08-14 Yao Qi <yao@codesourcery.com>
3724
3725 * NEWS: New port to Texas Instruments TMS320C6x.
3726
8cd64e00
YQ
37272011-08-14 Andrew Jenner <andrew@codesourcery.com>
3728 Bernd Schmidt <bernds@codesourcery.com>
3729 Yao Qi <yao@codesourcery.com>
3730
3731 * configure.tgt: Handle tic6x-*-*linux and tic6x-*-*.
3732 * solib-dsbt.c: New file. Support DSBT shared object.
3733 * tic6x-linux-tdep.c: New file.
3734 * tic6x-tdep.c: New file.
3735 * tic6x-tdep.h: New file.
3736
78d85199
YQ
37372011-08-14 Andrew Stubbs <ams@codesourcery.com>
3738 Yao Qi <yao@codesourcery.com>
3739
3740 * remote.c (PACKET_qXfer_fdpic): New enum value.
3741 (remote_protocol_features): Add qXfer:fdpic:read packet.
3742 (remote_xfer_partial): Support TARGET_OBJECT_FDPIC.
3743 (_initialize_remote): Add set/show remote read-fdpic-loadmap command.
3744 * target.h (enum target_object): Add TARGET_OBJECT_FDPIC.
3745
224bbe49
YQ
37462011-08-14 Yao Qi <yao@codesourcery.com>
3747
3748 Target description for tic6x.
3749 * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x
3750 tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux.
3751 * features/tic6x-c6xp.xml, features/tic6x-core.xml: New.
3752 * features/tic6x-gp.xml, features/tic6x-c62x.xml: New.
3753 * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New.
3754 * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New.
3755 * features/tic6x-c64xp-linux.xml: New.
3756 * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated.
3757 * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated.
3758 * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated.
3759 * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated.
f040079f
HZ
3760 * regformats/tic6x-c64xp.dat,
3761 regformats/tic6x-c62x-linux.dat: Generated.
3762 * regformats/tic6x-c64x-linux.dat,
3763 regformats/tic6x-c64xp-linux.dat: Generated.
224bbe49
YQ
3764 * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and
3765 features/tic6x-*.c files.
3766 Add regformats/tic6x-*.dat files.
3767
457e09f0
DE
37682011-08-12 Doug Evans <dje@google.com>
3769
3770 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.
3771 * python/py-symbol.c (sympy_get_type): New function.
3772 (symbol_object_getset): Add "type".
3773
d20c1c3f
PA
37742011-08-12 Pedro Alves <pedro@codesourcery.com>
3775
3776 PR tui/13073
3777
3778 * tui/tui-regs.c (tui_show_register_group): Skip registers with an
3779 empty name.
3780 (tui_show_register_group): Don't store a byte buffer in the data
3781 element's value.
3782 (tui_register_format): Skip registers with an empty name.
3783 (tui_get_register): Store a struct value in the data element's
3784 value field instead of a byte buffer holding the raw register
3785 contents. Account for optimized-out and unavailable registers
3786 when comparing register contents.
3787
9d8fa392
PA
37882011-08-09 Pedro Alves <pedro@codesourcery.com>
3789
3790 * printcmd.c (current_display_number): Update comment.
3791 (disable_current_display_cleanup): Delete.
3792 (do_one_display): Use make_cleanup_restore_integer. Gracefully
3793 catch errors thrown while evaluating and printing the display.
3794
401a70b8
TT
37952011-08-09 Tom Tromey <tromey@redhat.com>
3796
3797 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.
3798
7f86f058
PA
37992011-08-09 Pedro Alves <pedro@codesourcery.com>
3800
94b71cca 3801 * elfread.c (elf_symtab_read): Rework comments.
7f86f058
PA
3802 * maint.c (maintenance_command): Ditto.
3803 * somread.c (som_symtab_read): Ditto.
3804 * solib.c (solib_find, solib_map_sections, update_solib_list)
3805 (solib_add, info_sharedlibrary_command, solib_name_from_address)
3806 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
94b71cca 3807 (sharedlibrary_command, no_shared_libraries): Ditto.
7f86f058
PA
3808 * solib-irix.c (locate_base, disable_break, enable_break)
3809 (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook)
3810 (irix_current_sos, irix_open_symbol_file_object)
3811 (irix_special_symbol_handling): Ditto.
3812 * solib-sunos.c (locate_base, first_link_map_member)
3813 (sunos_current_sos, disable_break, enable_break)
3814 (sunos_special_symbol_handling, sunos_solib_create_inferior_hook):
3815 Ditto.
3816 * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base)
3817 (open_symbol_file_object, svr4_current_sos, enable_break)
3818 (svr4_special_symbol_handling, svr4_solib_create_inferior_hook):
3819 Ditto.
3820 * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object)
3821 (frv_current_sos, enable_break, frv_special_symbol_handling)
3822 (frv_solib_create_inferior_hook): Ditto.
3823 * solist.h (struct target_so_ops): Extend the comments of the
3824 special_symbol_handling, current_sos and open_symbol_file_object
3825 methods.
3826
5e239b84
PM
38272011-08-09 Phil Muldoon <pmuldoon@redhat.com>
3828
3829 * python/lib/gdb/__init__.py: Auto-load files in command and
3830 function directories.
3831 * python/python.c (finish_python_initialization): Use
3832 os.path.join.
3833 * python/lib/gdb/command/pretty_printers.py: Self register
3834 command.
3835 * NEWS: Document auto-loading.
3836
b6cede78
JK
38372011-08-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3838
3839 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK>
3840 (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable
3841 objfile_gdbarch. Fix BFD_ENDIAN_BIG case.
3842
29d0bb3d
TT
38432011-08-08 Tom Tromey <tromey@redhat.com>
3844
3845 * breakpoint.c (clean_up_filters): Remove.
3846 (catch_syscall_split_args): Use VEC_cleanup.
3847
2f7fb8e4
JK
38482011-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3849
3850 * cp-name-parser.y (xfree): Wrap the name free by CONCAT2.
3851 (main): Uncomment "Demangling error\n".
3852
d6c10e95
PP
38532011-08-05 Paul Pluzhnikov <ppluzhnikov@google.com>
3854
3855 * solib-target.c (segment_attributes): Make them static.
3856 (section_attributes, library_children, library_attributes): Likewise.
3857 (library_list_children, library_list_attributes): Likesise.
3858 (library_list_elements): Likewise.
3859
af6e93b2
PA
38602011-08-05 Pedro Alves <pedro@codesourcery.com>
3861
3862 * exceptions.c (throw_exception): Don't disable the current
3863 display.
3864 * printcmd.c (disable_current_display_cleanup): New function.
3865 (do_one_display): Install a cleanup to disable the current display
3866 if doing the display throws.
3867
6a1b1664
EZ
38682011-08-05 Eli Zaretskii <eliz@gnu.org>
3869
3870 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Move the
3871 initialization of the tp_new member to the corresponding
3872 gdbpy_initialize_* function.
3873 * python/py-cmd.c (gdbpy_initialize_commands): Likewise.
3874 * python/py-frame.c (gdbpy_initialize_frames): Likewise.
3875 * python/py-function.c (gdbpy_initialize_functions): Likewise.
3876 * python/py-inferior.c (gdbpy_initialize_inferior): Likewise.
3877 * python/py-param.c (gdbpy_initialize_parameters): Likewise.
3878
31a0ae49
JK
38792011-08-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3880
3881 * spu-tdep.c (info_spu_event_command, info_spu_signal_command)
3882 (info_spu_mailbox_list, info_spu_mailbox_command, info_spu_dma_cmdlist)
3883 (info_spu_dma_command, info_spu_proxydma_command): Rename uiout
3884 references to current_uiout.
3885
e0dd0826
PA
38862011-08-04 Pedro Alves <pedro@codesourcery.com>
3887
3888 * event-loop.c (gdb_do_one_event): Remove `data' parameter.
3889 (start_event_loop): Use TRY_CATCH instead of catch_errors.
3890 * event-loop.h (gdb_do_one_event): Remove `data' parameter.
3891 * top.c (gdb_readline_wrapper): Adjust.
3892 * tui/tui-interp.c (tui_command_loop):
3893 (_initialize_tui_interp): Don't install it.
3894
79a45e25
PA
38952011-08-04 Pedro Alves <pedro@codesourcery.com>
3896
3897 * ui-out.h (uiout): Rename to ...
3898 (current_uiout): ... this.
3899 * ui-out.c (uiout): Rename to ...
3900 (current_uiout): ... this.
3901 * ada-lang.c (print_it_exception, print_one_exception)
3902 (print_mention_exception): Adjust.
3903 * breakpoint.c (watchpoint_check): Adjust.
3904 (print_breakpoint_location, print_one_breakpoint, breakpoint_1)
3905 (default_collect_info, watchpoints_info, print_one_catch_fork)
3906 (print_one_catch_vfork, print_one_catch_syscall)
3907 (print_one_catch_exec, mention, print_it_ranged_breakpoint)
3908 (print_one_ranged_breakpoint, print_mention_ranged_breakpoint)
3909 (print_it_watchpoint, print_mention_watchpoint)
3910 (print_it_masked_watchpoint, print_mention_masked_watchpoint)
3911 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3912 (print_mention_exception_catchpoint, say_where, bkpt_print_it)
3913 (bkpt_print_mention, momentary_bkpt_print_it)
3914 (tracepoint_print_mention, update_static_tracepoint)
3915 (tracepoints_info, save_breakpoints): Adjust.
3916 * cli-out.c (field_separator): Adjust.
3917 * cp-abi.c (list_cp_abis, show_cp_abi_cmd): Adjust.
3918 * exceptions.c (catch_exceptions_with_msg, catch_errors): Adjust.
3919 * frame.c (get_current_frame): Adjust.
3920 * infcmd.c (run_command_1, print_return_value): Adjust.
3921 * inferior.c (inferior_command, info_inferiors_command): Adjust.
3922 * infrun.c (print_end_stepping_range_reason): Adjust.
3923 (print_signal_exited_reason, print_exited_reason): Adjust.
3924 (print_signal_received_reason, print_no_history_reason): Adjust.
3925 * interps.c (interp_set): Adjust.
3926 * osdata.c (info_osdata_command): Adjust.
3927 * progspace.c (maintenance_info_program_spaces_command): Adjust.
3928 * remote-fileio.c (remote_fileio_request): Adjust.
3929 * remote.c (show_remote_cmd): Adjust.
3930 * solib.c (info_sharedlibrary_command): Adjust.
3931 * source.c (print_source_lines_base): Adjust.
3932 * stack.c (print_stack_frame): Adjust.
3933 (do_gdb_disassembly, print_frame_info, print_frame): Adjust.
3934 * symfile-mem.c (add_vsyscall_page): Adjust.
3935 * symfile.c (load_progress, generic_load)
3936 (print_transfer_performance): Adjust.
3937 * thread.c (info_threads_command, restore_selected_frame)
3938 (thread_command): Adjust.
3939 * top.c (make_cleanup_restore_ui_file): Adjust.
3940 * tracepoint.c (tvariables_info_1, trace_status_mi, tfind_1)
3941 (print_one_static_tracepoint_marker): Adjust.
3942 * cli/cli-cmds.c (print_disassembly): Adjust.
3943 * cli/cli-decode.c (print_doc_line): Adjust.
3944 * cli/cli-interp.c (safe_execute_command): Adjust.
3945 * cli/cli-logging.c (set_logging_redirect, pop_output_files)
3946 (handle_redirections): Adjust.
3947 * cli/cli-script.c (show_user_1): Adjust.
3948 * cli/cli-setshow.c (do_setshow_command, cmd_show_list): Adjust.
3949 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
3950 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Adjust.
3951 * mi/mi-cmd-env.c (mi_cmd_env_pwd, mi_cmd_env_path)
3952 (mi_cmd_env_dir): Adjust.
3953 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3954 (print_partial_file_name, mi_cmd_file_list_exec_source_files): Adjust.
3955 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames)
3956 (mi_cmd_stack_info_depth, mi_cmd_stack_list_args)
3957 (list_args_or_locals): Adjust.
3958 * mi/mi-cmd-var.c (print_varobj, mi_cmd_var_create)
3959 (mi_cmd_var_delete, mi_cmd_var_set_format, mi_cmd_var_set_frozen)
3960 (mi_cmd_var_show_format, mi_cmd_var_info_num_children)
3961 (mi_cmd_var_list_children, mi_cmd_var_info_type)
3962 (mi_cmd_var_info_path_expression, mi_cmd_var_info_expression)
3963 (mi_cmd_var_show_attributes, mi_cmd_var_evaluate_expression)
3964 (mi_cmd_var_assign, mi_cmd_var_update, varobj_update_one): Adjust.
3965 * mi/mi-interp.c (mi_on_normal_stop): Adjust.
3966 * mi/mi-main.c (mi_cmd_gdb_exit, mi_cmd_thread_select)
3967 (mi_cmd_thread_list_ids, mi_cmd_thread_info, print_one_inferior)
3968 (list_available_thread_groups, mi_cmd_list_thread_groups)
3969 (mi_cmd_data_list_register_names)
3970 (mi_cmd_data_list_changed_registers)
3971 (mi_cmd_data_list_register_values, get_register)
3972 (mi_cmd_data_evaluate_expression, mi_cmd_data_read_memory)
3973 (mi_cmd_data_read_memory_bytes, mi_cmd_list_features)
3974 (mi_cmd_list_target_features, mi_cmd_add_inferior)
3975 (mi_execute_command, mi_load_progress): Adjust.
3976 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Adjust.
3977 * python/py-auto-load.c (print_script, info_auto_load_scripts):
3978 Adjust.
3979 * python/py-breakpoint.c (bppy_get_commands): Adjust.
3980 * tui/tui-interp.c (tui_command_loop): Adjust.
3981 * tui/tui-io.c (tui_setup_io, tui_initialize_io): Adjust.
3982
f9679975
PA
39832011-08-04 Pedro Alves <pedro@codesourcery.com>
3984
3985 * exceptions.c (struct catcher): Remove saved_uiout field.
3986 (exceptions_state_mc_init): Remove the `func_uiout' parameter, and
3987 no longer save/resvore the global ui_out builder.
3988 (catch_exceptions_with_msg): Save/override/restore the global
3989 ui_out builder manually instead of relying on TRY_CATCH to do it.
3990 (catch_errors): Save/restore the global ui_out builder manually
3991 instead of relying on TRY_CATCH to do it.
3992 * exceptions.h (exceptions_state_mc_init): Remove the `func_uiout'
3993 parameter.
3994 (TRY_CATCH): Adjust.
3995 * cli/cli-interp.c (safe_execute_command): Save/override/restore
3996 the global ui_out builder manually instead of relying on TRY_CATCH
3997 to do it.
3998
934709f0
PW
39992011-08-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4000
4001 * breakpoint.c (update_global_location_list): Ensure
4002 invariant 'first loc marked not duplicated and inserted,
4003 following locs marked duplicated/not inserted' is respected
4004 for multiple locations at the same address.
4005 (unduplicated_should_be_inserted) New function.
4006 (swap_insertion) New function.
4007
2421fe6f
JK
40082011-08-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4009
4010 * stack.c (print_frame_arguments_choices): Comment typo fix.
4011
3fbb6ffa
TJB
40122011-08-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
4013
4014 Revert:
4015 2011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4016 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4017 argument. Update callers.
4018
fbe12357
PP
40192011-08-01 Paul Pluzhnikov <ppluzhnikov@google.com>
4020
4021 PR gdb/13045
4022 * doublest.c (convert_doublest_to_floatformat): Pass correct
4023 mantissa length to put_field.
4024
b1d288d3
JK
40252011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4026
4027 * stack.c (do_gdb_disassembly): Use RETURN_MASK_ERROR, simplify the
4028 exception_print code path.
4029 (backtrace_command): Remove variable e. Protect arg by make_cleanup in
4030 advance. Simplify memset. Remove TRY_CATCH. Remove explicit xfree.
4031 (backtrace_full_command): Remove variable e. Remove TRY_CATCH.
4032
311b5970
JK
40332011-08-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4034
4035 Code cleanup.
4036 * stack.c (struct print_stack_frame_args, print_stack_frame_stub):
4037 Remove, merge them into ...
4038 (print_stack_frame): ... here with a TRY_CATCH. New variable e, remove
4039 variable args and its initialization.
4040 (struct print_args_args, print_args_stub): Remove, merge them into
4041 print_frame.
4042 (struct gdb_disassembly_stub_args, gdb_disassembly_stub): Remove, merge
4043 them into ...
4044 (do_gdb_disassembly): ... here. Remove variable args and its
4045 initialization.
4046 (print_frame): Remove variable args and its initialization, new
4047 variable gdbarch and numargs (from print_args_stub), inline here
4048 print_args_stub with a TRY_CATCH.
4049 (struct backtrace_command_args, backtrace_command_stub): Remove, merge
4050 them into ...
4051 (backtrace_command, backtrace_full_command): ... here with a TRY_CATCH.
fbe12357 4052 New variable e, remove variable btargs and its initialization.
311b5970 4053
484a26a8
TG
40542011-08-01 Tristan Gingold <gingold@adacore.com>
4055
4056 * darwin-nat.c (darwin_decode_exception_message): Adjust assertion.
4057
c30eee59
TJB
40582011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4059
4060 * breakpoint.c (insert_bp_location): Document return value.
4061 (insert_breakpoint_locations): Fix documentation.
4062 (remove_breakpoints): Add documentation.
4063
f116073b
TJB
40642011-07-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
4065
4066 * breakpoint.c (insert_bp_location): Remove disabled_breaks
4067 argument. Update callers.
4068
65aa373f
JK
40692011-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
4070
4071 * stack.c (print_frame_info): Comment typo fix.
4072
a50242fb
SA
40732011-07-29 Sterling Augustine <saugustine@google.com>
4074
4075 * MAINTAINERS (Write After Approval): Add myself to the list.
4076
267f6504
TT
40772011-07-29 Tom Tromey <tromey@redhat.com>
4078
4079 * solib-target.c: Use DEF_VEC_I, not DEF_VEC_O.
4080 (library_list_start_segment): Update.
4081 (library_list_start_section): Update.
4082
00bd41d6
PM
40832011-07-28 Phil Muldoon <pmuldoon@redhat.com>
4084
4085 * varobj.c (value_get_print_value): Move hint check later into the
4086 function. Comment function. Free thevalue before reusing it.
4087
18a46dbe
JK
40882011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4089 Pedro Alves <pedro@codesourcery.com>
4090
4091 * eval.c (evaluate_subexp_standard): Remove not_lval from all calls of
4092 value_one.
4093 * valops.c (value_one): Remove parameter lv. Do not pass it to itself.
4094 Assert the result kind.
4095 * value.h (value_one): Remove parameter lv.
4096
bb7da2bf
JK
40972011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4098
4099 Fix crash on lval_computed values.
4100 * valops.c (value_zero): Use not_lval for lval_computed.
4101
2d5213f8
TT
41022011-07-27 Tom Tromey <tromey@redhat.com>
4103
4104 * Makefile.in (HFILES_NO_SRCDIR): Add 'common' prefix for
4105 gdb_assert.h, gdb_locale.h, gdb_dirent.h.
4106
11081198
JK
41072011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4108
4109 * typeprint.c (_initialize_typeprint): Extend the help of "whatis" and
4110 "ptype" by their typedefs difference.
4111
3c6e0cb3
JK
41122011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4113
4114 * dwarf2expr.c (ctx_no_read_reg): New function.
4115 * dwarf2expr.h (ctx_no_read_reg): New declaration.
4116 * dwarf2read.c (read_2_signed_bytes, read_4_signed_bytes): Remove.
4117 (decode_locdesc_read_mem, decode_locdesc_ctx_funcs): New.
4118 (decode_locdesc): Replace by a caller of dwarf_expr_eval.
4119
523f3620
JK
41202011-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4121
4122 * dwarf2-frame.c (no_get_frame_base, no_get_frame_cfa, no_get_frame_pc)
4123 (no_get_tls_address, no_dwarf_call, no_base_type): Move to the other
4124 file.
4125 (dwarf2_frame_ctx_funcs): Reference the renamed functions.
4126 * dwarf2expr.c (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4127 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4128 (ctx_no_get_base_type): Move the functions here.
4129 * dwarf2expr.h (ctx_no_get_frame_base, ctx_no_get_frame_cfa)
4130 (ctx_no_get_frame_pc, ctx_no_get_tls_address, ctx_no_dwarf_call)
4131 (ctx_no_get_base_type): New declarations.
4132
24d3216f
TT
41332011-07-27 Tom Tromey <tromey@redhat.com>
4134
4135 * xcoffread.c (dwarf2_xcoff_names): Add 'macro' and 'sentinel'
4136 entries.
4137 * symfile.h (struct dwarf2_debug_sections) <sentinel>: New field.
4138 * dwarf2read.c (dwarf2_elf_names): Add sentinel entry.
4139
5005c8a9
PP
41402011-07-26 Sterling Augustine <saugustine@google.com>
4141
4142 * cli/cli-dump.c (dump_binary_file): Change parameter type to
4143 ULONGEST.
4144 (dump_bfd_file): Likewise.
4145
480a3f21
PW
41462011-07-26 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4147
4148 * remote.c (remote_region_ok_for_hw_watchpoint): New function.
4149 (remote_hw_watchpoint_length_limit): New variable.
4150 (_initialize_remote) add set,show cmds for this new variable.
4151 * gdb.texinfo: document these new commands.
4152 * NEWS: Mention these new commands.
4153
efa80663
PA
41542011-07-26 Pedro Alves <pedro@codesourcery.com>
4155
4156 * breakpoint.c (works_in_software_mode_watchpoint): Also return
4157 true for software watchpoints.
4158
dbdaa232 41592011-07-26 Joel Brobecker <brobecker@adacore.com>
4160
4161 GDB 7.3 released.
4162
cf2c3c16
TT
41632011-07-26 Tom Tromey <tromey@redhat.com>
4164
4165 * symfile.h (struct dwarf2_debug_sections) <macro>: New field.
4166 * dwarf2read.c (read_indirect_string_at_offset): New function.
4167 (read_indirect_string): Use it.
4168 (dwarf_decode_macro_bytes): New function, taken from
4169 dwarf_decode_macros. Handle DW_MACRO_GNU_*.
4170 (dwarf_decode_macros): Use it. handle DW_MACRO_GNU_*.
4171 (dwarf_parse_macro_header, skip_form_bytes, skip_unknown_opcode):
4172 New functions.
4173 (struct dwarf2_per_objfile) <macro>: New field.
4174 (dwarf2_elf_names): Add .debug_macro.
4175 (dwarf2_macros_too_long_complaint): Add 'section' argument.
4176 (dwarf2_locate_sections): Handle new section.
4177 (read_file_scope): Handle DW_AT_GNU_macros.
4178 (dwarf2_per_objfile_free): Unmap the .debug_macro section.
4179
1a532630
PP
41802011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4181
4182 * NEWS: Mention dcache configuration.
4183 * dcache.c (dcache_set_list, dcache_show_list): New variables.
4184 (dcache_size, dcache_line_size): New variables.
4185 (LINE_SIZE_MASK, XFORM, MASK): Adjust.
4186 (struct dcache_block): Make it expandable.
4187 (struct dcache_struct): New field.
4188 (dcache_invalidate): Discard freelist upon dcache_line_size changes.
4189 (dcache_hit, dcache_alloc, dcache_peek_byte): Adjust.
4190 (dcache_poke_byte, dcache_print_line): Adjust.
4191 (set_dcache_size, set_dcache_line_size): New functions.
4192 (set_dcache_command, show_dcache_command): New functions.
4193 (_initialize_dcache): Add new commands.
4194
2eff07b3
PP
41952011-07-26 Paul Pluzhnikov <ppluzhnikov@google.com>
4196
4197 * progspace.h (struct program_space): Add solib_add_generation.
4198 * infcmd.c (post_create_inferior): Only call solib_add if not
4199 already done.
4200 * solib.c (solib_add): Increment solib_add_generation.
4201
543305c9
JK
42022011-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4203
4204 Fix implicit pointer offsets.
4205 * dwarf2loc.c (indirect_pieced_value): Comment byte_offset. Use also
4206 ptr.OFFSET.
4207
c0a91b2b
TT
42082011-07-25 Tom Tromey <tromey@redhat.com>
4209
4210 * ada-lang.c (ada_exception_breakpoint_ops): Make return type
4211 const.
4212 (ada_exception_sal): Make 'ops' const.
4213 (ada_decode_exception_location): Likewise.
4214 (ada_decode_assert_location): Likewise.
4215 (catch_assert_command): Update.
4216 (catch_ada_exception_command): Update.
4217 (create_ada_exception_catchpoint): Make 'ops' const.
4218 * breakpoint.c (set_raw_breakpoint_without_location)
4219 (set_raw_breakpoint, momentary_breakpoint_from_master): Make 'ops'
4220 const.
4221 (create_internal_breakpoint): Update.
4222 (init_raw_breakpoint_without_location): Make 'ops' const.
4223 (init_raw_breakpoint, init_catchpoint)
4224 (create_fork_vfork_event_catchpoint)
4225 (create_syscall_event_catchpoint, init_breakpoint_sal)
4226 (create_breakpoint_sal, create_breakpoints_sal)
4227 (create_breakpoint, init_ada_exception_breakpoint): Likewise.
4228 * breakpoint.h (struct breakpoint) <ops>: Now const.
4229 (init_ada_exception_breakpoint, create_breakpoint): Make 'ops'
4230 const.
4231
6cb9b55b
PP
42322011-07-25 Paul Pluzhnikov <ppluzhnikov@google.com>
4233
4234 * linux-thread-db.c (thread_from_lwp): Initialize th.th_unique.
4235
d9b3f62e
PA
42362011-07-25 Pedro Alves <pedro@codesourcery.com>
4237
4238 * breakpoint.h (print_recreate_thread): Declare.
4239 (struct breakpoint): Move step_count, pass_count,
4240 number_on_target, static_trace_marker_id,
4241 static_trace_marker_id_idx ...
4242 (struct tracepoint): ... to this new struct.
4243 (get_tracepoint, get_tracepoint_by_number_on_target)
4244 (get_tracepoint_by_number): Change return type to struct
4245 tracepoint pointer.
4246 * breakpoint.c (is_tracepoint_type): New, factored out from
4247 is_tracepoint.
4248 (is_tracepoint): Adjust.
4249 (print_one_breakpoint_location): Cast to struct tracepoint as
4250 necessary, and adjust.
4251 (print_recreate_catch_fork, print_recreate_catch_vfork)
4252 (print_recreate_catch_syscall, print_recreate_catch_exec): Call
4253 print_recreate_thread.
4254 (init_breakpoint_sal): New, factored out from
4255 create_breakpoint_sal.
4256 (create_breakpoint_sal): Reimplement.
4257 (create_breakpoint): Allocate a struct tracecepoint if the caller
4258 wanted a tracepoint. Use init_breakpoint_sal and
4259 install_breakpoint.
4260 (print_recreate_ranged_breakpoint, print_recreate_watchpoint)
4261 (print_recreate_masked_watchpoint)
4262 (print_recreate_exception_catchpoint): Call print_recreate_thread.
4263 (tracepoint_print_one_detail): Adjust.
4264 (tracepoint_print_recreate): Adjust. Call print_recreate_thread.
4265 Dump the pass count here.
4266 (update_static_tracepoint): Adjust.
4267 (addr_string_to_sals): Adjust.
4268 (create_tracepoint_from_upload): Adjust. Change return type to
4269 struct tracepoint pointer.
4270 (trace_pass_set_count): Change parameter type to struct tracepoint
4271 pointer, and adjust.
4272 (trace_pass_command): Adjust.
4273 (get_tracepoint, get_tracepoint_by_number_on_target)
4274 (get_tracepoint_by_number): Change return type to struct
4275 tracepoint pointer, and adjust.
4276 (print_recreate_thread): New, factored out from save_breakpoints.
4277 (save_breakpoints): Don't print thread and task and passcount
4278 recreation here.
4279 * remote.c (remote_download_tracepoint): Adjust.
4280 * tracepoint.c (trace_actions_command, validate_actionline)
4281 (start_tracing, tfind_1, trace_find_tracepoint_command)
4282 (trace_dump_command): Adjust.
4283 (find_matching_tracepoint): Change return type to struct
4284 tracepoint pointer, and adjust.
4285 (merge_uploaded_tracepoints, tfile_get_traceframe_address)
4286 (tfile_trace_find, tfile_fetch_registers): Adjust.
4287 * tracepoint.h (create_tracepoint_from_upload): Change return type
4288 to struct tracepoint pointer.
4289 * ada-lang.c (print_recreate_exception): Call
4290 print_recreate_thread.
4291 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Adjust.
4292
3a5c3e22
PA
42932011-07-25 Pedro Alves <pedro@codesourcery.com>
4294
4295 * breakpoint.h (struct breakpoint): Move ops as first field. Move
4296 exp_string, exp_string_reparse, exp, exp_valid_block, cond_exp,
4297 cond_exp_valid_block, val, val_valid, watchpoint_frame,
4298 watchpoint_thread, watchpoint_triggered ...
4299 (struct watchpoint): ... to this new struct.
4300 (is_watchpoint): Declare.
4301 (install_breakpoint): Add new `internal' parameter.
4302 * breakpoint.c (is_watchpoint): Delete declaration.
4303 (set_breakpoint_condition): Handle watchpoints.
4304 (is_watchpoint): Make public.
4305 (watchpoint_in_thread_scope): Change parameter type to struct
4306 watchpoint.
4307 (watchpoint_del_at_next_stop): Change parameter type to struct
4308 watchpoint. Remove assertion. Adjust.
4309 (update_watchpoint): Ditto.
4310 (insert_breakpoints, breakpoint_init_inferior)
4311 (watchpoints_triggered, watchpoint_check)
4312 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions)
4313 (bpstat_stop_status, print_one_breakpoint_location)
4314 (print_one_breakpoint_location, watchpoint_locations_match): Cast
4315 to struct watchpoint as necessary, and adjust.
4316 (install_breakpoint): Add `internal' argument. If true, don't
4317 mention the new breakpoint. Use set_breakpoint_number.
4318 (create_fork_vfork_event_catchpoint)
4319 (create_syscall_event_catchpoint): Adjust.
4320 (dtor_watchpoint): New.
4321 (re_set_watchpoint, insert_watchpoint, remove_watchpoint)
4322 (breakpoint_hit_watchpoint, resources_needed_watchpoint)
4323 (print_it_watchpoint, print_mention_watchpoint)
4324 (print_recreate_watchpoint, insert_masked_watchpoint)
4325 (remove_masked_watchpoint, resources_needed_masked_watchpoint)
4326 (print_one_detail_masked_watchpoint)
4327 (print_mention_masked_watchpoint)
4328 (print_recreate_masked_watchpoint): Cast to struct watchpoint as
4329 necessary, and adjust.
4330 (watch_command_1): Allocate and initialize a struct watchpoint
4331 instead of a struct breakpoint. Use install_breakpoint.
4332 (catch_exec_command_1): Adjust.
4333 (base_breakpoint_dtor): Delete accesses to watchpoint specific
4334 fields.
4335 (delete_breakpoint, enable_breakpoint_disp)
4336 (invalidate_bp_value_on_memory_change): Cast to struct watchpoint
4337 as necessary, and adjust.
4338 (initialize_breakpoint_ops): Install dtor_watchpoint as
4339 watchpoints' dtor method.
4340 * ada-lang.c (create_ada_exception_catchpoint): Adjust.
4341 * python/py-breakpoint.c (bppy_get_expression): Use is_watchpoint.
4342 to struct watchpoint as necessary, and adjust.
4343
2060206e
PA
43442011-07-25 Pedro Alves <pedro@codesourcery.com>
4345
4346 * ada-lang.c (dtor_exception, re_set_exception): Indirect through
4347 the the base class ops table.
4348 (catch_exception_breakpoint_ops)
4349 (catch_exception_unhandled_breakpoint_ops)
4350 (catch_assert_breakpoint_ops): Don't statically initialize.
4351 (initialize_ada_catchpoint_ops): New.
4352 (_initialize_ada_language): Call it.
4353 * breakpoint.c (base_breakpoint_ops, bkpt_base_breakpoint_ops)
4354 (bkpt_breakpoint_ops): Forward declare.
4355 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
4356 (catch_syscall_breakpoint_ops, catch_exec_breakpoint_ops)
4357 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
4358 (masked_watchpoint_breakpoint_ops)
4359 (gnu_v3_exception_catchpoint_ops): Don't statically initialize.
4360 (dtor_catch_syscall, dtor_catch_exec): Indirect through the the
4361 base class ops table.
4362 (null_re_set, null_check_status, null_works_in_software_mode)
4363 (null_resources_needed, null_print_one_detail): Delete.
4364 (bkpt_dtor): Rename to ...
4365 (base_breakpoint_dtor): ... this. Make static.
4366 (bkpt_allocate_location): Rename to ...
4367 (base_breakpoint_allocate_location): ... this. Make static.
4368 (base_breakpoint_re_set): New.
4369 (internal_error_pure_virtual_called): New.
4370 (base_breakpoint_insert_location, base_breakpoint_remove_location)
4371 (base_breakpoint_breakpoint_hit, base_breakpoint_check_status)
4372 (base_breakpoint_works_in_software_mode)
4373 (base_breakpoint_resources_needed, base_breakpoint_print_it)
4374 (base_breakpoint_print_one_detail, base_breakpoint_print_mention)
4375 (base_breakpoint_print_recreate): New functions.
4376 (base_breakpoint_ops): New global.
4377 (bkpt_re_set, bkpt_insert_location, bkpt_remove_location)
4378 (bkpt_breakpoint_hit): Make static.
4379 (bkpt_check_status): Delete.
4380 (bkpt_resources_needed): Make static.
4381 (bkpt_works_in_software_mode): Delete.
4382 (bkpt_print_it, bkpt_print_mention, bkpt_print_recreate): Make
4383 static.
4384 (bkpt_breakpoint_ops, internal_breakpoint_ops)
4385 (momentary_breakpoint_ops): Don't statically initialize.
4386 (internal_bkpt_print_recreate, momentary_bkpt_print_recreate):
4387 Delete.
4388 (tracepoint_insert_location, tracepoint_remove_location)
4389 (tracepoint_check_status, tracepoint_works_in_software_mode)
4390 (tracepoint_print_it): Delete.
4391 (tracepoint_breakpoint_ops): Don't statically initialize.
4392 (initialize_breakpoint_ops): New.
4393 (_initialize_breakpoint): Call it.
4394 * breakpoint.h (null_re_set, null_works_in_software_mode)
4395 (null_resources_needed, null_check_status, null_print_one_detail):
4396 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4397 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4398 (bkpt_check_status, bkpt_resources_needed)
4399 (bkpt_works_in_software_mode, bkpt_print_it)
4400 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4401 Delete declarations.
4402 (initialize_breakpoint_ops): Declare.
4403
001c8c33
PA
44042011-07-25 Pedro Alves <pedro@codesourcery.com>
4405
4406 * breakpoint.c (bkpt_print_it, internal_bkpt_print_it)
4407 (momentary_bkpt_print_it): Simplify.
4408
06edf0c0
PA
44092011-07-25 Pedro Alves <pedro@codesourcery.com>
4410
4411 Split internal, momentary and user breakpoints breakpoint_ops
4412 tables.
4413
4414 * breakpoint.c (internal_breakpoint_ops)
4415 (momentary_breakpoint_ops): Forward declare.
4416 (create_internal_breakpoint): Add new breakpoint_ops parameter.
4417 Pass it down, rather than hardcoding bkpt_breakpoint_ops.
4418 (create_overlay_event_breakpoint)
4419 (create_std_terminate_master_breakpoint)
4420 (create_exception_master_breakpoint): Create breakpoints with
4421 internal_breakpoint_ops vtable.
4422 (set_longjmp_breakpoint): Create momentary breakpoints with
4423 momentary_breakpoint_ops vtable, using
4424 momentary_breakpoint_from_master.
4425 (create_thread_event_breakpoint, create_jit_event_breakpoint)
4426 (create_solib_event_breakpoint): Create breakpoints with
4427 internal_breakpoint_ops vtable.
4428 (set_momentary_breakpoint): Create breakpoints with
4429 momentary_breakpoint_ops vtable.
4430 (momentary_breakpoint_from_master): New, factored out from
4431 clone_momentary_breakpoint.
4432 (clone_momentary_breakpoint): Adjust.
4433 (watch_command_1): Create scope breakpoints with
4434 momentary_breakpoint_ops vtable.
4435 (bkpt_re_set): Remove handling of internal and momentary
4436 breakpoints.
4437 (bkpt_print_mention, bkpt_print_recreate): New.
4438 (bkpt_breakpoint_ops): Adjust.
4439 (internal_bkpt_re_set, internal_bkpt_check_status)
4440 (internal_bkpt_print_it, internal_bkpt_print_mention)
4441 (internal_bkpt_print_recreate, internal_breakpoint_ops): New.
4442 (momentary_bkpt_re_set, momentary_bkpt_check_status)
4443 (momentary_bkpt_print_it, momentary_bkpt_print_mention)
4444 (momentary_bkpt_print_recreate): New.
4445 (momentary_breakpoint_ops): New.
4446
348d480f
PA
44472011-07-25 Pedro Alves <pedro@codesourcery.com>
4448
4449 Implement most breakpoint_ops methods for all breakpoint types,
4450 and move the default handlings to the proper callbacks.
4451
4452 * breakpoint.c (update_watchpoint): Always call the breakpoint's
4453 works_in_software_mode method.
4454 (insert_bp_location): Go through breakpoint_ops->insert_location
4455 for software and hardware watchpoints.
4456 (create_internal_breakpoint): Pass bkpt_breakpoint_ops as
4457 breakpoint_ops.
4458 (remove_breakpoint_1): Go through breakpoint_ops->remove_location
4459 for software and hardware watchpoints.
4460 (print_it_typical): Delete.
4461 (print_bp_stop_message): Always call the breakpoint_ops->print_it
4462 method.
4463 (watchpoint_check): Adjust comment.
4464 (bpstat_check_location): Simply always call the breakpoint's
4465 breakpoint_hit method.
4466 (bpstat_stop_status): Always call the breakpoint's check_status
4467 method. Remove special cases for watchpoints and internal event
4468 breakpoints from here (moved to the check_status implementations).
4469 (print_one_breakpoint_location): Assume b->ops is never NULL.
4470 Remove static tracepoint marker id printing from here (moved to
4471 the print_one_detail callback implementation of tracepoints).
4472 (init_bp_location): Assert OPS is never NULL.
4473 (allocate_bp_location): Always call the breakpoint's
4474 allocate_location method, and remove the default code from here.
4475 (free_bp_location): Always call the location's dtor method, and
4476 remove the default code from here.
4477 (init_raw_breakpoint_without_location): Assert OPS is never NULL.
4478 (set_raw_breakpoint_without_location): Add new breakpoint_ops
4479 parameter. Pass it down.
4480 (set_raw_breakpoint): Ditto.
4481 (print_it_catch_fork): Adjust to take a bpstat as argument.
4482 (catch_fork_breakpoint_ops): Install methods.
4483 (print_it_catch_vfork): Adjust to take a bpstat as argument.
4484 (catch_vfork_breakpoint_ops): Install methods.
4485 (dtor_catch_syscall): Call the base dtor.
4486 (print_it_catch_syscall): Adjust to take a bpstat as argument.
4487 (catch_syscall_breakpoint_ops): Install methods.
4488 (dtor_catch_exec): Call the base dtor.
4489 (print_it_catch_exec): Adjust to take a bpstat as argument.
4490 (catch_exec_breakpoint_ops): Install methods.
4491 (hw_breakpoint_used_count, hw_watchpoint_used_count): Always call
4492 the breakpoint's resources_needed method, and remove the default
4493 code from here.
4494 (set_momentary_breakpoint): Pass bkpt_breakpoint_ops as
4495 breakpoint_ops.
4496 (clone_momentary_breakpoint): Clone the original's ops.
4497 (mention): Always call the breakpoint's print_mention method, and
4498 remove the default code from here.
4499 (create_breakpoint_sal): Adjust to pass the ops to
4500 set_raw_breakpoint rather than setting it manually.
4501 (create_breakpoint): Assert ops is never NULL. Adjust to pass the
4502 ops to set_raw_breakpoint_without_location rather than setting it
4503 manually.
4504 (break_command_1): Pass bkpt_breakpoint_ops as breakpoint_ops.
4505 (print_it_ranged_breakpoint): Adjust to take a bpstat as argument.
4506 (ranged_breakpoint_ops): Install methods.
4507 (break_range_command): Adjust to pass the ops to
4508 set_raw_breakpoint rather than setting it manually.
4509 (re_set_watchpoint, breakpoint_hit_watchpoint)
4510 (check_status_watchpoint, resources_needed_watchpoint)
4511 (works_in_software_mode_watchpoint, print_it_watchpoint)
4512 (print_mention_watchpoint, print_recreate_watchpoint): New
4513 functions.
4514 (watchpoint_breakpoint_ops): Install new methods.
4515 (print_it_masked_watchpoint): New function.
4516 (masked_watchpoint_breakpoint_ops): Install new methods.
4517 (watch_command_1): Adjust to pass the right breakpoint_ops to
4518 set_raw_breakpoint_without_location rather than setting it
4519 manually later. Record the current pspace.
4520 (print_it_exception_catchpoint): Adjust to take a bpstat as
4521 argument.
4522 (gnu_v3_exception_catchpoint_ops): Install new methods.
4523 (say_where): New function.
4524 (null_re_set, null_check_status, null_works_in_software_mode)
4525 (null_resources_needed, null_print_one_detail, bp_location_dtor):
4526 New functions.
4527 (bp_location_ops): New global.
4528 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4529 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4530 (bkpt_check_status, bkpt_resources_needed)
4531 (bkpt_works_in_software_mode, bkpt_print_it, bkpt_print_mention)
4532 (bkpt_print_recreate): New functions.
4533 (bkpt_breakpoint_ops): New global.
4534 (tracepoint_re_set, tracepoint_insert_location)
4535 (tracepoint_remove_location, tracepoint_breakpoint_hit)
4536 (tracepoint_check_status, tracepoint_works_in_software_mode)
4537 (tracepoint_print_it, tracepoint_print_one_detail)
4538 (tracepoint_print_mention, tracepoint_print_recreate): New
4539 functions.
4540 (tracepoint_breakpoint_ops): New global.
4541 (delete_breakpoint): Always call the breakpoint's dtor method, and
4542 remove the default handling from here.
4543 (breakpoint_re_set_default): Make static.
4544 (breakpoint_re_set_one): Always call the breakpoints re_set
4545 method, and remove the default handling from here.
4546 (trace_command, ftrace_command, strace_command)
4547 (create_tracepoint_from_upload): Pass appropriate breakpoints_ops
4548 to create_breakpoint.
4549 (save_breakpoints): Always call the breakpoint's print_recreate
4550 method, and remove the default handling from here.
4551
4552 * ada-lang.c (dtor_exception): Call the base dtor.
4553 (re_set_exception): Call the base method.
4554 (print_it_exception, print_it_catch_exception): Adjust to take a
4555 bpstat as argument.
4556 (catch_exception_breakpoint_ops): Install methods.
4557 (print_it_catch_exception_unhandled): Adjust to take a bpstat as
4558 argument.
4559 (catch_exception_unhandled_breakpoint_ops): Install methods.
4560 (print_it_catch_assert): Adjust to take a bpstat as argument.
4561 (catch_assert_breakpoint_ops): Install methods.
4562
4563 * breakpoint.h (struct breakpoint_ops): Adjust the print_it method
4564 to take a bpstat as argument.
4565 (enum print_stop_action): Add describing comments to each enum
4566 value.
4567 (breakpoint_re_set_default): Delete declaration.
4568 (null_re_set, null_works_in_software_mode, null_resources_needed)
4569 (null_check_status, null_print_one_detail): Declare.
4570 (bkpt_breakpoint_ops): Declare.
4571 (bkpt_dtor, bkpt_allocate_location, bkpt_re_set)
4572 (bkpt_insert_location, bkpt_remove_location, bkpt_breakpoint_hit)
4573 (bkpt_check_status, bkpt_resources_needed)
4574 (bkpt_works_in_software_mode, bkpt_print_it)
4575 (null_print_one_detail, bkpt_print_mention, bkpt_print_recreate):
4576 Declare.
4577
4578 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust to pass
4579 bkpt_breakpoint_ops.
4580 * python/py-breakpoint.c (bppy_init): Ditto.
4581
be8f8133
PW
45822011-07-15 Philippe Waroquiers <philippe.waroquiers@skynet.be>
4583
4584 * MAINTAINERS (Write After Approval): Add myself to the list.
4585
3807f613
PP
45862011-07-23 Paul Pluzhnikov <ppluzhnikov@google.com>
4587
4588 * elfread.c (elf_rel_plt_read): Fix off-by-one bug.
4589
1ced966e
PA
45902011-07-22 Pedro Alves <pedro@codesourcery.com>
4591
4592 * i386-nat.c (I386_DR_VACANT, I386_DR_LOCAL_ENABLE)
4593 (I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
4594 (I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): Add state parameter and
4595 adjust.
4596 (dr_mirror, dr_status_mirror, dr_control_mirror): Delete.
4597 (struct i386_debug_reg_state): New.
4598 (i386_init_dregs): New.
4599 (dr_mirror): New.
4600 (i386_cleanup_dregs): Use i386_init_dregs.
4601 (i386_show_dr): Add state parameter and adjust.
4602 (i386_insert_aligned_watchpoint): Ditto. Don't pass the info to
4603 the inferior here.
4604 (i386_remove_aligned_watchpoint): Likewise.
4605 (i386_handle_nonaligned_watchpoint): Add state parameter and adjust.
4606 (i386_update_inferior_debug_regs): New.
4607 (i386_insert_watchpoint): Work on a local mirror of the debug
4608 registers, and only update the inferior on success.
4609 (i386_remove_watchpoint): Ditto.
4610 (i386_region_ok_for_watchpoint): Adjust.
4611 (i386_stopped_data_address): Adjust.
4612 (i386_insert_hw_breakpoint): Adjust.
4613 (i386_remove_hw_breakpoint): Adjust.
4614
3543a589
TT
46152011-07-22 Tom Tromey <tromey@redhat.com>
4616
4617 * amd64-tdep.c (amd64_pseudo_register_read_value): Rename
4618 from amd64_pseudo_register_read. Change arguments. Call
4619 mark_value_bytes_unavailable when needed.
4620 (amd64_init_abi): Use set_gdbarch_pseudo_register_read_value, not
4621 set_gdbarch_pseudo_register_read.
4622 * sentinel-frame.c (sentinel_frame_prev_register): Use
4623 regcache_cooked_read_value.
4624 * regcache.h (regcache_cooked_read_value): Declare.
4625 * regcache.c (regcache_cooked_read_value): New function.
4626 (regcache_cooked_read): Call
4627 gdbarch_pseudo_register_read_value if available.
4628 * i386-tdep.h (i386_pseudo_register_read_value): Declare.
4629 (i386_pseudo_register_read): Remove.
4630 * i386-tdep.c (i386_pseudo_register_read_into_value): Rename from
4631 i386_pseudo_register_read. Change arguments. Call
4632 mark_value_bytes_unavailable when needed.
4633 (i386_pseudo_register_read_value): New function.
4634 (i386_gdbarch_init): Call set_gdbarch_pseudo_register_read_value,
4635 not set_gdbarch_pseudo_register_read.
4636 * gdbarch.sh (pseudo_register_read_value): New method.
4637 * gdbarch.c, gdbarch.h: Rebuild.
4638 * findvar.c (value_from_register): Call get_frame_register_value.
4639
95298e72
PM
46402011-07-22 Phil Muldoon <pmuldoon@redhat.com>
4641
4642 * event-top.c (cli_command_loop): Use get_prompt, get_suffix,
4643 get_prefix.
4644 (display_gdb_prompt): Likewise.
4645 (change_annotation_level): Likewise.
4646 (push_prompt): Likewise.
4647 (pop_prompt): Likewise.
4648 (handle_stop_sig): Use get_prompt with a level.
4649 * top.c (command_loop): Use get_prompt with a level.
4650 (set_async_annotation_level): Use set_prompt with a level.
4651 (get_prefix): New function.
4652 (set_prefix): Ditto.
4653 (set_suffix): Ditto.
4654 (get_suffix): Ditto.
4655 (get_prompt): Accept a level argument.
4656 (set_prompt): Accept a level argument. Free old prompts. Set
4657 new_async_prompt if level is 0.
4658 (init_main): Use set_prompt with a level. Do not set
4659 new_async_prompt.
4660 * event-top.h (PROMPT, SUFFIX, PREFIX): Move to top.c
4661 * top.h: Declare set_suffix, get_suffix, set_prefix, get_prefix.
4662 Modify set_prompt, get_prompt to account for levels.
4663 * tui/tui-interp.c (tui_command_loop): Use get_prompt with a
4664 level.
4665 * python/python.c (before_prompt_hook): Use set_prompt.
4666
d26e3629
KY
46672011-07-22 Kwok Cheung Yeung <kcy@codesourcery.com>
4668
4669 * defs.h: Add guard against inclusion in gdbserver.
4670 (struct ptid, ptid_t): Move to common/ptid.h.
4671 (xfree, xzalloc, xasprintf, xvasprintf, xstrprintf, xstrvprintf,
4672 xsnprintf, internal_error): Move to common/common-utils.h.
4673 (nomem): Delete.
4674 * gdb_assert.h: Move into common/ sub-directory.
4675 * gdb_locale.h: Ditto.
4676 * gdb_dirent.h: Ditto.
4677 * inferior.h (minus_one_ptid, null_ptid, ptid_build, pid_to_ptid,
4678 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal, ptid_is_pid):
4679 Move into common/ptid.h.
4680 * xml-support.c (xml_escape_text): Move into common/xml-utils.c.
4681 (gdb_xml_create_parser_and_cleanup_1, xml_fetch_context_from_file):
4682 Change nomem to malloc_failure.
4683 * xml-support.h (xml_escape_text): Move into common/xml-utils.h.
4684 * utils.c (nomem): Rename to malloc_failure.
4685 (xmalloc, xzalloc, xrealloc, xcalloc, xfree, xstrprintf, xasprintf,
4686 xvasprintf, xstrvprintf, xsnprintf): Move to common/common-utils.c.
4687 (gdb_buildargv): Change nomem to malloc_failure.
4688 * infrun.c (null_ptid, minus_one_ptid, ptid_build, pid_to_ptid,
4689 ptid_get_pid, ptid_get_lwp, ptid_get_tid, ptid_equal,
4690 ptid_is_pid): Move into common/ptid.c.
4691 (initialize_infrun): Delete initialization of null_ptid and
4692 minus_one_ptid.
4693 * linux-nat.c (linux_nat_xfer_osdata): Defer to
4694 linux_common_xfer_osdata.
4695 * Makefile.in (SFILES): Add common/common-utils.c, common/xml-utils.c,
4696 common/ptid.c and common/buffer.c.
4697 (HFILES_NO_SRCDIR): Add common/common-utils.h, common/xml-utils.h,
4698 common/ptid.h, common/buffer.h and common/linux-osdata.h.
4699 (COMMON_OBS): Add xml-utils.o, common-utils.o, buffer.o and ptid.o.
4700 (common-utils.o, xml-utils.o, ptid.o, buffer.o, linux-osdata.o): New
4701 rules.
4702 * common/gdb_assert.h: New.
4703 * common/gdb_dirent.h: New.
4704 * common/gdb_locale.h: New.
4705 * common/buffer.c: New.
4706 * common/buffer.h: New.
4707 * common/ptid.c: New.
4708 * common/ptid.h: New.
4709 * common/xml-utils.c: New.
4710 * common/xml-utils.h: New.
4711 * common/common-utils.c: New.
4712 * common/common-utils.h: New.
4713 * common/linux-osdata.c: New.
4714 * common/linux-osdata.h: New.
4715 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-osdata.o.
4716 * config/arm/linux.mh (NATDEPFILES): Ditto.
4717 * config/i386/linux.mh (NATDEPFILES): Ditto.
4718 * config/i386/linux64.mh (NATDEPFILES): Ditto.
4719 * config/ia64/linux.mh (NATDEPFILES): Ditto.
4720 * config/m32r/linux.mh (NATDEPFILES): Ditto.
4721 * config/m68k/linux.mh (NATDEPFILES): Ditto.
4722 * config/mips/linux.mh (NATDEPFILES): Ditto.
4723 * config/pa/linux.mh (NATDEPFILES): Ditto.
4724 * config/powerpc/linux.mh (NATDEPFILES): Ditto.
4725 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Ditto.
4726 * config/s390/s390.mh (NATDEPFILES): Ditto.
4727 * config/sparc/linux.mh (NATDEPFILES): Ditto.
4728 * config/sparc/linux64.mh (NATDEPFILES): Ditto.
4729 * config/xtensa/linux.mh (NATDEPFILES): Ditto.
4730
edc84990 47312011-07-21 Matt Rice <ratmice@gmail.com>
4732
4733 * NEWS: Add info macros and info definitions commands.
4734
3a7bf607
PM
47352011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4736
4737 * NEWS: Document Python prompt substitution hook.
4738
9b158ba0 47392011-07-18 Matt Rice <ratmice@gmail.com>
4740
4741 PR macros/12999
4742 * macrotab.h (macro_callback_fn): Add new arguments to callback.
4743 * macrotab.c (foreach_macro): Ditto.
4744 (foreach_macro_in_scope): Ditto.
4745 * macrocmd.c (print_macro_callback): New function.
4746 (info_macro_command): Move some code to print_macro_definition.
4747 (print_macro_definition): New function.
4748 (print_one_macro): Add new arguments to callback.
4749 (info_definitions_command): New function.
4750 (info_macros_command): Ditto.
4751 (_initialize_macrocmd): Add info macros and info definitions commands.
4752 * symtab.c (add_macro_name): Add new arguments to callback.
4753
d17b6f81
PM
47542011-07-21 Phil Muldoon <pmuldoon@redhat.com>
4755 Tom Tromey <tromey@redhat.com>
4756
4757 * top.c (set_prompt): Rewrite to free previous prompt, free
4758 asynch_new_prompt and set both on new prompts.
4759 * event-top.c (display_gdb_prompt): Add prompt substitution
4760 logic.
4761 * python/python.c (before_prompt_hook): New function.
4762
1364323a 47632011-07-20 Matt Rice <ratmice@gmail.com>
4764
4765 * bfin-tdep.c (bfin_extract_return_value): Fix swapped
4766 arguments to store_unsigned_integer.
4767
8b70b953
TT
47682011-07-20 Tom Tromey <tromey@redhat.com>
4769
6c83ed52
TT
4770 * dwarf2read.c (process_enumeration_scope): Do not call new_symbol
4771 in some declaration-only cases.
4772
47732011-07-18 Tom Tromey <tromey@redhat.com>
4774
8b70b953
TT
4775 PR symtab/12984:
4776 * dwarf2read.c (dwarf2_section_info_def): New typedef.
4777 (struct dwarf2_per_objfile) <types>: Change to a VEC.
4778 (struct dwarf2_per_cu_data) <from_debug_types>: Remove.
4779 <debug_type_section>: New field.
4780 (dwarf2_locate_sections): Push .debug_types sections onto VEC.
4781 (load_cu): Use appropriate section.
4782 (create_signatured_type_table_from_index): Add 'section'
4783 argument.
4784 (dwarf2_read_index): Only allow a single .debug_types section.
4785 (dw2_get_file_names): Use appropriate section.
4786 (read_type_comp_unit_head): Add 'section' argument.
4787 (create_debug_types_hash_table): Loop over all .debug_types
4788 sections.
4789 (init_cu_die_reader): Use appropriate section.
4790 (process_psymtab_comp_unit, load_partial_comp_unit)
4791 (load_full_comp_unit, read_die_and_children, find_partial_die)
4792 (lookup_die_type, determine_prefix, follow_die_offset): Update.
4793 (lookup_signatured_type_at_offset): Add 'section' argument.
4794 (read_signatured_type_at_offset): Add 'sect' argument.
4795 (read_signatured_type): Use appropriate section.
4796 (set_die_type, get_die_type_at_offset): Update.
4797 (dwarf2_per_objfile_free): Free all .debug_types sections, and
4798 VEC.
4799 (write_psymtabs_to_index): Don't allow index with more than one
4800 .debug_types section.
4801
918dd910
JK
48022011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4803
4804 Fix crash if referenced CU is aged out.
4805 * dwarf2loc.c (per_cu_dwarf_call): New variable back_to, use to for
4806 xfree of block.data.
4807 (indirect_pieced_value): New variable back_to, use to for xfree of
4808 baton.data.
4809 (dwarf2_compile_expr_to_ax): New variable back_to, use to for xfree of
4810 block.data.
4811 * dwarf2read.c (dwarf2_find_base_address): New prototype.
4812 (load_cu): New function from ...
4813 (dw2_do_instantiate_symtab): ... the code here ...
4814 (process_full_comp_unit): ... and here.
4815 (dwarf2_fetch_die_location_block): Call load_cu first. Call xmemdup on
4816 retval.data.
4817
0e37a63c
JK
48182011-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4819
4820 * dwarf2loc.c (indirect_pieced_value): Use check_typedef for VALUE's
4821 type.
4822
7e324e48
GB
48232011-07-19 Gary Benson <gbenson@redhat.com>
4824
4825 * infrun.c (struct execution_control_state): New member
4826 stop_func_filled_in.
4827 (clear_stop_func, fill_in_stop_func): New functions.
4828 (handle_inferior_event): Call clear_stop_func rather than
4829 manipulating the execution control state directly.
4830 Call fill_in_stop_func lazily as required rather than
4831 directly calling find_pc_partial_function in all cases.
4832
d48323d8
TT
48332011-07-18 Tom Tromey <tromey@redhat.com>
4834
4835 * dwarf2read.c (read_subrange_type): Use attr_form_is_block when
4836 checking for variable-sized array.
4837
40591b7d
JCD
48382011-07-18 Jean-Charles Delay <delay@adacore.com>
4839
4840 * varobj.h (varobj_languages): Add vlang_ada definition to the list
4841 of supported languages.
4842 * varobj.c: Add top definitions and basic implementation of the
4843 following callbacks: ada_number_of_children, ada_name_of_variable,
4844 ada_name_of_child, ada_path_expr_of_child, ada_value_of_root,
4845 ada_value_of_child, ada_type_of_child, ada_value_of_variable.
4846 (languages): Register Ada-specific callbacks.
4847 (variable_language): Add the Ada case in the language setter switch.
4848
2e424e08
JK
48492011-07-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4850
4851 * remote-mips.c (pmon_download): Fix ignored return value GCC warning.
4852
9e8b7a03
JK
48532011-07-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4854
4855 Code cleanup.
4856 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): New.
4857 (execute_stack_op): Use dwarf2_frame_ctx_funcs
4858 * dwarf2expr.c (dwarf_get_base_type): Access get_base_type via funcs.
4859 (execute_stack_op): Access read_reg, get_frame_base, read_mem,
4860 get_frame_cfa, get_tls_address and dwarf_call via funcs.
4861 * dwarf2expr.h (struct dwarf_expr_context): New forward declaration.
4862 (struct dwarf_expr_context_funcs): New, move here methods from ...
4863 (struct dwarf_expr_context): ... here. New fields funcs.
4864 * dwarf2loc.c (dwarf_expr_dwarf_call): Access get_frame_pc via funcs.
4865 (dwarf_expr_ctx_funcs): New.
4866 (dwarf2_evaluate_loc_desc_full): Use dwarf_expr_ctx_funcs.
4867 (needs_frame_dwarf_call): Access get_frame_pc via funcs.
4868 (needs_frame_ctx_funcs): New.
4869 (dwarf2_loc_desc_needs_frame): Use needs_frame_ctx_funcs.
4870
2b1260ab
FM
48712011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4872
4873 * MAINTAINERS (Write After Approval): Add myself to the list.
4874
8bd90839
FM
48752011-07-15 Fawzi Mohamed <fawzi.mohamed@nokia.com>
4876
4877 * dwarf2-frame.c (decode_frame_entry, decode_frame_entry_1): Ensure
4878 that CIE pointer of an FDE really points to a CIE .
4879
953b98d1
HZ
48802011-07-15 Hui Zhu <teawater@gmail.com>
4881
4882 * remote.c (remote_get_trace_status): Add comments.
4883
c8f2448a
JK
48842011-07-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4885
4886 Code cleanup - constify struct lval_funcs.
4887 * dwarf2loc.c (pieced_value_funcs): Make it const.
4888 * infrun.c (siginfo_value_funcs): Likewise.
4889 * opencl-lang.c (opencl_value_funcs): Likewise.
4890 * valops.c (value_assign, value_ind): Make the funcs variable const.
4891 * value.c (struct value): Make location.computed.funcs target const.
4892 Rearrange the comments.
4893 (allocate_computed_value): Make the funcs parameter target const.
4894 (value_computed_funcs): Return the funcs target const.
4895 (value_free, value_copy, set_value_component_location): Make the funcs
4896 variable const.
4897 * value.h (allocate_computed_value): Make the funcs parameter target
4898 const.
4899 (value_computed_funcs): Return the funcs target const.
4900 * windows-tdep.c (tlb_value_funcs): Make it const.
4901
f652de6f
HZ
49022011-07-14 Hui Zhu <teawater@gmail.com>
4903
4904 * remote.c (remote_get_trace_status): Initialize p.
4905
67f41397
JK
49062011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4907
4908 Work around kgdb.
4909 * remote.c (remote_get_trace_status): New variable ex. Put
4910 remote_get_noisy_reply into TRY_CATCH. Call exception_fprintf for it.
4911
d1b66e6d
TT
49122011-07-13 Tom Tromey <tromey@redhat.com>
4913
4914 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_regval_type>: Use
4915 value_from_contents for final conversion.
4916
1632a688
JK
49172011-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4918
4919 Code cleanup.
4920 * dwarf2loc.c (dwarf_expr_frame_base_1, dwarf2_evaluate_loc_desc_full):
4921 Indent prototypes so they do not get into tags.
4922
a7035dbb
JK
49232011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4924
4925 Code cleanup making also optimized out values lazy.
4926 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use
4927 allocate_optimized_out_value. Twice.
4928 (loclist_read_variable) Use allocate_optimized_out_value. Once.
4929 * findvar.c (read_var_value): Likewise.
4930 * value.c (allocate_optimized_out_value): New function.
4931 * value.h (allocate_optimized_out_value): New declaration.
4932
d07ed419
JK
49332011-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4934
4935 Fix occasional crash of CTRL-C during DWARF read in.
4936 * dwarf2read.c (dwarf2_mark_helper): Return on NULL CU.
4937
86d31898
TT
49382011-07-11 Tom Tromey <tromey@redhat.com>
4939
4940 * regcache.c (struct regcache_descr): Fix typo.
4941 * i387-tdep.c (i387_supply_xsave): Fix typo.
4942
2ab95328
TT
49432011-07-11 Tom Tromey <tromey@redhat.com>
4944
4945 * dwarf2read.c (handle_DW_AT_stmt_list): New function.
4946 (read_file_scope, read_type_unit_scope): Use it.
4947
04ad99e6
JK
49482011-07-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4949
4950 * dwarf2expr.c (read_sleb128): Fix signed extension overflowing host
4951 `int'.
4952
713389e0
PM
49532011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4954
4955 PR python/12438
4956 * python/python.c: Set gdbpy_should_print_stack default to off.
4957 (set_python): Deprecate maint set python print-stack to
4958 class_deprecate.
4959 (_initialize_python): Deprecate maint set/show python print-stack.
4960 Add new prefix command, python. Add new setting, print-backtrace.
4961 * NEWS: Document set python print-stack. Document default change.
4962
754eadd1
PM
49632011-07-11 Phil Muldoon <pmuldoon@redhat.com>
4964
4965 * python/py-inferior.c (infpy_dealloc): New function.
4966 (inferior_to_inferior_object): Return a new object, or a
4967 new reference to the existing object.
4968 (find_thread_object): Cleanup references to inferior.
4969 (delete_thread_object): Ditto.
4970 * python/py-infthread.c (create_thread_object): Do not increment
4971 inferior reference count.
4972
5e44ecb3
TT
49732011-07-08 Tom Tromey <tromey@redhat.com>
4974
4975 * dwarf2loc.c (locexpr_regname): New function.
4976 (locexpr_describe_location_piece): Use it.
4977 (disassemble_dwarf_expression): Add per_cu argument. Use
4978 locexpr_regname.
4979 <DW_OP_GNU_deref_type, DW_OP_GNU_const_type,
4980 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
4981 New cases.
4982 (locexpr_describe_location_1): Add per_cu argument.
4983 (locexpr_describe_location): Update.
4984 (loclist_describe_location): Update.
4985
e0e9434c
TT
49862011-07-08 Tom Tromey <tromey@redhat.com>
4987
4988 * dwarf2expr.c (execute_stack_op): Add QUIT.
4989
26afc0d7
HZ
49902011-07-07 Hui Zhu <teawater@gmail.com>
4991
4992 Revert:
4993 2011-07-06 Hui Zhu <teawater@gmail.com>
4994 * remote.c (remote_start_remote): Add TRY_CATCH for
4995 remote_get_trace_status.
4996 * tracepoint.c (disconnect_tracing): Ditto.
4997
a40a111f
AB
49982011-07-07 Andrew Burgess <aburgess@broadcom.com>
4999
5000 * cli/cli-setshow.c (do_setshow_command): Display var_zinteger
5001 variables as signed, not unsigned.
5002
e2bd3b15
JB
50032011-07-06 Joel Brobecker <brobecker@adacore.com>
5004
5005 * jit.c (jit_inferior_init): Reformat forward declaration.
5006
e3d961fe 50072011-07-06 Matt Rice <ratmice@gmail.com>
5008
5009 * MAINTAINERS (Write After Approval): Add myself to the list.
5010
0f3428f0
HZ
50112011-07-06 Hui Zhu <teawater@gmail.com>
5012
5013 * remote.c (remote_start_remote): Add TRY_CATCH for
5014 remote_get_trace_status.
5015 * tracepoint.c (disconnect_tracing): Ditto.
5016
fc9f3a69
TT
50172011-07-05 Tom Tromey <tromey@redhat.com>
5018
5019 * symtab.c (operator_chars): Now static.
5020 * linespec.c (operator_chars): Don't declare.
5021
26e519b9
TJB
50222011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
5023
5024 * ui-out.h (ui_out_field_core_addr): Fix typo in comment.
5025
eb2a6f42
TT
50262011-07-05 Tom Tromey <tromey@redhat.com>
5027
5028 * gnu-v3-abi.c (gnuv3_rtti_type): Check TYPE_CPLUS_REALLY_JAVA.
5029 * gdbtypes.h (struct cplus_struct_type) <is_java>: New field.
5030 (TYPE_CPLUS_REALLY_JAVA): New macro.
5031 * dwarf2read.c (process_structure_scope): Set
5032 TYPE_CPLUS_REALLY_JAVA.
5033
21083d0f 50342011-07-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
177b42fe
TJB
5035
5036 * ada-lang.c: Fix typos.
5037 * amd64-tdep.c: Likewise.
5038 * breakpoint.c: Likewise.
5039 * cli/cli-decode.c: Likewise.
5040 * findcmd.c: Likewise.
5041 * inline-frame.c: Likewise.
5042 * mi/mi-main.c: Likewise.
5043 * minsyms.c: Likewise.
5044 * monitor.c: Likewise.
5045 * monitor.h: Likewise.
5046 * prologue-value.c: Likewise.
5047 * reverse.c: Likewise.
5048 * s390-tdep.c: Likewise.
5049
3b2a0cf2
JB
50502011-07-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5051
5052 * jit.c (jit_inferior_init): Forward declare.
5053 (jit_breakpoint_re_set_internal): Call jit_inferior_init.
5054
efae1d92
JB
50552011-07-04 Joel Brobecker <brobecker@adacore.com>
5056
5057 * osabi.c (generic_elf_osabi_sniffer): Minor comment reformatting.
5058
6040a59d
JB
50592011-07-04 Tristan Gingold <gingold@adacore.com>
5060
5061 * ada-tasks.c (KNOWN_TASKS_LIST): New macro.
5062 (tcb_fieldno): Add activation_link field.
5063 (get_known_tasks_addr): Moved and rewritten.
5064 (get_tcb_types_info): Set activation_link field.
5065 (read_known_tasks_array): Add parameter. Rewritten.
5066 (read_known_tasks_list): New function.
5067 (read_known_tasks): New function.
5068 (ada_build_task_list): Call read_known_tasks instead of
5069 read_known_tasks_array.
5070 * ravenscar-thread.c: Add first_task_name constant.
5071 (has_ravenscar_runtime): Check for task list too.
5072
cb741e45
JB
50732011-07-04 Tristan Gingold <gingold@adacore.com>
5074
5075 * ada-tasks.c: Renames fieldno to actb_fieldno.
5076 (ada_get_task_number): Indentation.
5077 (get_tcb_types_info): Remove all parameters. Write directly
5078 the globals.
5079 (ptid_from_atcb_common): Adjust.
5080 (read_atcb): Adjust.
5081
7475b06c
TJB
50822011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5083
5084 * symtab.c (in_prologue): Remove mention of ppc's refine_prologue_limit.
5085
15230f37
TJB
50862011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5087
5088 * ui-out.c (ui_out_field_core_addr): Mention that the function
5089 description is in the header file.
5090 * ui-out.h (ui_out_field_core_addr): Document function.
5091
65743aba
TJB
50922011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5093
5094 * ui-out.c (ui_out_get_field_separator): Remove unused function.
5095 * ui-out.h (ui_out_get_field_separator): Remove prototype.
5096
c37a5aab
TJB
50972011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5098
5099 * symtab.c (expand_line_sal): Remove empty line.
5100
59adf69e
TS
51012011-07-04 Thomas Schwinge <thomas@schwinge.name>
5102
5103 * osabi.c (generic_elf_osabi_sniffer) <ELFOSABI_GNU>: Handle in the
5104 same way as ELFOSABI_NONE.
5105 <ELFOSABI_LINUX, ELFOSABI_HURD>: Remove cases.
5106
e5dd4106
TJB
51072011-07-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
5108
5109 * breakpoint.c: Fix typos in comments.
5110 * linespec.c: Likewise.
5111 * symtab.c: Likewise.
5112
d40102a1
JB
51132011-07-04 Joel Brobecker <brobecker@adacore.com>
5114
5115 * dwarf2-frame.c (dwarf2_build_frame_info): Do not load .eh_frame
5116 section in separate object files.
5117
2f741504
JK
51182011-07-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5119
5120 Fix false GCC warning.
5121 * linespec.c (decode_line_1): Initialize values.
5122
418c7cf7
JK
51232011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5124
5125 * linespec.c (find_method): Accept the function type automatically only
5126 if it was specified with parameter types.
5127
3d50dd94
JK
51282011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5129
5130 Stop on first linespec terminator instead of eating what we can.
5131 * linespec.c (is_linespec_boundary): New function.
5132 (name_end): Remove function.
5133 (keep_name_info): New parameter on_boundary, replace the body.
5134 (decode_line_1): Provide the parameter to keep_name_info.
5135 (decode_compound): Likewise. Drop the trailing java return type
5136 handling. Twice.
5137
dcf9f4ab
JK
51382011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5139
5140 Fall back linespec to minimal symbols.
5141 * linespec.c (decode_line_1): New variable ex, saved_argptr. Protect
5142 decode_compound by TRY_CATCH, fall back on minsyms if it failed.
5143 (find_method, symbol_found): Change error to cplusplus_error.
5144
3f542ed1
JK
51452011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5146
bc68c4e5 5147 * symtab.c (symbol_find_demangled_name): Remove DMGL_VERBOSE.
3f542ed1 5148
900e11f9
JK
51492011-07-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5150 Tom Tromey <tromey@redhat.com>
5151
5152 * dwarf2read.c (check_physname): New variable.
5153 (dwarf2_physname): Prefer DW_AT_linkage_name over dwarf2_compute_name.
5154 (show_check_physname): New function.
5155 (_initialize_dwarf2_read): Add `check-physname' for check_physname.
5156
2301925d
JB
51572011-07-01 Joel Brobecker <brobecker@adacore.com>
5158
5159 * machoread.c (macho_symfile_read): Delete OBE comment.
5160
38947cca
JB
51612011-07-01 Joel Brobecker <brobecker@adacore.com>
5162
5163 * machoread.c (struct macho_oso_data): Delete.
5164 (current_oso): Delete.
5165 (macho_relocate_common_syms): New function, mostly extracted
5166 out of
5167 (macho_add_oso_symfile): Call macho_relocate_common_syms.
5168 Remove code that sets and unset current_oso.
5169 (macho_symfile_relocate): Delete handling of common symbols,
5170 now moved to macho_relocate_common_syms.
5171
a7aa0d73
JB
51722011-07-01 Joel Brobecker <brobecker@adacore.com>
5173
5174 * darwin-nat.c (darwin_ptrace): Add documentation.
5175 Set errno to zero before calling ptrace. If ptrace returns
5176 -1 and errno is zero, then change then return zero.
5177 (darwin_kill_inferior): Issue a warning instead of triggering
5178 a failed assertion when the PT_KILL ptrace operations returned
5179 nonzero.
5180
5e9bc145
JB
51812011-07-01 Joel Brobecker <brobecker@adacore.com>
5182
5183 * darwin-nat.c (darwin_detach): Call darwin_resume_inferior
5184 only when inf->private->no_ptrace.
5185
00eb2c4a
JB
51862011-07-01 Joel Brobecker <brobecker@adacore.com>
5187
5188 * ada-lang.c (print_it_exception): Print temporary catchpoints
5189 as "Temporary catchpoint".
5190 (print_mention_exception): Likewise.
5191
127c81bc
TT
51922011-07-01 Tom Tromey <tromey@redhat.com>
5193
5194 * jv-lang.c (java_language_defn): Use java_printchar,
5195 java_printstr.
5196 (java_get_encoding): New function.
5197 (java_emit_char): Use generic_emit_char.
5198 (java_printchar): New function.
5199 (java_printstr): Likewise.
5200
25552254
JB
52012011-07-01 Joel Brobecker <brobecker@adacore.com>
5202
5203 * ada-typeprint.c (print_record_type): If unable to decode
5204 the name of the parent type, use the encoded name.
5205
d2d43431
JB
52062011-07-01 Jean-Charles Delay <delay@adacore.com>
5207
5208 * ada-typeprint.c (ada_print_type): Fix both PAD type and
5209 pointer to constrained packed array type output.
5210 * ada-valprint.c (ada_val_print_1): Fix pointer to constrained
5211 packed array output.
5212
54ae186f
JB
52132011-07-01 Jean-Charles Delay <delay@adacore.com>
5214
5215 * ada-typeprint.c (print_array_type): removed if condition on show
5216 being negative for bounds printing.
5217
8f17729f
JB
52182011-07-01 Joel Brobecker <brobecker@adacore.com>
5219
5220 * ada-lang.c (ada_identical_enum_types_p): New function.
5221 (symbols_are_identical_enums): New function.
5222 (remove_extra_symbols): Do nothing if NSYMS < 2.
5223 Use symbols_are_identical_enums.
5224
f5aa6869
JB
52252011-07-01 Joel Brobecker <brobecker@adacore.com>
5226
5227 * ada-valprint.c (ada_value_print): Handle typedefs.
5228
8f465ea7
JB
52292011-07-01 Joel Brobecker <brobecker@adacore.com>
5230
5231 * ada-lang.c (ada_evaluate_subexp): Add missing word in comment.
5232
828292f2
JB
52332011-07-01 Eric Botcazou <ebotcazou@adacore.com>
5234
5235 * ada-lang.c (thin_descriptor_type): Deal with typedefs.
5236 (decode_constrained_packed_array): Likewise.
5237 (ada_evaluate_subexp) <TERNOP_SLICE>: Likewise.
5238
18920c42
JB
52392011-07-01 Joel Brobecker <brobecker@adacore.com>
5240
5241 * ada-exp.y (convert_char_literal): Handle typedef types.
5242
c90092fe
JB
52432011-07-01 Joel Brobecker <brobecker@adacore.com>
5244
5245 * ada-lang.c (ada_remove_trailing_digits): Expand documentation.
5246
f748fb40
TT
52472011-06-30 Tom Tromey <tromey@redhat.com>
5248
5249 * varobj.c (varobj_create): Call do_cleanups on early exit path.
5250 * valops.c (find_overload_match): Call do_cleanups on early exit
5251 path.
5252 * solib.c (solib_find): Call do_cleanups on early exit path.
5253
3bb47e8b
TT
52542011-06-30 Tom Tromey <tromey@redhat.com>
5255
5256 * symfile-mem.c (symbol_file_add_from_memory): Call do_cleanups.
5257 * solib-svr4.c (open_symbol_file_object): Call do_cleanups on all
5258 return paths. Defer final do_cleanups until last return.
5259 * arm-tdep.c (arm_exidx_new_objfile): Make null cleanup after
5260 early return.
5261
4727bad3
TT
52622011-06-30 Tom Tromey <tromey@redhat.com>
5263
5264 * Makefile.in (SUBDIR_MI_CFLAGS): Don't add -DMI_OUT=1.
5265
bb361dbf
AB
52662011-06-30 Andrew Burgess <aburgess@broadcom.com>
5267
5268 * MAINTAINERS (Write After Approval): Add myself to the list.
5269
e0d00bc7
JK
52702011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5271
5272 Disable epilogue unwinders on recent GCCs.
5273 * amd64-tdep.c (amd64_in_function_epilogue_p): New variable symtab,
5274 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5275 * dwarf2read.c (process_full_comp_unit): Initialize
5276 EPILOGUE_UNWIND_VALID.
5277 * i386-tdep.c (i386_in_function_epilogue_p): New variable symtab,
5278 initialize it, return 0 on EPILOGUE_UNWIND_VALID.
5279 * symtab.h (struct symtab): New field epilogue_unwind_valid.
5280
4632c0d0
JK
52812011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5282
5283 Code cleanup - reformatting.
5284 * dwarf2read.c (producer_is_gcc_ge_4_0): Rename to ...
5285 (producer_is_gcc_ge_4): ... here, change the return value.
5286 (process_full_comp_unit): New variable gcc_4_minor, adjust the value
5287 interpretation.
5288
32019081
JK
52892011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5290
5291 Fix non-only rename list for Fortran modules import.
5292 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Adjust the
5293 cp_add_using_directive caller.
5294 (cp_add_using_directive): New parameter excludes, describe it. New
5295 variables ix and param. Compare if also excludes match. Allocate NEW
5296 with variable size, initialize EXCLUDES there.
5297 (cp_lookup_symbol_imports): New variable excludep, test
5298 current->EXCLUDES with it.
5299 * cp-support.h: Include vec.h.
5300 (struct using_direct): New field excludes, describe it.
5301 (DEF_VEC_P (const_char_ptr)): New.
5302 (cp_add_using_directive): New parameter excludes.
5303 * defs.h (const_char_ptr): New typedef.
5304 * dwarf2read.c (read_import_statement): New variables child_die,
5305 excludes and cleanups, read in excludes.
5306 (read_namespace): Adjust the cp_add_using_directive caller.
5307
70c622a3
JK
53082011-06-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5309
5310 Code cleanup.
5311 * cp-namespace.c (cp_add_using_directive): Turn positive comparison to
5312 negative comparisons.
5313
39c4d40a
TT
53142011-06-29 André Pönitz <andre.poenitz@nokia.com>
5315
5316 * mi/mi-main.c (mi_cmd_list_features): Emit
5317 breakpoint-notifications.
5318
3b2b8fea
TT
53192011-06-29 Tom Tromey <tromey@redhat.com>
5320
5321 PR fortran/10036:
5322 * valprint.h (generic_emit_char, generic_printstr): Declare.
5323 * valprint.c (wchar_printable, append_string_as_wide)
5324 (print_wchar): Move from c-lang.c.
5325 (generic_emit_char): New function; mostly taken from c_emit_char.
5326 (generic_printstr): New function; mostly taken from c_printstr.
5327 * f-valprint.c (f_val_print) <TYPE_CODE_ARRAY>: Handle strings
5328 represented as arrays.
5329 <TYPE_CODE_CHAR>: Treat as TYPE_CODE_INT; recognize as character
5330 type.
5331 * f-typeprint.c (f_type_print_base) <TYPE_CODE_CHAR>: Treat
5332 identically to TYPE_CODE_INT.
5333 * f-lang.c (f_get_encoding): New function.
5334 (f_emit_char): Use generic_emit_char.
5335 (f_printchar): Replace comment.
5336 (f_printstr): Use generic_printstr.
5337 * dwarf2read.c (read_base_type) <DW_ATE_unsigned>: Handle Fortran
5338 "character" types specially.
5339 <DW_ATE_signed_char, DW_ATE_unsigned_char>: Make TYPE_CODE_CHAR
5340 for Fortran.
5341 * c-lang.c (wchar_printable, append_string_as_wide, print_wchar):
5342 Move to valprint.c
5343 (c_emit_char): Call generic_emit_char.
5344 (c_printstr): Call generic_printstr.
5345
168e6d44
GB
53462011-06-29 Gary Benson <gbenson@redhat.com>
5347
5348 * breakpoint.c (bpstat_what): Removed duplicated case.
5349
1c033f8c
TT
53502011-06-28 Tom Tromey <tromey@redhat.com>
5351
5352 * python/python-internal.h (PY_SSIZE_T_CLEAN): Define.
5353
5fe41fbf
TT
53542011-06-27 Tom Tromey <tromey@redhat.com>
5355
5356 * valops.c (find_overload_match): Call do_cleanups before early
5357 return.
5358 * top.c (execute_command): Call do_cleanups before early return.
5359 (command_loop): Likewise.
5360 * stack.c (backtrace_command): Make a null cleanup early. Don't
5361 conditionally call do_cleanups.
5362 * python/py-value.c (TRY_CATCH): Move cleanup handling into
5363 TRY_CATCH.
5364 * python/py-breakpoint.c (gdbpy_breakpoint_has_py_cond): Rearrange
5365 so cleanups are always run.
5366 * mi/mi-cmd-var.c (mi_cmd_var_delete): Reset old_cleanups.
5367 * findcmd.c (parse_find_args): Call do_cleanups on early return
5368 path.
5369 * dbxread.c (elfstab_build_psymtabs): Make a null cleanup early.
5370 Don't conditionally call do_cleanups.
5371 * cli/cli-script.c (execute_user_command): Initialize 'old_chain'
5372 later.
5373
e26bd57d
EB
53742011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5375
5376 * MAINTAINERS (Write After Approval): Use default email address.
5377
6c3097fc
JB
53782011-06-27 Joel Brobecker <brobecker@adacore.com>
5379
5380 * MAINTAINERS (Write After Approval): Add Eric Botcazou.
5381
369c397b
JB
53822011-06-27 Eric Botcazou <ebotcazou@adacore.com>
5383
5384 * sparc-tdep.h (struct sparc_frame_cache): Add frame_offset,
5385 saved_regs_mask and copied_regs_mask fields.
5386 (sparc_record_save_insn): New prototype.
5387 * sparc-tdep.c (sparc_alloc_frame_cache): Initialize the new fields.
5388 (sparc_record_save_insn): New function.
5389 (sparc_analyze_prologue): Add head comment. Recognize store insns
5390 of call-saved registers. Use OFFSET consistently. Recognize flat
5391 frames and cache their settings.
5392 (sparc32_skip_prologue): Handle flat frames.
5393 (sparc_frame_cache): Add frame_offset to the base address.
5394 (sparc32_frame_cache): Adjust to new frame description.
5395 (sparc32_frame_prev_register): Likewise.
5396 * sparc64-tdep.c (sparc64_frame_prev_register): Likewise.
5397 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_cache): Likewise.
5398 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_cache): Likewise.
5399 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_cache): Force the
5400 frame by calling sparc_record_save_insn.
5401 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_cache): Likewise.
5402 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_cache): Likewise.
5403 * sparc64obsd-tdep.c (sparc64obsd_frame_cache): Likewise.
5404
b315ab21
TG
54052011-06-27 Tristan Gingold <gingold@adacore.com>
5406
5407 * dwarf2read.c (struct dwarf2_section_info): Replace was_mmapped
5408 field by map_addr and map_len.
5409 (dwarf2_read_section): Adjust for the new bfd_mmap api.
5410 (munmap_section_buffer): Likewise.
5411
ddd49eee
TT
54122011-06-24 Tom Tromey <tromey@redhat.com>
5413
5414 * varobj.c (update_dynamic_varobj_children): Make 'name' const.
5415 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
5416 * python/python.c (gdbpy_parameter): Make 'arg' const.
5417 (execute_gdb_command): Likewise.
5418 (gdbpy_decode_line): Likewise. Copy it.
5419 (gdbpy_parse_and_eval): Make 'expr_string' const. Copy it.
5420 (gdbpy_write): Make 'arg' const.
5421 * python/py-type.c (typy_lookup_typename): Make 'type_name'
5422 const.
5423 (gdbpy_lookup_type): Likewise.
5424 * python/py-prettyprint.c (print_children): Make 'name' const.
5425 * python/py-param.c (parmpy_init): Make 'name' const. Copy it.
5426 * python/py-inferior.c (infpy_write_memory): Make 'buf_len' a
5427 Py_ssize_t.
5428 * python/py-function.c (fnpy_init): Make 'name' const.
5429 * python/py-cmd.c (cmdpy_init): Make 'name' const. Copy it.
5430 (gdbpy_string_to_argv): Make 'input' const.
5431 * python/py-breakpoint.c (bppy_init): Make 'spec' const. Copy
5432 it.
5433 * gdbtypes.h (lookup_typename): Update.
5434 * gdbtypes.c (lookup_typename): Make 'name' const.
5435 (lookup_struct): Likewise.
5436 (lookup_union): Likewise.
5437 (lookup_enum): Likewise.
5438
5998129b
TT
54392011-06-24 Tom Tromey <tromey@redhat.com>
5440
5441 * Makefile.in (HFILES_NO_SRCDIR): Add "common/" to
5442 gdb_thread_db.h. Move all common/ entries to be together.
5443 (TAGS): Don't depend on DEPFILES.
5444
6e586cc5
YQ
54452011-06-23 Yao Qi <yao@codesourcery.com>
5446
5447 * infrun.c (start_remote): Move call init_wait_for_inferior to ...
5448 * remote.c (remote_start_remote): ... here.
5449 * monitor.c (monitor_open): ... here.
5450
86c3c1fc
AB
54512011-06-23 Andrew Burgess <aburgess@broadcom.com>
5452
5453 * gdbtypes.c (append_composite_type_field_aligned): Fix
5454 calculation of bit position based on alignment.
5455
28010a5d
PA
54562011-06-22 Pedro Alves <pedro@codesourcery.com>
5457
5458 * breakpoint.c (bpstat_stop_status): Call the check_status
5459 breakpoint_ops method.
5460 (print_one_breakpoint_location): Also print the condition for Ada
5461 exception catchpoints.
5462 (allocate_bp_location): New, factored out from
5463 allocate_bp_location.
5464 (allocate_bp_location): Adjust. Call the owner breakpoint's
5465 allocate_location method, if there is one.
5466 (free_bp_location): Call the locations's dtor method, if there is
5467 one.
5468 (init_raw_breakpoint_without_location): New breakpoint_ops
5469 parameter. Use it.
5470 (set_raw_breakpoint_without_location): Adjust.
5471 (init_raw_breakpoint): New breakpoint_ops parameter. Pass it down.
5472 (set_raw_breakpoint): Adjust.
5473 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops)
5474 (catch_syscall_breakpoint_ops): Install NULL allocate_location,
5475 re_set and check_status methods.
5476 (init_catchpoint): Don't memset, initialize thread, addr_string
5477 and enable_state. Pass the ops down to init_raw_breakpoint.
5478 (install_catchpoint): Rename to ...
5479 (install_breakpoint): ... this, and make extern.
5480 (create_fork_vfork_event_catchpoint): Adjust.
5481 (catch_exec_breakpoint_ops): Install NULL allocate_location,
5482 re_set and check_status methods.
5483 (create_syscall_event_catchpoint): Adjust.
5484 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5485 (masked_watchpoint_breakpoint_ops): Install NULL
5486 allocate_location, re_set and check_status methods.
5487 (catch_exec_command_1): Adjust.
5488 (gnu_v3_exception_catchpoint_ops): Install NULL allocate_location,
5489 re_set and check_status methods.
5490 (create_ada_exception_breakpoint): Rename to ...
5491 (init_ada_exception_breakpoint): ... this. Add a struct
5492 breakpoint parameter, and delete the exp_string, cond_string and
5493 cond parameters. Use init_raw_breakpoint, and don't install or
5494 mention the breakpoint yet. Don't clear breakpoint fields that
5495 init_raw_breakpoint already clears.
5496 (re_set_breakpoint): Delete, split into ...
5497 (breakpoint_re_set_default, prepare_re_set_context): ... these new
5498 functions.
5499 (breakpoint_re_set_one): Call the breakpoint's
5500 breakpoint_ops->re_set implementation, if there's one. Adjust.
5501 * breakpoint.h: Forward declare struct bpstats and struct bp_location.
5502 (struct bp_location_ops): New type.
5503 (struct bp_location): New field `ops'.
5504 (struct breakpoint_ops): New `allocate_location', `re_set' and
5505 `check_status' fields. Make `breakpoint_hit''s description match
5506 reality.
5507 (init_bp_location): Declare.
5508 (breakpoint_re_set_default): Declare.
5509 (create_ada_exception_breakpoint): Rename to ...
5510 (init_ada_exception_breakpoint): ... this. Add a struct
5511 breakpoint parameter, and delete the exp_string, cond_string and
5512 cond parameters.
5513 (install_breakpoint): Declare.
5514 * ada-lang.c: Include exceptions.h.
5515 <Ada exceptions description>: Update.
5516 (struct ada_catchpoint_location): New type.
5517 (ada_catchpoint_location_dtor): New function.
5518 (ada_catchpoint_location_ops): New global.
5519 (ada_catchpoint): New type.
5520 (create_excep_cond_exprs): New function.
5521 (dtor_exception, allocate_location_exception, re_set_exception)
5522 (should_stop_exception, check_status_exception): New functions.
5523 (print_one_exception, print_mention_exception)
5524 (print_recreate_exception): Adjust.
5525 (dtor_catch_exception, allocate_location_catch_exception)
5526 (re_set_catch_exception, check_status_catch_exception): New
5527 functions.
5528 (catch_exception_breakpoint_ops): Install them.
5529 (dtor_catch_exception_unhandled)
5530 (allocate_location_catch_exception_unhandled)
5531 (re_set_catch_exception_unhandled)
5532 (check_status_catch_exception_unhandled): New functions.
5533 (catch_exception_unhandled_breakpoint_ops): Install them.
5534 (dtor_catch_assert, allocate_location_catch_assert)
5535 (re_set_catch_assert, check_status_catch_assert): New functions.
5536 (catch_assert_breakpoint_ops): Install them.
5537 (ada_exception_catchpoint_p): Delete.
5538 (catch_ada_exception_command_split)
5539 (ada_exception_catchpoint_cond_string): Rename exp_string
5540 parameter to excep_string. Adjust.
5541 (ada_parse_catchpoint_condition): Delete.
5542 (ada_exception_sal): Rename the exp_string parameter to
5543 excep_string. Delete the cond_string and cond parameters.
5544 Adjust.
5545 (ada_decode_exception_location): Rename the exp_string parameter
5546 to excep_string. Delete the cond_string and cond parameters.
5547 Adjust.
5548 (create_ada_exception_catchpoint): New function.
5549 (catch_ada_exception_command, ada_decode_assert_location)
5550 (catch_assert_command): Adjust.
5551 * ada-lang.h (ada_exception_catchpoint_p): Delete declaration.
5552
9ac4176b
PA
55532011-06-22 Pedro Alves <pedro@codesourcery.com>
5554
5555 * ada-lang.c: Include arch-utils.h.
5556 (ada_decode_exception_location): Make static.
5557 (catch_ada_exception_command): Moved here from breakpoint.c.
5558 (ada_decode_assert_location): Make static.
5559 (catch_assert_command): Moved here from breakpoint.c.
5560 (_initialize_ada_lang): Install the exception and assert
5561 catchpoint commands here.
5562 * ada-lang.h (ada_decode_exception_location)
5563 (ada_decode_assert_location): Delete declarations.
5564 * breakpoint.c (CATCH_PERMANENT, CATCH_TEMPORARY): Moved to
5565 breakpoint.h.
5566 (create_ada_exception_breakpoint): Make extern.
5567 (catch_ada_exception_command, catch_assert_command): Moved to
5568 ada-lang.c.
5569 (add_catch_command): Make extern.
5570 (_initilize_breakpoint): Don't install the exception and assert
5571 catchpoint commands here.
5572 * breakpoint.h (CATCH_PERMANENT, CATCH_TEMPORARY): Moved from
5573 breakpoint.c
5574 (add_catch_command, create_ada_exception_breakpoint): Declare.
5575
c56053d2
PA
55762011-06-22 Pedro Alves <pedro@codesourcery.com>
5577
5578 * breakpoint.c (init_raw_breakpoint_without_location): Don't add
5579 the breakpoint to the breakpoint chain here.
5580 (set_raw_breakpoint_without_location): Add the breakpoint to the
5581 breakpoint chain here.
5582 (init_raw_breakpoint): Adjust comments.
5583 (set_raw_breakpoint): Add the breakpoint to the breakpoint chain
5584 here.
5585 (init_catchpoint): Don't set the catchpoint's breakpoint number
5586 here.
5587 (install_catchpoint): New function.
5588 (create_fork_vfork_event_catchpoint)
5589 (create_syscall_event_catchpoint, catch_exec_command_1): Adjust to
5590 use install_catchpoint.
5591
d2f3fc74
PA
55922011-06-22 Pedro Alves <pedro@codesourcery.com>
5593
5594 * breakpoint.c (create_catchpoint_without_mention)
5595 (create_catchpoint): Delete.
5596
b4d90040
PA
55972011-06-22 Pedro Alves <pedro@codesourcery.com>
5598
5599 * breakpoint.h (struct breakpoint): Delete field `exec_pathname'.
5600 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5601 reference to exec_pathname.
5602 (struct exec_catchpoint): New type.
5603 (dtor_catch_exec): New function.
5604 (insert_catch_exec, print_it_catch_exec, print_one_catch_exec): Adjust.
5605 (catch_exec_breakpoint_ops): Install dtor_catch_syscall.
5606 (catch_exec_command_1): Adjust to use init_catchpoint.
5607 (delete_breakpoint): Remove reference to exec_pathname.
5608
be5c67c1
PA
56092011-06-22 Pedro Alves <pedro@codesourcery.com>
5610
5611 * breakpoint.h (struct breakpoint_ops): New field `dtor'.
5612 (struct breakpoint): Delete field `syscalls_to_be_caught'.
5613 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5614 reference to syscalls_to_be_caught.
5615 (catch_fork_breakpoint_ops, catch_vfork_breakpoint_ops): Install a
5616 NULL `dtor'.
5617 (struct syscall_catchpoint): New type.
5618 (dtor_catch_syscall): New function.
5619 (insert_catch_syscall, remove_catch_syscall)
5620 (breakpoint_hit_catch_syscall, print_one_catch_syscall)
5621 (print_recreate_catch_syscall): Adjust.
5622 (catch_syscall_breakpoint_ops): Install dtor_catch_syscall.
5623 (catch_exec_breakpoint_ops): Install a NULL `dtor'.
5624 (create_syscall_event_catchpoint): Adjust to use init_catchpoint.
5625 (ranged_breakpoint_ops, watchpoint_breakpoint_ops)
5626 (masked_watchpoint_breakpoint_ops)
5627 (gnu_v3_exception_catchpoint_ops): Install a NULL `dtor'.
5628 (delete_breakpoint): Call the `dtor' breakpoint_ops method, if
5629 there is one. Remove references to syscalls_to_be_caught.
5630 (catching_syscall_number): Adjust.
5631 * ada-lang.c (catch_exception_breakpoint_ops)
5632 (catch_exception_unhandled_breakpoint_ops)
5633 (catch_assert_breakpoint_ops): Install a NULL `dtor'.
5634
e29a4733
PA
56352011-06-22 Pedro Alves <pedro@codesourcery.com>
5636
5637 * breakpoint.h (struct breakpoint): Delete forked_inferior_pid
5638 field.
5639 * breakpoint.c (init_raw_breakpoint_without_location): Remove
5640 reference to forked_inferior_pid.
5641 (struct fork_catchpoint): New type.
5642 (breakpoint_hit_catch_fork, print_it_catch_fork)
5643 (print_one_catch_fork, breakpoint_hit_catch_vfork)
5644 (print_it_catch_vfork, print_one_catch_vfork): Adjust.
5645 (create_fork_vfork_event_catchpoint): Adjust to use
5646 init_catchpoint.
5647
346774a9
PA
56482011-06-22 Pedro Alves <pedro@codesourcery.com>
5649
5650 * breakpoint.c (add_to_breakpoint_chain)
5651 (init_raw_breakpoint_without_location): New functions, factored
5652 out from ...
5653 (set_raw_breakpoint_without_location): ... this one.
5654 (init_raw_breakpoint): New function, factored out from
5655 set_raw_breakpoint and adjusted to use
5656 init_raw_breakpoint_without_location.
5657 (set_raw_breakpoint): Adjust.
5658 (init_catchpoint): New function, factored out from
5659 create_catchpoint_without_mention and adjusted to use
5660 init_raw_breakpoint.
5661 (create_catchpoint_without_mention): Adjust.
5662
c38c4bc5
TT
56632011-06-22 Tom Tromey <tromey@redhat.com>
5664
5665 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_convert>: Treat type
5666 argument of 0 specially.
5667
b138ce37
YQ
56682011-06-22 Yao Qi <yao@codesourcery.com>
5669
5670 * infrun.c (handle_inferior_event): Remove write-only local variable
5671 `sw_single_step_trap_p'.
5672
03de6823
TT
56732011-06-20 Tom Tromey <tromey@redhat.com>
5674
5675 * symtab.c (lookup_language_this): End loop if block is NULL.
5676
66a17cb6
TT
56772011-06-17 Tom Tromey <tromey@redhat.com>
5678
5679 * valops.c (value_of_this): Use lookup_language_this.
5680 * symtab.h (lookup_language_this): Declare.
5681 * symtab.c (lookup_language_this): New function.
5682 (lookup_symbol_aux): Use lookup_language_this.
5683 * ax-gdb.c (gen_expr) <OP_THIS>: Use lookup_language_this.
5684
7518bff5
TT
56852011-06-17 Tom Tromey <tromey@redhat.com>
5686
5687 * value.h (value_of_this): Update.
5688 (value_of_local): Remove.
5689 * valops.c (value_of_this): Rename from value_of_local. Change
5690 parameters.
5691 * p-exp.y (exp): Update.
5692 (variable): Likewise.
5693 * eval.c (evaluate_subexp_standard) <OP_THIS>: Use value_of_this.
5694
aee28ec6
TT
56952011-06-17 Tom Tromey <tromey@redhat.com>
5696
5697 * valops.c (value_of_local): Complain if NAME is NULL.
5698 * std-operator.def (OP_OBJC_SELF): Remove.
5699 * parse.c (operator_length_standard) <OP_OBJC_SELF>: Remove.
5700 * objc-exp.y (name_not_typename): Use OP_THIS.
5701 * expprint.c (print_subexp_standard) <OP_THIS>: Print language's
5702 name for "this".
5703 <OP_OBJC_SELF>: Remove.
5704 * eval.c (evaluate_subexp_standard) <OP_OBJC_SELF>: Remove.
5705
eed8f803
TG
57062011-06-16 Tristan Gingold <gingold@adacore.com>
5707
5708 * python/py-events.h (gdb_py_events): Make it extern.
5709 * python/py-evtregistry.c (gdb_py_events): Declare.
5710
864ac8a7
HZ
57112011-06-16 Hui Zhu <teawater@gmail.com>
5712
5713 * remote.c (remote_trace_set_readonly_regions): Add check for
5714 remote_protocol_packets[PACKET_qXfer_traceframe_info].support before
5715 output warning.
5716
ef7e8358
UW
57172011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
5718
5719 * arm-linux-tdep.c: Include "auxv.h".
5720 (AT_HWCAP): Define.
5721 (ARM_LINUX_SIZEOF_VFP): Define.
5722 (arm_linux_supply_vfp): New function.
5723 (arm_linux_collect_vfp): Likewise.
5724 (arm_linux_regset_from_core_section): Handle .reg-arm-vfp sections.
5725 (arm_linux_fpa_regset_sections): New variable.
5726 (arm_linux_vfp_regset_sections): Likewise.
5727 (arm_linux_core_read_description): New function.
5728 (arm_linux_init_abi): Install arm_linux_core_read_description and
5729 arm_linux_fpa_regset_sections or arm_linux_vfp_regset_sections as
5730 appropriate for the architecture.
5731 * arm-tdep.h (struct gdbarch_tdep): Add member "vfpregset".
5732 (tdesc_arm_with_m): Declare.
5733 (tdesc_arm_with_iwmmxt): Likewise.
5734 (tdesc_arm_with_vfpv2): Likewise.
5735 (tdesc_arm_with_vfpv3): Likewise.
5736 (tdesc_arm_with_neon): Likewise.
5737 * arm-linux-nat.c: Move features/*.c includes ...
5738 * arm-tdep.c: ... here.
5739 * arm-linux-nat.c (arm_linux_read_description): Move initializing
5740 target description data structures ...
5741 * arm-tdep.c (_initialize_arm_tdep): ... here.
5742 * arm-linux-nat.c (HWCAP_VFP, HWCAP_IWMMXT, HWCAP_NEON, HWCAP_VFPv3,
5743 HWCAP_VFPv3D16): Move definitions ...
5744 * arm-linux-tdep.h: ... here.
5745
c2fa21f1
HZ
57462011-06-15 Hui Zhu <teawater@gmail.com>
5747
5748 * remote.c (remote_trace_set_readonly_regions): Add a check for
5749 target_buf_size.
5750
dd707e8e
TT
57512011-06-14 Tom Tromey <tromey@redhat.com>
5752
5753 * coffread.c (coffread_objfile): Rename from current_objfile.
5754 * dbxread.c (dbxread_objfile): Rename from current_objfile.
5755 * mdebugread.c (mdebugread_objfile): Rename from current_objfile.
5756
86cc0029
TT
57572011-06-14 Tom Tromey <tromey@redhat.com>
5758
5759 * jv-lang.c (jv_type_objfile_data_key, dynamics_objfile)
5760 (class_symtab): Remove.
5761 (jv_dynamics_progspace_key): New global.
5762 (jv_per_objfile_free): Reset program space data. Update assert.
5763 Don't clear globals.
5764 (get_dynamics_objfile): Use and set program space data.
5765 (get_java_class_symtab): Use get_dynamics_objfile.
5766 (add_class_symbol): Likewise.
5767 (java_link_class_type): Likewise.
5768 (java_object_type, jv_clear_object_type, set_java_object_type):
5769 Remove.
5770 (get_java_object_type): Update. Don't cache result.
5771 (is_object_type): Don't call set_java_object_type.
5772 (_initialize_java_language): Don't set jv_type_objfile_data_key;
5773 initialize jv_dynamics_progspace_key.
5774
91a81f69
TT
57752011-06-14 Tom Tromey <tromey@redhat.com>
5776
5777 * symtab.h (current_objfile): Don't declare.
5778 * objfiles.h (current_objfile): Don't declare.
5779 * objfiles.c (current_objfile): Remove.
5780 * mdebugread.c (current_objfile): New file-scope global.
5781 * dbxread.c (current_objfile): New file-scope global.
5782 * coffread.c (current_objfile): New file-scope global.
5783
dc7eb48e
PA
57842011-06-13 Pedro Alves <pedro@codesourcery.com>
5785
5786 * top.h (line): Rename to ...
5787 (saved_command_line): ... this.
5788 (linesize): Rename to ...
5789 (saved_command_line_size): ... this.
5790 * top.c (line): Rename to ...
5791 (saved_command_line): ... this.
5792 (linesize): Rename to ...
5793 (saved_command_line_size): ... this.
5794 (dont_repeat, command_line_input, dont_repeat_command): Adjust.
5795 * event-top.c (command_line_handler): Adjust.
5796 * main.c (captured_main): Adjust.
5797
0d6c2135
MK
57982011-06-12 Mark Kettenis <kettenis@gnu.org>
5799
5800 * i386-tdep.c (i386_epilogue_frame_cache): Simplify code. Call
5801 get_frame_func instead of get_frame_pc to determine the code
5802 address used to construct the frame ID.
5803 (i386_epilogue_frame_unwind_stop_reason): Fix coding style.
5804 (i386_epilogue_frame_this_id): Likewise.
5805 (i386_epilogue_frame_prev_register): New function.
5806 (i386_epilogue_frame_unwind): Use i386_epilogue_frame_prev_register.
5807 (i386_stack_tramp_frame_sniffer): Fix coding style.
5808 (i386_stack_tramp_frame_unwind): Use i386_epilogue_frame_prev_register.
5809 (i386_gdbarch_init): Fix comments.
5810
8bbdd3f4
MK
58112011-06-12 Mark Kettenis <kettenis@gnu.org>
5812
5813 * i386-tdep.c (i386_match_insn_block): Use length of the proper
5814 instruction when walking back through the instruction stream.
5815
533a737e
JK
58162011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5817
5818 * symtab.c (output_partial_symbol_filename): Exchange the filename and
5819 fullname parameters order.
5820
44b13c5a
JK
58212011-06-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5822
5823 Code cleanup.
5824 * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype
5825 for fun.
5826 * psymtab.c (map_symbol_filenames_psymtab)
5827 (map_partial_symbol_filenames): Likewise.
5828 * psymtab.h: Include symfile.h.
5829 (map_partial_symbol_filenames): Use symbol_filename_ftype for fun.
5830 * symfile.h (symbol_filename_ftype): New.
5831 (struct quick_symbol_functions): Use symbol_filename_ftype for fun of
5832 map_symbol_filenames, clarify more the naming in comment.
5833
0b5574da
DE
58342011-06-07 Doug Evans <dje@google.com>
5835
5836 * cc-with-index.sh: Fix typos in comment.
b8e9bd6c 5837 Look for ../../gdb, for fullname.exp.
0b5574da 5838
5be4dfca
JK
58392011-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5840 Pedro Alves <pedro@codesourcery.com>
5841
5842 * cli/cli-cmds.c (shell_escape): Use waitpid.
5843 * rs6000-nat.c (exec_one_dummy_insn): Likewise.
5844
316a8b21
TG
58452011-06-07 Tristan Gingold <gingold@adacore.com>
5846
5847 * xcoffread.c (dwarf2_xcoff_names): New variable.
5848 (aix_process_linenos): Add a guard.
5849 (xcoff_symfile_finish): Free dwarf2.
5850 (xcoff_initial_scan): Add dwarf2 support.
5851
3dd5b83d
PA
58522011-06-06 Pedro Alves <pedro@codesourcery.com>
5853
5854 * infcall.c (run_inferior_call): Don't mask async. Instead force
5855 a synchronous wait, if the target can async.
5856
5857 * target.h (struct target_ops): Delete to_async_mask.
5858 (target_async_mask): Delete.
5859 * target.c (update_current_target): Delete references to to_async_mask.
5860 * linux-nat.c (linux_nat_async_mask_value): Delete.
5861 (linux_nat_is_async_p, linux_nat_can_async_p): Remove references
5862 to linux_nat_async_mask_value.
5863 (linux_nat_async_mask): Delete.
5864 (linux_nat_async, linux_nat_close): Remove references to
5865 linux_nat_async_mask_value.
5866 * record.c (record_async_mask_value): Delete.
5867 (record_async): Remove references to record_async_mask_value.
5868 (record_async_mask): Delete.
5869 (record_can_async_p, record_is_async_p): Remove references to
5870 record_async_mask_value.
5871 (init_record_ops, init_record_core_ops): Remove references to
5872 record_async_mask.
5873 * remote.c (remote_async_mask_value): Delete.
5874 (init_remote_ops): Remove reference to remote_async_mask.
5875 (remote_can_async_p, remote_is_async_p): Remove references to
5876 remote_async_mask_value.
5877 (remote_async): Remove references to remote_async_mask_value.
5878 (remote_async_mask): Delete.
5879
5880 * infrun.c (fetch_inferior_event): Don't claim registers changed
5881 if the current thread is already not executing.
5882
64b9b334
JB
58832011-06-03 Joel Brobecker <brobecker@adacore.com> (obvious fix)
5884
5885 From Stephen Kitt <steve@sk2.org>
5886 * breakpoint.c, breakpoint.h, cli/cli-dump.c, dwarf2expr.c,
5887 gdbarch.c, gdbarch.sh, remote.c: Various spelling fixes.
5888
325663dc
JB
58892011-06-03 Joel Brobecker <brobecker@adacore.com>
5890
5891 * dwarf2expr.c (execute_stack_op) [DW_OP_deref]: Handle
5892 the case where ADDR_SIZE is different from TYPE_LENGTH (type).
5893
8cf64490
TT
58942011-06-03 Tom Tromey <tromey@redhat.com>
5895
5896 * python/py-inferior.c (python_inferior_exit): Use inferior's exit
5897 code fields.
5898 * python/py-exitedevent.c (create_exited_event_object): Change
5899 type of 'exit_code'. Optionally add exit_code attribute.
5900 (emit_exited_event): Change type of 'exit_code'.
5901 * python/py-event.h (emit_exited_event): Update.
5902 * mi/mi-interp.c (mi_inferior_exit): Print exit code.
5903 * infrun.c (handle_inferior_event): Set exit code fields on
5904 inferior.
5905 * inferior.h (struct inferior) <has_exit_code, exit_code>: New
5906 fields.
5907 * inferior.c (exit_inferior_1): Initialize new fields.
5908
8ddd9a20
TT
59092011-06-03 Tom Tromey <tromey@redhat.com>
5910
5911 * dwarf2expr.c (get_signed_type): New function.
5912 (execute_stack_op) <DW_OP_shra>: Always perform a signed shift.
5913
8dfd1e6d
KS
59142011-06-02 Keith Seitz <keiths@redhat.com>
5915
5916 * objc-lang.c (find_methods): Increment objfile_csym earlier.
5917
65fdb766
PA
59182011-06-02 Pedro Alves <pedro@codesourcery.com>
5919
5920 * top.h (simplified_command_loop): Delete declaration.
5921
f4b8c29b
MF
59222011-06-01 Mike Frysinger <vapier@gentoo.org>
5923
5924 * remote-sim.c (gdbsim_open): Add the strlen of " --sysroot=" and
5925 gdb_sysroot to the "len" variable. Append both to "arg_buf".
5926
1706c199
YQ
59272011-06-01 Yao Qi <yao@codesourcery.com>
5928
5929 * objfiles.h (obj_section_addr): Update reference to objfile from
5930 `abfd' to `obfd'.
5931 (obj_section_endaddr): Likewise.
5932
d19cd713 59332011-06-01 Daniel Jacobowitz <drow@false.org>
8d07004d
DJ
5934
5935 * MAINTAINERS: Update my email address and affiliation. Also
5936 update Ian Lance Taylor's affiliation. Use UTF-8 for ludo@gnu.org.
5937
e8eb7bc5
KS
59382010-05-31 Keith Seitz <keiths@redhat.com>
5939
5940 PR c++/12750
5941 * linespec.c (get_search_block): New function.
5942 (find_methods): Add FILE_SYMTATB parameter and use it and
5943 get_search_block to pass an appropriate block to
5944 lookup_symbol_in_namespace.
5945 (decode_line_1): Record if *ARGPTR is single-quote enclosed.
5946 Check if *ARGPTR starts with a filename first.
5947 If it does, call locate_first_half again to locate the next
5948 "first half" of the linespec.
5949 Pass FILE_SYMTATB to decode_objc and decode_compound.
5950 Swallow the trailing single-quote if IS_SQUOTE_ENCLOSED.
5951 (locate_first_half): Stop on the first colon seen.
5952 (decode_compound): Add FILE_SYMTAB parameter.
5953 Pass FILE_SYMTAB to lookup_prefix_sym and find_method.
5954 (lookup_prefix_sym): Add FILE_SYMTAB parameter and use
5955 get_search_block with lookup_symbol.
5956 (find_method): Add FILE_SYMTAB parameter and pass it to
5957 find_methods.
5958 (decode_objc): Use get_search_block.
5959
2b1dbab0
KS
59602010-05-31 Keith Seitz <keiths@redhat.com>
5961
5962 PR symtab/12704
5963 * cp-namespace.c (ANONYMOUS_NAMESPACE_LEN): Remove.
5964 (cp_scan_for_anonymous_namespaces): Use CP_ANONYMOUS_NAMESPACE_STR
5965 and CP_ANONYMOUS_NAMESPACE_LEN.
5966 (cp_is_anonymous): Likewise.
5967 * cp-support.h (CP_ANONYMOUS_NAMESPACE_STR): Define.
5968 (CP_ANONYMOUS_NAMESPACE_LEN): Define.
5969 * dwarf2read.c (namespace_name): Likewise.
5970 (fixup_partial_die): Likewise.
5971 * linespec.c (decode_compound): If CP_ANONYMOUS_NAMESPACE_STR is
5972 seen in the input, keep it.
5973
6d549500
PA
59742011-05-30 Pedro Alves <pedro@codesourcery.com>
5975
5976 * target.h (enum inferior_event_type): Delete INF_QUIT_REQ.
5977 * inf-loop.h (inferior_event_handler_wrapper): Delete.
5978 * inf-loop.c (inferior_event_handler_wrapper): Delete.
5979 (inferior_event_handler): Don't handle INF_QUIT_REQ.
5980 * remote.c (_initialize_remote): Register
5981 async_remote_interrupt_twice directly as
5982 sigint_remote_twice_token event.
5983
395bff70
PA
59842011-05-30 Pedro Alves <pedro@codesourcery.com>
5985
5986 * target.h (enum inferior_event_type): Delete INF_ERROR.
5987 * inf-loop.c (inferior_event_handler): Don't handle INF_ERROR.
5988
97224164
PA
59892011-05-30 Pedro Alves <pedro@codesourcery.com>
5990
5991 * interps.c (interp_set): Don't cancel continuations.
5992
07e78767
JK
59932011-05-30 Jan Kratochvil <jan.kratochvil@redhat.com>
5994
5995 * linux-nat.c (linux_lwp_is_zombie): Use xsnprintf.
5996
fa4cd53f
PA
59972011-05-30 Pedro Alves <pedro@codesourcery.com>
5998
5999 * continuations.h (continuation_ftype): Add `err' parameter.
6000 Document parameters.
6001 (do_all_continuations, do_all_continuations_thread)
6002 (do_all_intermediate_continuations)
6003 (do_all_intermediate_continuations_thread)
6004 (do_all_inferior_continuations): Add `err' parameter.
6005 * continuations.c (do_my_continuations_1, do_my_continuations)
6006 (do_all_inferior_continuations, do_all_continuations_ptid)
6007 (do_all_continuations_thread_callback)
6008 (do_all_continuations_thread, do_all_continuations)
6009 (do_all_intermediate_continuations_thread_callback)
6010 (do_all_intermediate_continuations_thread)
6011 (do_all_intermediate_continuations): Add `err' parameter, and pass
6012 it down all the way to the continuations proper.
6013 * inf-loop.c (inferior_event_handler): If fetching an inferior
6014 event throws an error, don't pop the target, and still call the
6015 continuations, but with `err' set. Adjust all other continuation
6016 calls.
6017 * breakpoint.c (until_break_command_continuation): Add `err'
6018 parameter.
6019 * infcmd.c (step_1_continuation): Add `err' parameter. Don't
6020 issue another step if `err' is set.
6021 (struct until_next_continuation_args): New.
6022 (until_next_continuation): Add `err' parameter. Adjust.
6023 (until_next_command): Adjust.
6024 (struct finish_command_continuation_args): Add `thread' field.
6025 (finish_command_continuation): Add `err' parameter. Handle it.
6026 (finish_forward): Adjust.
6027 (attach_command_continuation): Add `err' parameter. Handle it.
6028 * infrun.c (infrun_thread_stop_requested_callback): Adjust to
6029 cancel the continuations.
6030 * interps.c (interp_set): Adjust to cancel the continuations.
6031 * thread.c (clear_thread_inferior_resources): Adjust to cancel the
6032 continuations rather than discarding.
6033 (free_thread): Don't clear thread inferior resources here.
6034 (delete_thread_1): Do it here instead. And do it before removing
6035 the thread from the threads list. Tag the thread as exited before
6036 clearing thread inferior resources.
6037
c2949be0
JB
60382011-05-30 Joel Brobecker <brobecker@adacore.com>
6039
6040 * infcall.c (call_function_by_hand): Rephrase error message.
6041
619cebe8
PA
60422011-05-27 Pedro Alves <pedro@codesourcery.com>
6043
6044 * defs.h (struct thread_info, struct inferior): Delete forward
6045 declarations.
6046 * breakpoint.h (struct thread_info): New forward declaration.
6047 * observer.sh (struct inferior): New forward declaration.
6048 * python/python-internal.h (struct inferior): New forward
6049 declaration.
6050
be34f849
PA
60512011-05-27 Pedro Alves <pedro@codesourcery.com>
6052
6053 * defs.h (struct continuation, continuation_ftype)
6054 (continuation_free_arg_ftype, add_continuation)
6055 (do_all_continuations, do_all_continuations_thread)
6056 (discard_all_continuations, discard_all_continuations_thread)
6057 (add_intermediate_continuation, do_all_intermediate_continuations)
6058 (do_all_intermediate_continuations_thread)
6059 (discard_all_intermediate_continuations)
6060 (discard_all_intermediate_continuations_thread)
6061 (add_inferior_continuation, do_all_inferior_continuations)
6062 (discard_all_inferior_continuations): Move to ...
6063 * continuations.h: ... this new file.
6064 * breakpoint.c, continuations.c, event-top.c, inf-loop.c,
6065 infcmd.c, inferior.c, infrun.c, interps.c: Include
6066 continuations.h.
6067
432b4d03
JK
60682011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6069 Doug Evans <dje@google.com>
6070
6071 Fix PR 10970, PR 12702.
6072 * linux-nat.c (linux_lwp_is_zombie): New function.
6073 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
6074 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
6075
b0f260d6
PA
60762011-05-27 Pedro Alves <pedro@codesourcery.com>
6077
6078 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
6079 typedefs.
6080 (add_continuation, add_intermediate_continuation)
6081 (add_inferior_continuation): Use them.
6082 * continuations.c (struct continuation): Use them.
6083 (make_continuation_ftype): Delete.
6084 (make_continuation, add_inferior_continuation, add_continuation)
6085 (add_intermediate_continuation): Use continuation_ftype and
6086 continuation_free_arg_ftype. Rename parameters to shorter names.
6087
af1e9a32
PA
60882011-05-27 Pedro Alves <pedro@codesourcery.com>
6089
6090 * continuations.c (make_continuation): Make it return void.
6091 (do_my_continuations): Rename to ...
6092 (do_my_continuations_1): ... this. Remove old_chain parameter and
6093 adjust.
6094 (do_my_continuations): New.
6095 (discard_my_continuations): Rename to ...
6096 (discard_my_continuations_1): ... this. Remove old_chain
6097 parameter and adjust.
6098 (discard_my_continuations): New.
6099 (add_inferior_continuation): Simplify.
6100 (do_all_inferior_continuations): Reimplement on top
6101 do_my_continuations.
6102 (discard_all_inferior_continuations): Simplify.
6103 (add_continuation): Simplify.
6104 (do_all_continuations_ptid): Simplify.
6105 (discard_all_continuations_thread_callback): Simplify.
6106 (add_intermediate_continuation): Simplify.
6107 (discard_all_intermediate_continuations_thread_callback):
6108 Simplify.
6109
50c0c017
PA
61102011-05-27 Pedro Alves <pedro@codesourcery.com>
6111
6112 * utils.c (struct continuation, add_continuation)
6113 (add_inferior_continuation)
6114 (do_all_inferior_continuations, discard_all_inferior_continuations)
6115 (restore_thread_cleanup, do_all_continuations_ptid)
6116 (do_all_continuations_thread_callback)
6117 (do_all_continuations_thread, do_all_continuations)
6118 (discard_all_continuations_thread_callback)
6119 (discard_all_continuations_thread, discard_all_continuations)
6120 (add_intermediate_continuation)
6121 (do_all_intermediate_continuations_thread_callback)
6122 (do_all_intermediate_continuations_thread)
6123 (do_all_intermediate_continuations)
6124 (discard_all_intermediate_continuations_thread_callback)
6125 (discard_all_intermediate_continuations_thread)
6126 (discard_all_intermediate_continuations): Move to ...
6127 * continuations.c: ... this new file, and adjust to no longer
6128 implement continuations on top of cleanups.
6129 * Makefile.in (SFILES): Add continuations.c.
6130 (COMMON_OBS): Add continuations.o.
6131
d8b34453
PA
61322011-05-26 Pedro Alves <pedro@codesourcery.com>
6133
6134 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
6135 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
6136 Internal error on invalid values.
6137 * reverse.c: Don't handle EXEC_ERROR.
6138 * mi/mi-main.c: Don't handle EXEC_ERROR.
6139
32231432
PA
61402011-05-26 Pedro Alves <pedro@codesourcery.com>
6141
6142 * record.c: Include event-loop.h, inf-loop.h.
6143 (record_beneath_to_async): New global.
6144 (tmp_to_async): New global.
6145 (record_async_inferior_event_token): New global.
6146 (record_open_1): Don't error out if async is enabled.
6147 (record_open): Handle to_async. Create an async event source in
6148 the event loop.
6149 (record_close): Delete the async event source.
6150 (record_resumed): New global.
6151 (record_execution_dir): New global.
6152 (record_resume, record_core_resume): Set them. Register the
6153 target on the event loop.
6154 (record_wait): Rename to ...
6155 (record_wait_1): ... this. Add more debug output. Handle
6156 TARGET_WNOHANG, and the target beneath returning
6157 TARGET_WAITKIND_IGNORE.
6158 (record_wait): Reimplement on top of record_wait_1.
6159 (record_async_mask_value): New global.
6160 (record_async, record_async_mask, record_can_async_p)
6161 (record_is_async_p, record_execution_direction): New functions.
6162 (init_record_ops, init_record_core_ops): Install new methods.
6163 * infrun.c (fetch_inferior_event): Temporarily switch the global
6164 execution direction to the direction the target was going.
6165 (execution_direction): Change type to int.
6166 * target.c (default_execution_direction): New function.
6167 (update_current_target): Inherit and de_fault
6168 to_execution_direction.
6169 * target.h (struct target_ops) <to_execution_direction>: New
6170 field.
6171 (target_execution_direction): New macro.
6172 * inferior.h (execution_direction): Change type to int.
6173
949dc678
PA
61742011-05-26 Pedro Alves <pedro@codesourcery.com>
6175
6176 * infcall.c (call_function_by_hand): Don't allow calling functions
6177 in reverse execution mode.
6178
c13bd2b5
PA
61792011-05-26 Pedro Alves <pedro@codesourcery.com>
6180
6181 * infcmd.c (finish_command): Allow async finish in reverse.
6182
6938fd34
YQ
61832011-05-26 Yao Qi <yao@codesourcery.com>
6184
6185 * gdb_thread_db.h: Delete. Move to ...
6186 * common/gdb_thread_db.h: ... here.
6187
9da8c2a0
PA
61882011-05-26 Pedro Alves <pedro@codesourcery.com>
6189
6190 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
6191 function's entry point instead of a manually managed momentary
6192 breakpoint, and only ever issue one proceed call.
6193 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
6194 doing a reverse-finish, switch to stepi mode, to do another step.
6195 (insert_step_resume_breakpoint_at_sal): Make public.
6196 (normal_stop): No need to save function value return registers if
6197 going reverse.
6198 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
6199
2c03e5be
PA
62002011-05-26 Pedro Alves <pedro@codesourcery.com>
6201
6202 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
6203 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
6204 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
6205 at the end.
6206 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
6207 step-resume breakpoints.
6208 (print_it_typical): Handle bp_hp_step_resume.
6209 (bpstat_what): Ditto.
6210 (bptype_string): Ditto.
6211 (print_one_breakpoint_location): Ditto.
6212 (allocate_bp_location): Ditto.
6213 (mention): Ditto.
6214 (breakpoint_re_set_one): Ditto.
6215 * infrun.c (handle_inferior_event): Adjust. Split
6216 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
6217 BPSTAT_WHAT_HP_STEP_RESUME.
6218 (insert_step_resume_breakpoint_at_sal): Rename to ...
6219 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
6220 parameter. Handle it.
6221 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
6222 insert_step_resume_breakpoint_at_sal_1.
6223 (insert_step_resume_breakpoint_at_frame): Rename to ...
6224 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
6225 set a high-priority step-resume breakpoint.
6226 (insert_step_resume_breakpoint_at_frame): Adjust comment.
6227 (insert_step_resume_breakpoint_at_caller): Ditto.
6228
51be5b68
PA
62292011-05-26 Pedro Alves <pedro@codesourcery.com>
6230
6231 * breakpoint.c (iterate_over_related_breakpoints): New.
6232 (do_map_delete_breakpoint): New.
6233 (delete_command): Pass do_map_delete_breakpoint to
6234 map_breakpoint_numbers.
6235 (do_disable_breakpoint): New.
6236 (do_map_disable_breakpoint): Iterate over the breakpoint's related
6237 breakpoints.
6238 (do_enable_breakpoint): Rename to ...
6239 (enable_breakpoint_disp): ... this.
6240 (enable_breakpoint): Adjust.
6241 (do_enable_breakpoint): New.
6242 (enable_once_breakpoint): Delete.
6243 (do_map_enable_breakpoint): New.
6244 (do_map_enable_once_breakpoint): New.
6245 (enable_once_command, enable_delete_command)
6246 (delete_trace_command): Iterate over the breakpoint's related
6247 breakpoints.
6248
4a1be8d2
PA
62492011-05-26 Pedro Alves <pedro@codesourcery.com>
6250
6251 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
6252 for ALPHA_ZERO_REGNUM.
6253 (alpha_supply_int_regs): Explicitly supply zero as the value for
6254 ALPHA_ZERO_REGNUM in the register cache.
6255 * alpha-nat.c (fetch_osf_core_registers): Ditto.
6256
59d70315
YQ
62572011-05-26 Yao Qi <yao@codesourcery.com>
6258
6259 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
6260
251d32d9
TG
62612011-05-26 Tristan Gingold <gingold@adacore.com>
6262
6263 * symfile.h (struct dwarf2_section_names): New type.
6264 (struct dwarf2_debug_sections): New type.
6265 (dwarf2_has_info): Add parameter.
6266 * dwarf2read.c (dwarf2_elf_names): New variable.
6267 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
6268 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
6269 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
6270 (dwarf2_has_info): Add names parameter. Pass names
6271 to dwarf2_locate_sections.
6272 (section_is_p): Rewrite using the names parameter.
6273 (dwarf2_locate_sections): Use section names from the names parameter.
6274 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
6275 * elfread.c (read_psyms): Ditto.
6276 * machoread.c (macho_symfile_read): Ditto.
6277
652c71b4
AS
62782011-05-25 Andreas Schwab <schwab@redhat.com>
6279
6280 PR gdb/8677
6281 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
6282
f17170e5
KS
62832011-05-24 Keith Seitz <keiths@redhat.com>
6284
6285 PR breakpoint/12803
6286 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
6287 (decode_compound): Unconditionally call keep_name_info.
6288
cdac0397
PA
62892011-05-24 Pedro Alves <pedro@codesourcery.com>
6290
6291 * breakpoint.c (watchpoint_check): If the watchpoint went out of
6292 scope, clear its command list.
6293 (map_breakpoint_numbers): Don't walk the related breakpoints list
6294 of each breakpoint.
6295
91d4fe3f
TT
62962011-05-24 Tom Tromey <tromey@redhat.com>
6297
6298 * MAINTAINERS: Move Jim Blandy to past maintainers.
6299
3017a003
TG
63002011-05-24 Tristan Gingold <gingold@adacore.com>
6301
6302 * symfile.h (enum dwarf2_section_enum): New type.
6303 (dwarf2_get_section_info): New prototype.
6304 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
6305 section_name by sect. Use a switch to select the info.
6306 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
6307 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
6308
c91c8c16
PA
63092011-05-24 Pedro Alves <pedro@codesourcery.com>
6310
6311 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
6312 shared library event breakpoint if there's no execution.
6313
77bc418a
TJB
63142011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
6315
6316 * breakpont.c (remove_hw_watchpoints): Remove unused function.
6317 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
6318
c50491a7
TT
63192011-05-23 Tom Tromey <tromey@redhat.com>
6320
6321 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
6322 NULL.
6323
6d64e6d4
DE
63242011-05-23 Doug Evans <dje@google.com>
6325
6326 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
6327 entry for RuntimeError to doc string.
6328
2067c8d4
JG
63292011-05-23 Jerome Guitton <guitton@adacore.com>
6330
6331 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
6332 sequence for probing loops.
6333
b136cd05
PA
63342011-05-23 Pedro Alves <pedro@codesourcery.com>
6335
6336 * infrun.c (user_visible_resume_ptid): Fix typos in describing
6337 comment.
6338
22e74ef9
MK
63392011-05-21 Mark Kettenis <kettenis@gnu.org>
6340
6341 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
6342 zero as the value for %g0 in the register cache.
6343 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
6344 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
6345
842951eb
PA
63462011-05-20 Pedro Alves <pedro@codesourcery.com>
6347
6348 * infrun.c (proceed): Set previous_inferior_ptid here.
6349 (init_wait_for_inferior): Initialize previous_inferior_ptid from
6350 inferior_ptid, not null_ptid.
6351 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
6352 (fetch_inferior_event): Nor here.
6353
46cf51e6
PA
63542011-05-20 Pedro Alves <pedro@codesourcery.com>
6355
6356 * inf-loop.c (inferior_event_handler): Only output a message if
6357 verbose.
6358
29ef4c46
LM
63592011-05-20 Luis Machado <lgustavo@codesourcery.com>
6360
6361 * MAINTAINERS: Update my e-mail address.
6362
f148b27e
PA
63632011-05-20 Pedro Alves <pedro@codesourcery.com>
6364
6365 * infrun.c (proceed): Switch the inferior event loop to
6366 INF_EXEC_COMPLETE if the target refused to resume from a
6367 vfork/fork.
6368
09cee04b
PA
63692011-05-20 Pedro Alves <pedro@codesourcery.com>
6370
6371 * infcmd.c: Include "inf-loop.h".
6372 (step_once): When stepping into an inline subroutine, pretend the
6373 target has run. If the target can async, switch the inferior
6374 event loop to INF_EXEC_COMPLETE.
6375 * inferior.h (user_visible_resume_ptid): Declare.
6376 * infrun.c (user_visible_resume_ptid): New function, factored out
6377 from `resume'.
6378 (resume): Use it.
6379 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
6380 that the current thread is running. Merge async and sync
6381 branches.
6382
751b8ce1
PA
63832011-05-20 Pedro Alves <pedro@codesourcery.com>
6384
6385 * infcmd.c (step_1): Simplify synchronous case.
6386
e93a69ed
PA
63872011-05-20 Pedro Alves <pedro@codesourcery.com>
6388
6389 * tracepoint.c: Include exceptions.h.
6390 (TFILE_PID): Move higher in file.
6391 (tfile_open): Delay pushing the tfile target until we're assured
6392 the tfile header is present in the file. Wrap reading the initial
6393 newline-terminated lines in TRY_CATCH. Pop the target if the
6394 initial setup failed. Add the tfile's thread immediately
6395 aftwards, before any non-essential setup. Don't skip
6396 post_create_inferior if there are no traceframes present in the
6397 file.
6398 (tfile_close): Remove redundant check for null before xfree call.
6399 (tfile_thread_alive): New function.
6400 (init_tfile_ops): Register it as to_thread_alive callback.
6401
6823e2b1
PA
64022011-05-20 Pedro Alves <pedro@codesourcery.com>
6403
6404 * tracepoint.c (tfile_open): Delete #if 0'd code.
6405
b3c8eb43
JK
64062011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6407
6408 Fix -readnow for -gdwarf-4 unused type units.
6409 * dwarf2read.c (struct signatured_type): Remove the field offset.
6410 (create_signatured_type_table_from_index): Remove its initialization.
6411 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
6412 instead. Add a complaint call.
6413 (process_psymtab_comp_unit): Change assignment to gdb_assert.
6414 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
6415 (lookup_signatured_type_at_offset, read_signatured_type)
6416 (write_one_signatured_type): Update the field for per_cu.
6417
310afc76
TT
64182011-05-19 Tom Tromey <tromey@redhat.com>
6419
6420 * python/py-inferior.c (python_inferior_exit): Use
6421 target_gdbarch.
6422 (python_on_resume): Likewise.
6423
cf6c5ffb
TT
64242011-05-19 Matt Rice <ratmice@gmail.com>
6425
6426 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
6427
fb80a3c5
HZ
64282011-05-19 Hui Zhu <teawater@gmail.com>
6429
6430 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
6431
3672b1be
HZ
64322011-05-19 Hui Zhu <teawater@gmail.com>
6433
6434 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
6435
ff355380
TT
64362011-05-18 Tom Tromey <tromey@redhat.com>
6437
6438 * dwarf2read.c (dwarf2_add_field): Constify.
6439 * value.c (value_static_field): Constify.
6440 * gdbtypes.h (struct main_type) <field.field_location.physname>:
6441 Now const.
6442 * ax-gdb.c (gen_static_field): Constify
6443
ed731959
JK
64442011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6445
6446 * linux-nat.c (kill_callback): Use SIGKILL first.
6447
967cff16
JB
64482011-05-18 Joel Brobecker <brobecker@adacore.com>
6449
6450 * ada-lang.c (print_it_exception): Avoid use of sprintf.
6451
1d06ead6
TT
64522011-05-18 Tom Tromey <tromey@redhat.com>
6453
6454 * value.c (value_fn_field): Constify.
6455 * symtab.c (gdb_mangle_name): Constify.
6456 * stabsread.c (update_method_name_from_physname): Make 'physname'
6457 argument const.
6458 * p-typeprint.c (pascal_type_print_method_args): Make arguments
6459 const. Use explicit fputc_filtered loop.
6460 (pascal_type_print_base): Constify.
6461 * p-lang.h (pascal_type_print_method_args): Update.
6462 * linespec.c (add_matching_methods): Constify.
6463 (add_constructors): Likewise.
6464 * jv-typeprint.c (java_type_print_base): Constify.
6465 * gdbtypes.h (struct cplus_struct_type)
6466 <fn_fieldlist.fn_field.physname>: Now const.
6467 * dwarf2read.c (compute_delayed_physnames): Constify.
6468 (dwarf2_add_member_fn): Likewise.
6469 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
6470
0d9a9a5f
PA
64712011-05-18 Pedro Alves <pedro@codesourcery.com>
6472
6473 * infrun.c (resume): Mention which is the current thread, and its
6474 current PC in debug output.
6475 (prepare_to_proceed): Mention the thread switching in debug
6476 output.
6477
05386e9e
TT
64782011-05-18 Tom Tromey <tromey@redhat.com>
6479
6480 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
6481 path check. Use xmalloc and cleanups.
6482 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
6483
ee86786c
TT
64842011-05-17 Tom Tromey <tromey@redhat.com>
6485
6486 * cp-valprint.c (cp_print_value_fields): Catch errors from
6487 value_static_field.
6488
9ff3b74f
TT
64892011-05-17 Tom Tromey <tromey@redhat.com>
6490
6491 * dwarf2read.c (dwarf2_get_die_type): Call
6492 get_die_type_at_offset.
6493 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
6494 get_base_type function.
6495
cd3da28e
PA
64962011-05-17 Tomas Martinec <fyzmat@gmail.com>
6497
6498 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
6499 trap_expected.
6500
fd20d931
DE
65012011-05-16 Doug Evans <dje@google.com>
6502
6503 * python/py-auto-load.c (source_section_scripts): Mention objfile
6504 name in warning.
6505
75fc9810
DE
65062011-05-15 Doug Evans <dje@google.com>
6507
290351b8
DE
6508 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
6509 (try_thread_db_load_from_pdir): Call it. If unable to find
6510 libthread_db in directory of libpthread, see if we're looking at
6511 the separate-debug-info copy.
6512
75fc9810
DE
6513 * python/py-autoload.c (print_script): Print "Missing" instead of
6514 "No" for missing scripts.
6515 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
6516
9f7bc587
DE
65172011-05-13 Doug Evans <dje@google.com>
6518
6519 * ui-file.c (stdio_file_write_async_safe): Add comment.
6520
093cee7d
HZ
65212011-05-14 Hui Zhu <teawater@gmail.com>
6522
6523 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
6524
dbaefcf7
DE
65252011-05-13 Doug Evans <dje@google.com>
6526
98a5dd13
DE
6527 Support $pdir and $sdir in libthread-db-search-path.
6528 * NEWS: Mention $sdir,$pdir.
6529 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
6530 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
6531 (try_thread_db_load_from_sdir): New function.
6532 (try_thread_db_load_from_dir): New function.
6533 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
6534 system directories if search of libthread-db-search-path fails,
6535 that is now done via $sdir.
6536 (has_libpthread): New function.
6537 (thread_db_load): Remove search for libthread_db in directory of
6538 libpthread, that is now done via $pdir.
6539
dbaefcf7
DE
6540 * NEWS: Mention "info auto-load-scripts".
6541 * python/py-auto-load.c (struct auto_load_pspace_info): New member
6542 script_not_found_warning_printed.
6543 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
6544 all callers updated. Initialize script_not_found_warning_printed.
6545 (get_auto_load_pspace_data_for_loading): New function.
6546 (maybe_add_script): New function.
6547 (source_section_scripts): Simplify. Only print one warning regardless
6548 of the number of auto-load scripts not found.
6549 (clear_section_scripts): Clear script_not_found_warning_printed.
6550 (auto_load_objfile_script): Record script in hash table.
6551 (count_matching_scripts): New function.
6552 (maybe_print_script): Renamed from maybe_print_section_script, all
6553 callers updated. Rewrite to use ui_out_*.
6554 (info_auto_load_scripts): Renamed from
6555 maintenance_print_section_scripts, all callers updated.
6556 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
6557 renamed as "info auto-load-scripts".
6558
9930639c
TT
65592011-05-13 Tom Tromey <tromey@redhat.com>
6560
6561 * dwarf2expr.c (read_uleb128): Cast intermediate result.
6562 (read_sleb128): Likewise.
6563
06826322
TT
65642011-05-13 Tom Tromey <tromey@redhat.com>
6565
6566 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
6567 offset display.
6568
01124a23
DE
65692011-05-13 Doug Evans <dje@google.com>
6570
6571 * linux-nat.c (debug_linux_nat_async): Delete.
6572 Replace all references to use debug_linux_nat instead.
6573 (show_debug_linux_nat_async): Delete.
6574 (sigchld_handler): Call ui_file_write_async_safe instead of
6575 fprintf_unfiltered.
6576 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
6577 * ui-file.c (struct ui_file): New member to_write_async_safe.
6578 (null_file_write_async_safe): New function.
6579 (ui_file_write_async_safe): New function.
6580 (set_ui_file_write_async_safe): New function.
6581 (ui_file_new): Initialize to_write_async_safe.
6582 (stdio_file_write_async_safe): New function.
6583 (struct stdio_file): New member fd.
6584 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
6585 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
6586 fileno.
01124a23
DE
6587 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
6588 (set_ui_file_write_async_safe): Declare.
6589 (ui_file_write_async_safe): Declare.
6590
72fc29ff
TT
65912011-05-13 Tom Tromey <tromey@redhat.com>
6592
6593 * utils.c (do_value_free): New function.
6594 (make_cleanup_value_free): Likewise.
6595 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
6596 freeing correctly.
6597 (dwarf2_loc_desc_needs_frame): Call
6598 make_cleanup_value_free_to_mark.
6599 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
6600 * dwarf2expr.c (free_dwarf_expr_context): Don't call
6601 value_free_to_mark.
6602 (new_dwarf_expr_context): Don't call value_mark.
6603 * dwarf2-frame.c (execute_stack_op): Call
6604 make_cleanup_value_free_to_mark.
6605 * defs.h (make_cleanup_value_free): Declare.
6606
028d0ed5
TJB
66072011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
6608
6609 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
6610 prepare_execute_command.
6611 * top.c (prepare_execute_command): Return cleanup.
6612 (execute_command): Use cleanup from prepare_execute_command.
6613 * top.h (prepare_execute_command): Change prototype to return
6614 cleanup.
6615 * defs.h (struct value): Add opaque declaration.
6616 (make_cleanup_value_free_to_mark): Add prototype.
6617 * utils.c (do_value_free_to_mark): New function.
6618 (make_cleanup_value_free_to_mark): Likewise.
6619
b087e0ed
TT
66202011-05-12 Tom Tromey <tromey@redhat.com>
6621
6622 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
6623 cast left-hand-side to unsigned.
6624
8a9b8146
TT
66252011-05-12 Tom Tromey <tromey@redhat.com>
6626
6627 PR gdb/12617:
6628 * value.h (value_from_contents): Declare.
6629 * value.c (value_from_contents): New function.
6630 * dwarf2read.c (dwarf_stack_op_name): Add new values.
6631 (dwarf2_get_die_type): New function.
6632 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
6633 (allocate_piece_closure): Acquire reference to values.
6634 (read_pieced_value): Update for value-based expressions.
6635 (write_pieced_value): Likewise.
6636 (free_pieced_value_closure): Call value_free as needed.
6637 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
6638 Update for value-based expressions.
6639 * dwarf2loc.h (dwarf2_get_die_type): Declare.
6640 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
6641 <get_base_type>: New field.
6642 (struct dwarf_expr_piece) <v.value>: Change type.
6643 <v.regno>: New field.
6644 (struct dwarf_expr_context) <mark>: New field.
6645 (dwarf_expr_piece, dwarf_expr_fetch): Update.
6646 (dwarf_expr_pop, dwarf_expr_push): Remove.
6647 (dwarf_expr_push_address): Declare.
6648 * dwarf2expr.c (dwarf_arch_cookie): New global.
6649 (struct dwarf_gdbarch_types): New.
6650 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
6651 functions.
6652 (dwarf_expr_push): Change type of 'value' argument. Update. Now
6653 static.
6654 (dwarf_expr_push_address): New function.
6655 (dwarf_expr_pop): Now static.
6656 (dwarf_expr_fetch): Change return type.
6657 (dwarf_require_integral): New function.
6658 (dwarf_expr_fetch): Simplify.
6659 (add_piece): Update.
6660 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
6661 functions.
6662 (execute_stack_op) <sign_ext>: Remove.
6663 Use values for DWARF stack.
6664 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
6665 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
6666 New cases.
6667 (_initialize_dwarf2expr): New function.
6668 (add_piece): Update.
6669 (new_dwarf_expr_context): Set new field.
6670 (free_dwarf_expr_context): Call value_free_to_mark.
6671 * dwarf2-frame.c (no_base_type): New function.
6672 (execute_stack_op): Set get_base_type field. Update.
6673
e8d28ef4
TT
66742011-05-12 Tom Tromey <tromey@redhat.com>
6675
6676 * dwarf2read.c (read_common_block): Fix formatting.
6677
d248b706
KY
66782011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
6679
6680 * breakpoint.c (disable_breakpoint): Disable all locations
6681 associated with a tracepoint on target if a trace experiment is
6682 running.
6683 (disable_command): Disable a specific tracepoint location on target if
6684 a trace experiment is running.
6685 (do_enable_breakpoint): Enable all locations associated with a
6686 tracepoint on target if a trace experiment is running.
6687 (enable_command) Enable a specific tracepoint location on target if a
6688 trace experiment is running.
6689 * target.c (update_current_target): Add INHERIT and de_fault clauses for
6690 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6691 to_disable_tracepoint.
6692 * target.h: Add declaration of struct bp_location.
6693 (struct target_ops): Add new functions
6694 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
6695 to_disable_tracepoint to target operations.
6696 (target_supports_enable_disable_tracepoint): New macro.
6697 (target_enable_tracepoint): New macro.
6698 (target_disable_tracepoint): New macro.
6699 * remote.c (struct remote_state): Add new field.
6700 (remote_enable_disable_tracepoint_feature): New.
6701 (remote_protocol_features): Add new entry.
6702 (remote_supports_enable_disable_tracepoint): New.
6703 (remote_enable_tracepoint): New.
6704 (remote_disable_tracepoint): New.
6705 (init_remote_ops): Add remote_enable_tracepoint,
6706 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
6707 to remote operations.
6708 * tracepoint.c (start_tracing): Allow tracing to start without any
6709 tracepoints enabled with just a warning if they can be re-enabled
6710 later.
6711 * NEWS: Add news item for the new behaviour of the enable and disable
6712 GDB commands when applied to tracepoints.
6713 Add news items for the new remote packets QTEnable and QTDisable.
6714
cc88a640
JK
67152011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6716
6717 * config.in: Regenerate.
6718 * configure: Regenerate.
6719 * configure.ac <--with-system-readline> (for readline_echoing_p):
6720 Remove the test.
6721 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
6722 (tui_old_rl_echoing_p): ... here.
6723 (tui_setup_io): Rename extern declaration readline_echoing_p to
6724 _rl_echoing_p. Adjust assignments for the both renames.
6725
1f84b619
TJB
67262011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
6727
6728 * symtab.c (lookup_symtab): Run cleanup before returning.
6729
74ac6d43
TT
67302011-05-11 Tom Tromey <tromey@redhat.com>
6731
6732 * dwarf2read.c (handle_data_member_location): New function.
6733 (dwarf2_add_field): Use it.
6734 (read_common_block): Likewise.
6735
5488dafb
JK
67362011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6737
6738 Make addrs->SECTINDEX always defined.
6739 * symfile.c (relative_addr_info_to_section_offsets): Check for
6740 SECTINDEX -1, not for zero ADDR.
6741 (addrs_section_compar): Remove checking for invalid SECTINDEX.
6742 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
6743 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
6744 on its validity.
6745
84e578fb
DE
67462011-05-10 Doug Evans <dje@google.com>
6747
2471d008
DE
6748 * linux-thread-db.c: Whitespace cleanup.
6749 (try_thread_db_load_1): Fix comment.
6750
84e578fb
DE
6751 * linux-thread-db.c (set_libthread_db_search_path): New function.
6752 (_initialize_thread_db): Add setter for libthread-db-search-path.
6753
673c2bbe
DE
67542011-05-09 Doug Evans <dje@google.com>
6755
478aac75
DE
6756 * NEWS: Mention --with-iconv-bin.
6757 * configure.ac: New option --with-iconv-bin.
6758 * configure: Regenerate.
6759 * config.in: Regenerate.
6760 * defs.h (relocate_gdb_directory): Declare.
6761 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
6762 removed progname parameter, and exported. All callers updated.
6763 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
6764
673c2bbe
DE
6765 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
6766 adding missing call to restore_child_signals_mask.
6767
e4c8541f
PA
67682011-05-09 Pedro Alves <pedro@codesourcery.com>
6769
6770 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
6771 parameter.
6772 * infrun.c (proceed, start_remote): Adjust.
6773 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
6774 and adjust to not handle it.
6775 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
6776 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
6777 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
6778 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
6779 * windows-nat.c (do_initial_windows_stuff): Adjust.
6780 * infcmd.c (attach_command): Adjust.
6781 (notice_new_inferior): Adjust.
6782
a536c6d7
UW
67832011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6784
6785 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
6786 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
6787 * spu-tdep.c (op_selb): Use correct value.
6788
7845b013
UW
67892011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
6790
6791 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
6792 "parent" parameter to symbol_file_add_from_bfd call.
6793
9c06b0b4
TJB
67942011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
6795 Thiago Jung Bauermann <bauerman@br.ibm.com>
6796
6797 Implement support for PowerPC BookE masked watchpoints.
6798 * NEWS: Mention masked watchpoint support. Create "Changed commands"
6799 section.
6800 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
6801 method. Initialize to NULL in all existing breakpoint_ops instances.
6802 (struct breakpoint) <hw_wp_mask>: New field.
6803 * breakpoint.c (is_masked_watchpoint): Add prototype.
6804 (update_watchpoint): Don't set b->val for masked watchpoints. Call
6805 breakpoint's breakpoint_ops.works_in_software_mode if available.
6806 (watchpoints_triggered): Handle the case of a hardware masked
6807 watchpoint trigger.
6808 (watchpoint_check): Likewise.
6809 (works_in_software_mode_watchpoint): New function.
6810 (insert_masked_watchpoint, remove_masked_watchpoint)
6811 (resources_needed_masked_watchpoint)
6812 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
6813 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
6814 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
6815 functions.
6816 (masked_watchpoint_breakpoint_ops): New structure.
6817 (watch_command_1): Check for the existence of the `mask' parameter.
6818 Set b->ops according to the type of hardware watchpoint being created.
6819 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
6820 (ppc_linux_remove_mask_watchpoint)
6821 (ppc_linux_masked_watch_num_registers): New functions.
6822 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
6823 to_remove_mask_watchpoint and to_masked_watch_num_registers.
6824 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
6825 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
6826 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6827 (target_masked_watch_num_registers): New functions.
6828 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
6829 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
6830 methods.
6831 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
6832 (target_masked_watch_num_registers): Add prototypes.
6833
8be455d7
JK
68342011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6835
6836 PR 12573
6837 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
6838 (producer_is_gcc_ge_4_0): New function.
6839 (process_full_comp_unit): Set also symtab->locations_valid. Move the
6840 symtab->language code.
6841 (var_decode_location): Set cu->has_loclist.
6842 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
6843 skip. Intialize force_skip from locations_valid. Move the prologue
6844 skipping code into two passes.
6845 * symtab.h (struct symtab): Make the primary field a bitfield. New
6846 field locations_valid.
6847
d8228535
JK
68482011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6849
6850 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
6851 (classify_inner_name): Call cp_lookup_nested_type with
6852 yylval.tsym.type.
6853 * cp-namespace.c (cp_lookup_nested_type): New variable
6854 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
6855 type_name_no_tag_or_error with saved_parent_type.
6856 * dwarf2read.c (load_partial_dies): Read in any children of
6857 DW_TAG_typedef with complaint in such case.
6858 * gdbtypes.c (type_name_no_tag_or_error): New function.
6859 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
6860 * valops.c (destructor_name_p): New comment for parameter type. Remove
6861 type const. Make dname and cp const. Call type_name_no_tag_or_error.
6862 * value.h (destructor_name_p): Remove type const.
6863
1976171a
JK
68642011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6865
6866 * symtab.c (compare_symbol_name): New function.
6867 (completion_list_add_name, expand_partial_symbol_name): Call it,
6868 remove the variable ncmp.
6869 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
6870 gdb_assert it.
6871
a9634178
TJB
68722011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
6873
6874 Demote to sw watchpoint only in update_watchpoint.
6875 * breakpoint.c (update_watchpoint): Change between software and
6876 hardware watchpoint for all kinds of watchpoints, not just
6877 read/write ones. Determine b->exact value here instead of
6878 in watch_command_1. Error out if there are not enough resources
6879 for a read or access hardware watchpoint.
6880 (watch_command_1): Remove logic of checking whether there are
6881 enough resources available, since update_watchpoint will do that
6882 work now. Don't set b->exact here. Catch exceptions thrown by
6883 update_watchpoint and delete the watchpoint.
6884 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
6885 Use target_exact_watchpoints instead.
6886 (delete_breakpoint): Notify observers only if deleted watchpoint
6887 has a breakpoint number assigned to it.
6888
4c67c798
JJ
68892011-05-05 Janis Johnson <janisjo@codesourcery.com>
6890
6891 * MAINTAINERS: Add myself as a write-after-approval maintainer.
6892
a3fcb948
JG
68932011-05-05 Jerome Guitton <guitton@adacore.com>
6894
6895 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
6896 New functions.
6897 (i386_stack_tramp_frame_unwind): New static global.
6898 (i386_match_pattern): New function, extracted from i386_match_insn.
6899 (i386_match_insn): Use i386_match_pattern.
6900 (i386_match_insn_block): New function.
6901 (i386_tramp_chain_in_reg_insns)
6902 (i386_tramp_chain_on_stack_insns): New static variables.
6903 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
6904 of unwinders.
6905
4d393d60
JM
69062011-05-04 Joseph Myers <joseph@codesourcery.com>
6907
6908 * configure.host (xscale*): Don't handle target.
6909 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
6910 handle targets.
6911
f70bd40b
YQ
69122011-05-04 Yao Qi <yao@codesourcery.com>
6913
6914 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
6915
dd3295ee
JB
69162011-05-03 Joel Brobecker <brobecker@adacore.com>
6917
6918 Revert:
6919 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
6920 | * elfread.c (elf_symtab_read): Stop memory leak.
6921
90375a0e
PM
69222011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
6923
6924 * nto-tdep.c (nto_target): Replace deprecated call to
6925 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
6926
d07205c2
JK
69272011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6928
6929 Fix false GCC warning.
6930 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
6931
1e718ff1
TJB
69322011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
6933
6934 * breakpoint.c (update_watchpoint): Move code to change
6935 the enable state of breakpoint from here ...
6936 (do_enable_breakpoint): ... to here.
6937
35bef4fd
TT
69382011-04-26 Andrew Gontarek <andrewg@cray.com>
6939
78290264
PP
6940 * valprint.c (val_print_array_elements): Fixed poor performance
6941 of printing very large arrays with repeat_count_threshold set
6942 to unlimited. New comment.
35bef4fd 6943
38a714bb
TT
69442011-04-29 Tom Tromey <tromey@redhat.com>
6945
6946 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
6947 (mi_parse): Likewise.
6948 * breakpoint.c (break_range_command): Use sizeof char*, not
6949 char**.
6950 (create_breakpoint): Likewise.
6951 (parse_breakpoint_sals): Likewise.
6952
eb73ad13
PA
69532011-04-29 Pedro Alves <pedro@codesourcery.com>
6954
6955 * linux-nat.c (linux_child_remove_fork_catchpoint)
6956 (linux_child_remove_vfork_catchpoint)
6957 (linux_child_remove_exec_catchpoint): New functions.
6958 (linux_target_install_ops): Install them.
6959
d65aec65
PM
69602011-04-29 Phil Muldoon <pmuldoon@redhat.com>
6961
6962 PR mi/12531
6963
6964 * varobj.c (install_default_visualizer): Do not install a
6965 visualizer if the varobj is CPLUS_FAKE_CHILD.
6966 (construct_visualizer): Likewise.
6967
165195f4
JK
69682011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6969
6970 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
6971 case insensitive comparison.
6972
30852783
UW
69732011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
6974
6975 * infrun.c (proceed): Revert previous change.
6976 (resume): Instead, handle the case of signal delivery while stepping
6977 off a breakpoint location here, and only if software single-stepping
6978 is used. Handle nested signals.
6979
7ff120b4
YQ
69802011-04-28 Yao Qi <yao@codesourcery.com>
6981
6982 * arm-tdep.c (copy_unmodified): Rename to ...
6983 (arm_copy_unmodified): .. this. New.
6984 (copy_preload): Move common part to ...
6985 (install_preload): .. this. New.
6986 (arm_copy_preload): New.
6987 (copy_preload_reg): Move common part to ...
6988 (install_preload_reg): ... this. New.
6989 (arm_copy_preload_reg): New.
6990 (copy_b_bl_blx): Move common part to ...
6991 (install_b_bl_blx): .. this. New.
6992 (arm_copy_b_bl_blx): New.
6993 (copy_bx_blx_reg): Move common part to ...
6994 (install_bx_blx_reg): ... this. New.
6995 (arm_copy_bx_blx_reg): New.
6996 (copy_alu_reg): Move common part to ...
6997 (install_alu_reg): ... this. New.
6998 (arm_copy_alu_reg): New.
6999 (copy_alu_shifted_reg): Move common part to ...
7000 (install_alu_shifted_reg): ... this. New.
7001 (copy_ldr_str_ldrb_strb): Move common part to ...
7002 (install_ldr_str_ldrb_strb): ... this. New.
7003 (arm_copy_ldr_str_ldrb_strb): New.
7004 (copy_copro_load_store): Move some common part to ...
7005 (install_copy_copro_load_store): ... this. New.
7006 (arm_copy_copro_load_store): New.
7007 (copy_svc): Delete.
7008 (arm_copy_svc): Renamed from copy_svc.
7009 (copy_undef): Delete.
7010 (arm_copy_undef): Renamed from copy_undef.
7011 (decode_ext_reg_ld_st): Delete.
7012 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7013 (decode_svc_copro): Delete.
7014 (arm_decode_svc_copro): Renamed from decode_svc_copro.
7015 (copy_copro_load_store, copy_alu_imm): update callers.
7016 (copy_extra_ld_st, copy_block_xfer): Likewise.
7017 (decode_misc_memhint_neon, decode_unconditional): Likewise.
7018 (decode_miscellaneous, decode_dp_misc): Likewise.
7019 (decode_ld_st_word_ubyte, decode_media): Likewise.
7020 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
7021 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
7022 (decode_unconditional, decode_miscellaneous): Likewise.
7023 (decode_media, decode_b_bl_ldmstm): Likewise.
7024 (arm_process_displaced_insn): Likewise..
7025 (decode_misc_memhint_neon): Delete.
7026 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
7027 (decode_miscellaneous): Delete.
7028 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
7029 (decode_dp_misc): Delete.
7030 (arm_decode_dp_misc): Renamed from decode_dp_misc.
7031 (decode_ld_st_word_ubyte): Delete.
7032 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
7033 (decode_media): Delete.
7034 (arm_decode_media): Renamed from decode_media.
7035 (decode_b_bl_ldmstm): Delete.
7036 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
7037 (decode_ext_reg_ld_st): Delete.
7038 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
7039 (decode_unconditional): Delete.
7040 (arm_decode_unconditional): Renamed from decode_unconditional.
7041
559a7a62
JK
70422011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7043
7044 Case insensitive lookups implementation.
7045 * dwarf2read.c: Include ctype.h.
7046 (struct mapped_index): New field version.
7047 (mapped_index_string_hash): New parameter index_version. New comment
7048 for it. Call tolower appropriately.
7049 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
7050 Choose the right index version for mapped_index_string_hash.
7051 (dwarf2_read_index): Support also the index version 5. Initialize the
7052 new struct mapped_index field version.
7053 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
7054 (find_slot): Explain the version needs. Pass INT_MAX for the new
7055 parameter.
7056 (write_psymtabs_to_index): Produce version 5.
7057 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
7058 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
7059 * psymtab.c (lookup_partial_symbol): Find the
7060 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
7061 entries.
7062 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
7063 NAME lowercasing.
7064 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
7065 (completion_list_add_name): New variable ncmp, initialize it, use it.
7066 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
7067 * utils.c (strcmp_iw): Support case_sensitive_off.
7068 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
7069 New function comment part. New variables saved_string1,
7070 saved_string2 and case_pass. Add a proper second pass.
7071
681bf369
JK
70722011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7073
7074 Replace re_comp/re_exec by regcomp/regexec.
7075 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
7076 (search_symbols_name_matches): Use them, use regexec.
7077 (search_symbols): New variable retval_chain, adjust the use of
7078 old_chain against it. Replace re_comp by regcomp. Use the new struct
7079 search_symbols_data fields, use regexec instead of re_exec.
7080
b11b1f88
JK
70812011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7082
7083 Format the code for the next patch.
7084 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
7085 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
7086 New variables c1 and c2.
7087
2484c66b
UW
70882011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7089
7090 * infrun.c (proceed): Do not single-step into signal delivery
7091 when stepping off a breakpoint location.
7092 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
7093 (insert_step_resume_breakpoint_at_caller): Likewise.
7094 (insert_step_resume_breakpoint_at_sal): Likewise.
7095 (insert_longjmp_resume_breakpoint): Likewise.
7096
47423772
YQ
70972011-04-27 Yao Qi <yao@codesourcery.com>
7098
7099 * common/linux-ptrace.h: Remove include <sys/wait.h>.
7100
13bdd2e7
JB
71012011-04-27 Joel Brobecker <brobecker@adacore.com>
7102
7103 * procfs.c (procfs_pass_signals): Fix advance declaration.
7104
2455069d
UW
71052011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
7106
7107 * target.h (struct target_ops): Remove to_notice_signals;
7108 add to_pass_signals.
7109 (target_notice_signals): Remove.
7110 (target_pass_signals): Add prototype.
7111 * target.c (update_current_target): Remove to_notice_signals;
7112 mention to_pass_signals.
7113 (target_pass_signals): New function.
7114 (debug_to_notice_signals): Remove.
7115 (setup_target_debug): Do not install debug_to_notice_signals.
7116
7117 * infrun.c (signal_pass): New global.
7118 (resume): Call target_pass_signals.
7119 (handle_inferior_event): Report all signals while stepping over
7120 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
7121 are re-inserted when stepping over a signal handler.
7122 (signal_cache_update): New function.
7123 (signal_stop_update): Call it.
7124 (signal_print_update): Likewise.
7125 (signal_pass_update): Likewise.
7126 (handle_command): Call signal_cache_update and target_pass_signals
7127 instead of target_notice_signals.
7128 (_initialize_infrun): Initialize signal_pass.
7129
7130 * linux-nat.c (pass_mask): New global.
7131 (linux_nat_pass_signals): New function.
7132 (linux_nat_create_inferior): Report all signals initially.
7133 (linux_nat_attach): Likewise.
7134 (linux_nat_resume): Use pass_mask to decide whether to directly
7135 handle an inferior signal.
7136 (linux_nat_wait_1): Likewise.
7137 (linux_nat_add_target): Install to_pass_signals callback.
7138
7139 * nto-procfs.c (notice_signals): Remove.
7140 (procfs_resume): Do not call notice_signals.
7141 (procfs_notice_signals): Remove.
7142 (procfs_pass_signals): New function.
7143 (init_procfs_ops): Install to_pass_signals callback instead of
7144 to_notice_signals callback.
7145 (_initialize_procfs): Report all signals initially.
7146
7147 * procfs.c (procfs_notice_signals): Remove.
7148 (procfs_pass_signals): New function.
7149 (procfs_target): Install to_pass_signals callback instead of
7150 to_notice_signals callback.
7151 (register_gdb_signals): Remove.
7152 (procfs_debug_inferior): Report all signals initially.
7153 (procfs_init_inferior): Remove redundant register_gdb_signals call.
7154
7155 * remote.c (remote_pass_signals): Add numsigs and pass_signals
7156 parameters; use them instead of calling signal_..._state routines.
7157 (remote_notice_signals): Remove.
7158 (remote_start_remote): Report all signals initially.
7159 (remote_resume): Do not call remote_pass_signals.
7160 (_initialize_remote): Install to_pass_signals callback instead of
7161 to_notice_signals callback.
7162
46c6471b
PA
71632011-04-27 Pedro Alves <pedro@codesourcery.com>
7164
7165 * breakpoint.c (user_settable_breakpoint): Delete.
7166 (user_breakpoint_p): Remove check on user_settable_breakpoint.
7167 (delete_command): Check user_breakpoint_p instead of looking at
7168 the breakpoint's type.
7169 (disable_command): Ditto.
7170 (enable_command): Ditto.
7171 (delete_trace_command): Use user_breakpoint_p instead of looking
7172 at the breakpoint number directly. When checking if there are
7173 user visible tracepoints, in order to know whether to ask the user
7174 for confirmation, check whether the breakpoint is actually a
7175 tracepoint.
7176
f6d90398
VP
71772011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7178
7179 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
7180 compilation.
7181
8d3788bd
VP
71822011-04-27 Vladimir Prus <vladimir@codesourcery.com>
7183
7184 MI breakpoint notifications.
7185
f33edef8
PP
7186 * annotate.c (breakpoint_changed): Adjust parameter type.
7187 * breakpoint.c (set_breakpoint_condition): Adjust to change
7188 in breakpoint_modified type.
7189 (breakpoint_set_commands): Likewise.
7190 (do_map_commands_command): Likewise.
7191 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
7192 changed after bumping hit count.
7193 (bpstat_stop_status): Likewise.
7194 (print_one_breakpoint_location): Don't wrap in tuple here.
7195 (print_one_breakpoint): Always print individual locations.
7196 For locations, use unnamed tuple.
7197 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
7198 has changed.
7199 (create_catchpoint, create_syscall_event_catchpoint): Call
7200 breakpoint_created obsever.
7201 (mention): Don't call breakpoint_created observer.
7202 (create_breakpoint_sal): Call breakpoint_created observer.
7203 (create_breakpoint, watch_command_1): Likewise.
7204 (create_ada_exception_breakpoint): Likewise.
7205 (delete_breakpoint): Call breakpoint_deleted breakpoint.
7206 (locations_are_equal): New.
7207 (update_breakpoint_locations): If locations were changed, notify.
7208 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
7209 Call breakpoint_modified observer.
7210
7211 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
7212 (mi_cmd_break_insert): Don't set observers for modify and delete.
7213 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
7214 (mi_breakpoint_created, mi_breakpoint_deleted)
7215 (mi_breakpoint_modified): New.
7216 (mi_interpreter_init): Hook the above.
7217 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
7218 while -break-* commands are executing.
7219 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
7220 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
7221 (mi_redirect): New.
7222 (mi_ui_out_impl): Hook in mi_redirect.
7223 (mi_field_skip): True to the name, skip the field, don't output
7224 a field with an empty value.
7225
7226 * python/py-breakpoint.c (gdbpy_breakpoint_created)
7227 (gdbpy_breakpoint_deleted): Adjust.
7228 * tui/tui-hooks.c (tui_event_create_breakpoint)
7229 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 7230
a8f42b45
UW
72312011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
7232
7233 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
7234 (procfs_remove_hw_watchpoint): Likewise.
7235
57e12211
TT
72362011-04-26 Michael Walle <michael@walle.cc>
7237
7238 * remote.c (remote_start_remote): Ack packet after sending the
7239 interrupt sequence.
7240
af96c192
YQ
72412011-04-26 Yao Qi <yao@codesourcery.com>
7242
f33edef8
PP
7243 * linux-nat.c: Move common macros to ...
7244 Include linux-ptrace.h.
7245 * common/linux-ptrace.h: ... here. New.
af96c192 7246
3e03848b
JK
72472011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7248
7249 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
7250 !objfile_has_partial_symbols. New comment.
7251 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
7252 SYM_READ_PSYMBOLS is not present. Extend the comment.
7253 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
7254
1ae0d051
JK
72552011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7256
7257 * defs.h (ENUM_BITFIELD): Remove.
7258
03f2bd59
JK
72592011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7260 Eli Zaretskii <eliz@gnu.org>
7261
7262 * NEWS: Document the new gdbserver --once option.
7263
4161fbb0
JZ
72642011-04-21 Jie Zhang <jzhang918@gmail.com>
7265
7266 * MAINTAINERS: Update my email address.
7267
bcb28afc
PM
72682011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
7269
7270 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
7271 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
7272 function call if __STDC_ISO_10646__ macro is defined.
7273 (intermediate_encoding): New prototype.
7274 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
7275 to generate compile time error for unsupported gdb_wchar_t size.
7276 (ENDIAN_SUFFIX): New macro.
7277 (intermediate_encoding): New function.
7278
7b08b9eb
JK
72792011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7280
7281 * ada-lang.c (struct add_partial_datum): Update the comment for
7282 expand_partial_symbol_name.
7283 (ada_add_partial_symbol_completions): Rename to ...
7284 (ada_expand_partial_symbol_name): ... here, change return type, update
7285 function comment, call symbol_completion_match instead of
7286 symbol_completion_add.
7287 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
7288 and ada_expand_partial_symbol_name.
7289 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
7290 FILE_MATCHER.
7291 (dw2_map_symbol_names): Remove.
7292 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
7293 * psymtab.c (map_symbol_names_psymtab): Remove.
7294 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
7295 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
7296 order.
7297 (psym_functions): Unlist map_symbol_names_psymtab.
7298 (map_partial_symbol_names): Rename to ...
7299 (expand_partial_symbol_names): ... here, change the FUN type, call
7300 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
7301 * psymtab.h (map_partial_symbol_names): Rename to ...
7302 (expand_partial_symbol_names): ... here, change the FUN type.
7303 * symfile.h (struct quick_symbol_functions): Update the description of
7304 expand_symtabs_matching. Remove map_symbol_names.
7305 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
7306 (struct add_name_data): Update the comment for
7307 expand_partial_symbol_name.
7308 (add_partial_symbol_name): Rename to ...
7309 (expand_partial_symbol_name): ... here. Replace
7310 completion_list_add_name call by strncmp.
7311 (default_make_symbol_completion_list_break_on): Use now
7312 expand_partial_symbol_names and expand_partial_symbol_name.
7313 * symtab.h (enum search_domain): New element ALL_DOMAIN.
7314
90476074
TT
73152011-04-20 Tom Tromey <tromey@redhat.com>
7316
7317 * dwarf2read.c (save_gdb_index_command): Replace format
7318 documentation with a pointer to the manual.
7319
c21236dc
PA
73202011-04-20 Pedro Alves <pedro@codesourcery.com>
7321
7322 * regcache.c: Include remote.h.
7323 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
7324 (regcache_dump): Handle regcache_dump_remote.
7325 (maintenance_print_remote_registers): New function.
7326 (_initialize_regcache): Install "maint print remote-registers"
7327 command.
7328 * remote.c (map_regcache_remote_table): New function, factored out
7329 from ...
7330 (init_remote_state): ... here.
7331 (remote_register_number_and_offset): New.
7332 * remote.h (remote_register_number_and_offset): Declare.
7333
b78974c3
PA
73342011-04-20 Pedro Alves <pedro@codesourcery.com>
7335
7336 * regcache.c (get_thread_arch_regcache): If creating a regcache for
7337 null_ptid, assume and allow a NULL address space, instead of
7338 asking the target for the ptid's address space.
7339 * infrun.c (ptid_is_pid): Remove assertion.
7340
7a9dd1b2
TT
73412011-04-19 Tom Tromey <tromey@redhat.com>
7342
7343 * windows-tdep.c (windows_xfer_shared_library):
7344 * windows-nat.c (get_module_name, windows_make_so):
7345 * v850-tdep.c (v850_handle_pushm):
7346 * utils.c (null_cleanup, gdb_realpath):
7347 * ui-out.c (get_next_header):
7348 * tracepoint.c (clear_traceframe_info):
7349 * symtab.c (lookup_symtab):
7350 * serial.h (struct serial_ops):
7351 * mipsread.c (read_alphacoff_dynamic_symtab):
7352 * infcmd.c (print_return_value):
7353 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
7354 * f-exp.y (parse_number):
7355 * exceptions.c (catch_exceptions):
7356 * dummy-frame.c (dummy_frame_this_id):
7357 * defs.h (struct cleanup):
7358 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
7359 * arm-tdep.c (arm_push_dummy_call):
7360 * amd64-tdep.h (amd64_collect_xsave):
7361 * amd64-tdep.c (amd64_collect_xsave):
7362 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
7363 * README (typing): Remove duplicate words.
7364 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
7365 * infrun.c (siginfo_value_read): Fix typo.
7366 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
7367 * top.c (source_line_number): Add comma.
7368
9941e0c5
MK
73692011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
7370
7371 * thread.c (any_live_thread_of_process): Prioritize threads
7372 that are not executing.
7373 * gdbthread.h (any_live_thread_of_process): Update comment
7374 as per above change.
7375
ed4b0e6a
AS
73762011-04-19 Andreas Schwab <schwab@linux-m68k.org>
7377
7378 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
7379 (scan_xcoff_symtab): Likewise.
7380
9b13a2db
PM
73812011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7382
7383 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
7384 inside if clause.
7385
1c6e1b0d
PM
73862011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7387 Pedro Alves <pedro@codesourcery.com>
7388
7389 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
7390 variables to simplify code and avoid == operator at end of
7391 line as this is against GNU coding standards.
7392
74de0234
PM
73932011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7394
7395 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
7396 lm_name to name_lm to avoid conflict with lm_name function.
7397
b23518f0
PM
73982011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7399
7400 ARI fixes: Use only lowercase function name for static functions.
7401 * nto-tdep.c (LM_ADDR): Rename to...
7402 (lm_addr): New function name.
7403 (nto_relocate_section_addresses): Adapt to change above.
7404 * solib-sunos.c (LM_ADDR): Rename to...
7405 (lm_addr): New function name.
7406 (LM_NEXT): Rename to...
7407 (lm_next): New function name.
7408 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
7409 function name changes above.
7410 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
7411 (lm_addr_from_link_map): New function name.
7412 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7413 (has_lm_dynamic_from_link_map): New function name.
7414 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
7415 (lm_dynamic_from_link_map): New function name.
7416 (LM_ADDR_CHECK): Rename to...
7417 (lm_addr_check): New function name.
7418 (LM_NEXT): Rename to...
7419 (lm_next): New function name.
7420 (LM_PREV): Rename to...
7421 (lm_prev): New function name.
7422 (LM_NAME): Rename to...
7423 (lm_name): New function name.
7424 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
7425 (ignore_first_link_map_entry): New function name.
7426 (svr4_keep_data_in_core): Adapt to function name changes above.
7427 (svr4_current_sos): Likewise.
7428 (enable_break): Likewise.
7429 (svr4_relocate_section_addresses): Likewise.
7430
1448a0a2
PM
74312011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
7432
7433 ARI cleanup.
7434 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
7435 sprintf. Simplify code and avoid loosing memory.
7436 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
7437 (call0_frame_cache): Remove && operator from end of line.
7438
02835898
JK
74392011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7440
7441 Fix libraries displacement if they change whether they were prelinked.
7442 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
7443 does not match. Comment why.
7444
9a845ea2
JK
74452011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7446
7447 * corelow.c: Include wrapper.h.
7448 (core_open): Call now gdb_target_find_new_threads.
7449 * wrapper.c: Include target.h.
7450 (gdb_target_find_new_threads): New.
7451 * wrapper.h (gdb_target_find_new_threads): New declaration.
7452
254f582e
JK
74532011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7454
7455 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
7456 even if !TARGET_HAS_EXECUTION.
7457
63524580
JK
74582011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7459
7460 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
7461 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
7462 bfd_get_synthetic_symtab.
7463 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
7464 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
7465 parameter parent, remove the call to add_separate_debug_objfile.
7466 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
7467 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
7468 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
7469 parent, new comment for it, call add_separate_debug_objfile for it.
7470 (symbol_file_add_separate): Pass objfile as the parameter parent,
7471 remove the call to add_separate_debug_objfile.
7472 (symbol_file_add_from_bfd): New parameter parent, pass it.
7473 (symbol_file_add): Pass NULL to the new parameter parent.
7474 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
7475
90359a16
JK
74762011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7477
7478 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
7479 BSF_SYNTHETIC.
7480
626e7282
JK
74812011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7482
7483 Fix Python access to inlined frames.
7484 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
7485 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
7486
cf31e6f9
TT
74872011-04-15 Tom Tromey <tromey@redhat.com>
7488
7489 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
7490
c8d895f1
GB
74912011-04-15 Gary Benson <gbenson@redhat.com>
7492
7493 * MAINTAINERS: Add myself to write-after-approval section.
7494
56a9aa1d
MF
74952011-04-14 Mike Frysinger <vapier@gentoo.org>
7496
7497 * remote-sim.c (sim_command_completer): New function.
7498 (_initialize_remote_sim): Set completer to sim_command_completer.
7499
ba770c9c
TJB
75002011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7501
7502 * breakpoint.c (print_exception_catchpoint): Rename to ...
7503 (print_it_exception_catchpoint): ... this.
7504 (gnu_v3_exception_catchpoint_ops): Update with new name
7505 for print_it_exception_catchpoint.
7506
51bf2553
EBM
75072011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
7508
7509 * MAINTAINERS: Add myself for write after approval privileges.
7510
d242658c
MP
75112011-04-13 Marek Polacek <mpolacek@redhat.com>
7512
7513 * MAINTAINERS: Add myself as a write-after-approval maintainer.
7514
4a4106ca
TJB
75152011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7516
7517 * breakpoint.c (watch_command_1): Remove colon from exp_string.
7518
26063d49
TJB
75192011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
7520
7521 * breakpoint.c (save_breakpoints): Verify whether
7522 breakpoint_ops.print_recreate is defined before calling it.
7523
7782b183
GB
75242011-04-11 Gary Benson <gbenson@redhat.com>
7525
7526 Fix failure with --enable-maintainer-mode.
7527 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
7528
e8930875
JK
75292011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7530
7531 Code cleanup.
7532 * symtab.c (search_symbols): Reorder the KIND description in the
7533 function comment. Remove the unused 4th element of types, types2,
7534 types3 and types4. New gdb_assert on KIND.
7535 (symtab_symbol_info): Remove the unused 4th element of classnames.
7536 New gdb_assert on KIND.
7537 * symtab.h (enum search_domain): New warning in the enum comment.
7538 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
7539 TYPES_DOMAIN.
7540
b4f2f049
JK
75412011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7542
7543 Fix crash of gdb save-index on a STABS file.
7544 * dwarf2read.c (write_psymtabs_to_index): Return also on no
7545 PSYMTABS_ADDRMAP.
7546
60d5a603
JK
75472011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7548
7549 Fix DW_AT_accessibility compatibility with gcc-4.6+.
7550 * dwarf2read.c: Include ctype.h.
7551 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
7552 functions.
7553 (dwarf2_add_field): Fix new_field->accessibility by calling
7554 dwarf2_default_access_attribute. Restructure setting accessibility
7555 vs. virtuality.
7556 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
7557 is_private and is_protected by calling
7558 dwarf2_default_access_attribute.
7559
e0f68161
KB
75602011-04-08 Kevin Buettner <kevinb@redhat.com>
7561
7562 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
7563 to the initialization.
7564
2e1aae43
SE
75652011-04-08 Steve Ellcey <sje@cup.hp.com>
7566
7567 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
7568 initalization.
7569
c6ca3dab
PM
75702011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
7571
7572 Remove support for old Cygwin 1.5 versions.
7573 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
7574 function on old Cygwin version.
7575 * windows-nat.c: Remove cygwin version check and always define
7576 __USEWIDE for Cygwin compilation.
7577
bd18283a
YQ
75782011-04-07 Yao Qi <yao@codesourcery.com>
7579
7580 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
7581 and TO.
7582 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
7583 (arm_copy_svc): Remove parameters INSN and TO.
7584 (decode_svc_copro): Update caller.
7585 * arm-tdep.h (struct displaced_step_closure): Remove parameters
7586 from function pointer `copy_svc_os'.
7587
8c8dba6d
YQ
75882011-04-07 Yao Qi <yao@codesourcery.com>
7589
7590 * arm-tdep.c (cleanup_branch): Set a correct return address in
7591 LR for ARM and Thumb.
7592
59d7bcaf
JK
75932011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7594
7595 Code cleanup.
7596 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
7597 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
7598 in the function comment, a new note on values compatibility.
7599 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
7600 * symtab.h (SYMBOL_HASH_NEXT): New.
7601
e7db58ea
TJB
76022011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
7603
7604 * ppc-linux-nat.c (check_condition): Add len output parameter.
7605 Set it based on the memory region referenced in the condition
7606 expression. Update all callers.
7607
9f743ef6
JK
76082011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7609
7610 Fix crash regression on systems featuring .gdb_index.
7611 * objfiles.c (free_objfile): Move the
7612 forget_cached_source_info_for_objfile call earlier. Comment it.
7613 Extend the comment for objfile_free_data.
7614
9182c5bc
JK
76152011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7616
7617 Fix regression of displaying the debug format.
7618 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
7619 subfile.
7620
04bd08de
TT
76212011-04-04 Tom Tromey <tromey@redhat.com>
7622
7623 * cli/cli-interp.c (struct captured_execute_command_args):
7624 Remove.
7625 (do_captured_execute_command): Remove.
7626 (safe_execute_command): Use TRY_CATCH.
7627 * cli/cli-script.c (struct wrapped_read_command_file_args):
7628 Remove.
7629 (wrapped_read_command_file): Remove.
7630 (script_from_file): Use TRY_CATCH.
7631 * exceptions.c (catch_exception): Remove.
7632 * exceptions.h (catch_exception): Remove.
7633 (deprecated_throw_reason): Update comment.
7634 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
7635 argument to 'context'.
7636 (mi_execute_command): Use TRY_CATCH.
7637 * remote.c (struct start_remote_args): Remove.
7638 (remote_start_remote): Update; change arguments.
7639 (remote_open_1): Use TRY_CATCH.
7640
58438ac1
TT
76412011-04-04 Tom Tromey <tromey@redhat.com>
7642
7643 * tracepoint.c (scope_info): Update.
7644 * symtab.c (decode_line_spec): Update.
7645 * python/python.c (gdbpy_decode_line): Update.
7646 * linespec.h (decode_line_1): Update.
7647 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
7648 (decode_compound, find_method, symtab_from_filename)
7649 (decode_variable): Likewise.
7650 * cli/cli-cmds.c (edit_command): Update.
7651 (list_command): Update.
7652 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
7653 argument.
7654 (create_breakpoint): Update.
7655 (until_break_command): Update.
7656 (addr_string_to_sals): Update.
7657 (decode_line_spec_1): Update.
7658
b78a6381
TT
76592011-04-04 Tom Tromey <tromey@redhat.com>
7660
7661 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
7662 (do_captured_parse_breakpoint): Remove.
7663 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
7664 Use TRY_CATCH directly.
7665
00174a86
TT
76662011-04-04 Tom Tromey <tromey@redhat.com>
7667
7668 * symtab.h (free_symtab): Remove.
7669 (forget_cached_source_info_for_objfile): Declare.
7670 * symmisc.c (free_symtab): Remove.
7671 * source.c (forget_cached_source_info_for_objfile): New function.
7672 (forget_cached_source_info): Use it.
7673 * objfiles.c (free_objfile): Simplify check before calling
7674 clear_current_source_symtab_and_line. Call
7675 forget_cached_source_info_for_objfile.
7676
30cc903e
TT
76772011-04-04 Tom Tromey <tromey@redhat.com>
7678
7679 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
7680 (new_symtab): Don't set `free_code' on symtab.
7681 (new_linetable): Properly handle size==0.
7682 * symtab.h (struct symtab) <free_code, free_func>: Remove.
7683 * symmisc.c (free_symtab): Don't free the linetable. Don't call
7684 free_func.
7685 * jv-lang.c (struct jv_per_objfile_data): New.
7686 (jv_per_objfile_free): Free the data.
7687 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
7688 (get_java_class_symtab): Set the `dict' field on the
7689 jv_per_objfile_data.
7690 (free_class_block): Remove.
7691 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
7692 the symtab.
7693
0c2e6019
TT
76942011-04-04 Tom Tromey <tromey@redhat.com>
7695
7696 * symfile.c (reread_symbols): Update.
7697 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
7698 field.
7699 * objfiles.c (allocate_objfile): Update.
7700 * cp-support.h (cp_check_possible_namespace_symbols): Don't
7701 declare.
7702 * cp-namespace.c (lookup_symbol_file): Don't call
7703 lookup_possible_namespace_symbol.
7704 (initialize_namespace_symtab, get_possible_namespace_block)
7705 (free_namespace_block, cp_check_possible_namespace_symbols)
7706 (check_possible_namespace_symbols_loop)
7707 (check_one_possible_namespace_symbol)
7708 (lookup_possible_namespace_symbol): Remove.
7709 (maintenance_cplus_namespace): Replace with notice.
7710 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
7711
554d387d
TT
77122011-04-04 Tom Tromey <tromey@redhat.com>
7713
7714 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
7715 * symtab.h (struct symtab) <producer, debugformat>: Now const.
7716 * symmisc.c (free_symtab): Don't free debugformat.
7717 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
7718 (record_debugformat, record_producer): Document.
7719 * buildsym.c (end_symtab): Don't save debugformat and producer
7720 names on obstack.
7721 (end_symtab): Don't free debugformat and producer fields.
7722 (record_debugformat): Don't call xstrdup.
7723 (record_producer): Likewise.
7724
d4d4db8a
TT
77252011-04-04 Tom Tromey <tromey@redhat.com>
7726
7727 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
7728 (source_line_charpos, source_charpos_line): Remove.
7729
8903c50d
TT
77302011-04-04 Tom Tromey <tromey@redhat.com>
7731
7732 * symtab.h (domain_enum): Split in two...
7733 (enum search_domain): New.
7734 (search_symbols): Update.
7735 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
7736 redundant declarations.
7737 (search_symbols): Change 'kind' argument to search_domain.
7738 Update.
7739 (print_symbol_info): Likewise.
7740 (symtab_symbol_info): Likewise.
7741 * symfile.h (struct quick_symbol_functions)
7742 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
7743 <expand_symtabs_matching>: Likewise.
7744 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
7745 (expand_symtabs_matching_via_partial): Update.
7746 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
7747 (dw2_expand_symtabs_for_function): Update.
7748 * block.h: Moved anonymous enum...
7749 * defs.h (enum block_enum): ... here. Now named.
7750
d9351f5f 77512011-04-03 Joel Brobecker <brobecker@adacore.com>
7752
7753 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
7754 * version.in: Bump version to 7.3.50.20110403-cvs.
7755
d6e00af6
JB
77562011-04-03 Joel Brobecker <brobecker@adacore.com>
7757
7758 * NEWS: Create a new section for the next release branch.
7759 Rename the section of the current branch, now that it has
7760 been cut.
7761
2b9e5ea6
UW
77622011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7763
7764 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
7765 for "fpscr" in target description.
7766
0cf03b49
JK
77672011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7768
7769 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
7770 initialize it. Delay HASH initialization. Strip the part after open
7771 parenthesis for languages with qualifiers. Call do_cleanups.
7772
5d901a73
TT
77732011-04-01 Tom Tromey <tromey@redhat.com>
7774
7775 * utils.c (report_command_stats): Don't print `-' for negative
7776 number.
7777
b0dd7688
JB
77782011-04-01 Eric Botcazou <ebotcazou@adacore.com>
7779
7780 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
7781 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
7782 typedefs.
7783
956a9fb9
JB
77842011-04-01 Joel Brobecker <brobecker@adacore.com>
7785
7786 * breakpoint.h (bpdisp_text): Add declaration.
7787 * breakpoint.c (bpdisp_text): Make non-static.
7788 * ada-lang.c: #include "mi/mi-common.h".
7789 (print_it_exception): Rewrite to improve GDB/MI output.
7790
3352110b
PA
77912011-04-01 Pedro Alves <pedro@codesourcery.com>
7792
7793 * arm-tdep.h (struct address_space): Add forward declaration.
7794
18819fa6
UW
77952011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
7796
7797 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
7798 * arm-tdep.c (arm_override_mode): New global.
7799 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
7800 execution mode heuristics.
7801 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
7802 second single-step breakpoint if needed, using
7803 arm_insert_single_step_breakpoint.
7804 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
7805 ARM execution mode, do not call thumb_get_next_pc_raw.
7806 (arm_get_next_pc): Encode execution mode in return value. Call
7807 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
7808 (arm_insert_single_step_breakpoint): New function.
7809 (arm_software_single_step): Call it.
7810 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
7811 argument to return execution mode of sigreturn target.
7812 (arm_linux_syscall_next_pc): Use it.
7813 (arm_linux_copy_svc): Update call.
7814 (arm_linux_software_single_step): Call
7815 arm_insert_single_step_breakpoint.
7816
a6e293d1
JK
78172011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7818
7819 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
7820 the comment.
7821
a4c8e806
TT
78222011-03-31 Tom Tromey <tromey@redhat.com>
7823
7824 * varobj.c (update_dynamic_varobj_children): Properly handle
7825 errors from iterator.
7826
df5c6c50
JK
78272011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7828
7829 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
7830 struct linkage name twice.
7831
1dae3efc
TT
78322011-03-31 Tom Tromey <tromey@redhat.com>
7833
7834 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
7835 missing ">" to message.
7836
f4f7ab05
TT
78372011-03-31 Tom Tromey <tromey@redhat.com>
7838
7839 * varobj.c (instantiate_pretty_printer): Remove duplicate
7840 'return'.
7841
fcf250e2
UW
78422011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
7843
7844 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
7845 if neither saved value nor register available (e.g. signal frame).
7846
ee6436e3
TJB
78472011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7848
7849 * macroexp.c (expand): Avoid uninitialized variable
7850 compiler warning.
7851
423f41a5
TJB
78522011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7853
7854 * breakpoint.c (break_range_command): Fix typo in comment.
7855
f1310107
TJB
78562011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
7857 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
7858
7859 Implement support for PowerPC BookE ranged breakpoints.
7860 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
7861 * breakpoint.h (struct bp_target_info) <length>: New member
7862 variable.
7863 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
7864 instead of struct breakpoint as argument, and also add ASPACE
7865 and BP_ADDR arguments. Update all callers.
7866 (struct breakpoint_ops) <print_one_detail>: New method.
7867 (struct breakpoint) <addr_string_range_end>: New member variable.
7868 * breakpoint.c (breakpoint_location_address_match): Add function
7869 prototype.
7870 (insert_bp_location): Set bl->target_info.length.
7871 (breakpoint_here_p): Call breakpoint_location_address_match.
7872 (moribund_breakpoint_here_p): Likewise.
7873 (regular_breakpoint_inserted_here_p): Likewise.
7874 (breakpoint_thread_match): Likewise.
7875 (bpstat_stop_status): Likewise.
7876 (bpstat_check_location): Move call to
7877 breakpoint_ops.breakpoint_hit to the top.
7878 (print_one_breakpoint_location): Call
7879 breakpoint_ops.print_one_detail if available.
7880 (breakpoint_address_match_range): New function.
7881 (breakpoint_location_address_match): Likewise.
7882 (breakpoint_locations_match): Compare the length field of the
7883 locations too.
7884 (hw_breakpoint_used_count): Count resources used by all locations
7885 in a breakpoint, and use breakpoint_ops.resources_needed if
7886 available.
7887 (breakpoint_hit_ranged_breakpoint): New function.
7888 (resources_needed_ranged_breakpoint): Likewise.
7889 (print_it_ranged_breakpoint): Likewise.
7890 (print_one_ranged_breakpoint): Likewise.
7891 (print_one_detail_ranged_breakpoint): Likewise.
7892 (print_mention_ranged_breakpoint): Likewise.
7893 (print_recreate_ranged_breakpoint): Likewise.
7894 (ranged_breakpoint_ops): New structure.
7895 (find_breakpoint_range_end): New function.
7896 (break_range_command): Likewise.
7897 (delete_breakpoint): Free addr_string_range_end.
7898 (update_breakpoint_locations): Add SALS_END argument. Update
7899 all callers. Calculate breakpoint length if a non-zero SALS_END
7900 is given. Call breakpoint_locations_match instead of
7901 breakpoint_address_match.
7902 (reset_breakpoint): Find SaL of the end of the range if B is a
7903 ranged breakpoint.
7904 (_initialize_breakpoint): Register break-range command.
7905 * defs.h (print_core_address): Add function prototype.
7906 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
7907 function.
7908 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
7909 (ppc_linux_remove_hw_breakpoint): Likewise.
7910 (_initialize_ppc_linux_nat): Initialize
7911 to_ranged_break_num_registers.
7912 * target.c (update_current_target): Add comment about
7913 to_ranged_break_num_registers.
7914 (target_ranged_break_num_registers): New function.
7915 * target.h (struct target_ops) <to_ranged_break_num_registers>:
7916 New method.
7917 (target_ranged_break_num_registers): Add function prototype.
7918 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
7919 * utils.c (print_core_address): ... here.
7920
02d20e4a
UW
79212011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
7922
7923 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
7924 variable compiler warning.
7925
ef23e705
TJB
79262011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
7927
7928 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
7929 code from here ...
7930 (re_set_breakpoint): ... to here ...
7931 (addr_string_to_sals): ... and here.
7932
311e6ab3
PM
79332011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7934
7935 * Makefile.in (SFILES): Add missing C sources.
7936 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
7937 Add missing headers.
7938
acd1d99c
MF
79392011-03-29 Mike Frysinger <vapier@gentoo.org>
7940
7941 * .gitignore: New file.
7942
66ee2731
MF
79432011-03-29 Mike Frysinger <vapier@gentoo.org>
7944
7945 * NEWS: Mention new cfi device simulation.
7946
53832f31
TT
79472011-03-29 Tom Tromey <tromey@redhat.com>
7948
7949 * dwarf2read.c (fixup_partial_die): Handle linkage name on
7950 otherwise anonymous types.
7951 (dwarf2_name): Likewise.
7952 * valops.c (value_struct_elt_for_reference): Refine artificial
7953 type logic. Call error if j==-1.
7954
09b58708
JK
79552011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
7956
7957 Fix false GCC warning.
7958 * infcall.c (find_function_addr): Initialize funaddr.
7959
6023c606
PM
79602011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
7961
7962 Fix mingw compilation with --enable-targets=all.
7963 * remote-mips.c (gdb_usleep.h): Include header.
7964 (mips_enter_debug): Use gdb_usleep instead of sleep.
7965
0e30163f
JK
79662011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7967
7968 Support resolution of STT_GNU_IFUNC via breakpoints.
7969 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
7970 bp_gnu_ifunc_resolver_return.
7971 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
7972 the loop. Support bp_gnu_ifunc_resolver and
7973 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
7974 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
7975 breakpoints.
7976 (bptype_string, print_one_breakpoint_location): Support
7977 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
7978 (user_settable_breakpoint): Return true also for
7979 bp_gnu_ifunc_resolver.
7980 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
7981 bp_gnu_ifunc_resolver_return.
7982 (set_breakpoint_location_function): New parameter explicit_loc,
7983 describe it. Call find_pc_partial_function_gnu_ifunc with new
7984 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
7985 EXPLICIT_LOC is not set.
7986 (set_raw_breakpoint): Set EXPLICIT_LOC for
7987 set_breakpoint_location_function.
7988 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
7989 set_breakpoint_location_function.
7990 (mention): Support bp_gnu_ifunc_resolver and
7991 bp_gnu_ifunc_resolver_return.
7992 (add_location_to_breakpoint): Set EXPLICIT_LOC for
7993 set_breakpoint_location_function.
7994 (update_breakpoint_locations): Remove static.
7995 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
7996 bp_gnu_ifunc_resolver_return.
7997 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
7998 bp_gnu_ifunc_resolver_return.
7999 (update_breakpoint_locations): New declaration.
8000 * elfread.c: Include gdbthread.h and regcache.h.
8001 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
8002 functions.
8003 (elf_gnu_ifunc_fns): Install them.
8004 * minsyms.c (stub_gnu_ifunc_resolver_stop)
8005 (stub_gnu_ifunc_resolver_return_stop): New functions.
8006 (stub_gnu_ifunc_fns): Install them.
8007 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
8008 and gnu_ifunc_resolver_return_stop.
8009 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
8010
07be84bf
JK
80112011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8012
8013 STT_GNU_IFUNC reader implementation.
8014 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
8015 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
8016 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
8017 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
8018 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
8019 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
8020 (elf_gnu_ifunc_resolve_addr): New.
8021 (elf_symfile_read): Call elf_rel_plt_read.
8022 (elf_gnu_ifunc_fns): New.
8023 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
8024 Install elf_gnu_ifunc_fns.
8025 * infcall.c (find_function_return_type): New function.
8026 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
8027 * minsyms.c (stub_gnu_ifunc_resolve_addr)
8028 (stub_gnu_ifunc_resolve_name): New functions.
8029 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
8030 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
8031 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
8032
300f8e10
JK
80332011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8034
8035 Code cleanup for later STT_GNU_IFUNC support.
8036 * infcall.c (find_function_addr): Remove variable code, use explicit
8037 dereferences for it. Move VALUE_TYPE initialization later.
8038
11c81455
JK
80392011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8040
8041 GDB find_pc_partial_function support for STT_GNU_IFUNC.
8042 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
8043 (clear_pc_function_cache): Clear it.
8044 (find_pc_partial_function): Rename to ...
8045 (find_pc_partial_function_gnu_ifunc): ... this function. New
8046 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
8047 (find_pc_partial_function): New wrapper for this function.
8048 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
8049
0875794a
JK
80502011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8051
8052 GDB internal type support for STT_GNU_IFUNC.
8053 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
8054 (elf_symtab_read): Set mst_text_gnu_ifunc for
8055 BSF_GNU_INDIRECT_FUNCTION.
8056 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
8057 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
8058 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
8059 nodebug_got_plt_symbol.
8060 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
8061 (TYPE_GNU_IFUNC): New.
8062 (struct main_type): New field flag_gnu_ifunc.
8063 (struct builtin_type): New field builtin_func_func.
8064 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
8065 nodebug_got_plt_symbol.
8066 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
8067 (in_gnu_ifunc_stub): New.
8068 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
8069 mst_text_gnu_ifunc.
8070 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
8071 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
8072 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
8073 in_gnu_ifunc_stub.
8074 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
8075 * symtab.c (search_symbols): Likewise.
8076 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
8077 and mst_slot_got_plt.
8078 (in_gnu_ifunc_stub): New declaration.
8079
d0fb5eae
JK
80802011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8081
8082 Support a ring of related breakpoints.
8083 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
8084 other functions, add gdb_assert.
8085 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
8086 watchpoint_del_at_next_stop.
8087 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
8088 (bpstat_stop_status): Handle ring in related_breakpoint.
8089 (set_raw_breakpoint_without_location): Initialize ring in
8090 related_breakpoint.
8091 (delete_breakpoint): Handle ring in related_breakpoint, use
8092 watchpoint_del_at_next_stop.
8093 (map_breakpoint_numbers): Handle ring in related_breakpoint.
8094
9cded63f
TT
80952011-03-28 Tom Tromey <tromey@redhat.com>
8096
8097 PR symtab/12441:
8098 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
8099 with `language_minimal'.
8100
467d42c4
UW
81012011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
8102
8103 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
8104 instead of checking for STT_ARM_TFUNC symbol type.
8105
62853458
TT
81062011-03-25 Tom Tromey <tromey@redhat.com>
8107
8108 * linespec.c (symbol_found): Restore line-based result for
8109 non-LOC_LABEL symbols.
8110
a7417d46
KT
81112011-03-25 Kai Tietz <ktietz@redhat.com>
8112
8113 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
8114 instead of strcmp for comparison.
8115 (tui_source_is_displayed): Likewise.
8116 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
8117
55f1336d
TT
81182011-03-24 Mark Wielaard <mjw@redhat.com>
8119
f33edef8
PP
8120 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
8121 complaint.
8122 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8123 (find_partial_die_in_comp_unit): Likewise in comment.
8124 (read_attribute_value): Likewise.
8125 (lookup_die_type): Likewise.
8126 (dwarf_form_name): Likewise.
8127 (dump_die_shallow): Likewise.
8128 (follow_die_ref_or_sig): Likewise.
55f1336d 8129
9ef07c8c
TT
81302011-03-24 Tom Tromey <tromey@redhat.com>
8131
8132 PR breakpoints/11816:
8133 * linespec.c (decode_line_1): Parse `function:label' linespecs.
8134 (decode_compound): Update.
8135 (find_function_symbol): New function.
8136 (decode_dollar): Update.
8137 (decode_label): Add 'function_symbol' parameter. Handle
8138 function-relative labels.
8139 (decode_variable): Update.
8140 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
8141 not its line. Set `special_display' and canonical name for
8142 labels.
8143
56435ebe
TT
81442011-03-24 Tom Tromey <tromey@redhat.com>
8145
8146 * linespec.h (struct linespec_result) <special_display>: New
8147 field.
8148 * breakpoint.h (struct breakpoint) <display_canonical>: New
8149 field.
8150 * breakpoint.c (print_breakpoint_location): Respect
8151 display_canonical.
8152 (create_breakpoint_sal): Add 'display_canonical' parameter.
8153 (create_breakpoints_sal): Update.
8154 (create_breakpoint): Update.
8155
7efd8fc2
TT
81562011-03-24 Tom Tromey <tromey@redhat.com>
8157
8158 * symtab.c (decode_line_spec): Update.
8159 * linespec.c (build_canonical_line_spec): Change type of
8160 'canonical'.
8161 (decode_line_2, decode_line_1, decode_objc, decode_compound)
8162 (find_method, decode_all_digits, decode_dollar, decode_label)
8163 (symbol_found): Likewise.
8164 (init_linespec_result): New function.
8165 * breakpoint.c (struct captured_parse_breakpoint_args)
8166 <canonical_p>: New field, replaces addr_string_p.
8167 (create_breakpoints_sal): Add 'canonical' parameter, replacing
8168 'addr_string'.
8169 (parse_breakpoint_sals): Likewise.
8170 (do_captured_parse_breakpoint): Update.
8171 (create_breakpoint): Use struct linespec_result.
8172 (until_break_command): Update.
8173 (breakpoint_re_set_one): Update.
8174 (decode_line_spec_1): Update.
8175 * linespec.h (struct linespec_result): New.
8176 (init_linespec_result): Declare.
8177
788c8b10
PA
81782011-03-23 Pedro Alves <pedro@codesourcery.com>
8179
8180 * regcache.c (regcache_raw_read): If the target didn't supply a
8181 given raw register, mark it as unavailable.
8182
0ba1096a
KT
81832011-03-23 Kai Tietz <ktietz@redhat.com>
8184
8185 * breakpoint.c (clear_command): Use filename_cmp
8186 instead of strcmp for comparison.
8187 * buildsym.c (watch_main_source_file_lossage): Likewise.
8188 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
8189 checking just for slash.
8190 * dbxread.c (read_dbx_symtab): Use lbasename instead of
8191 strrchr and filename_cmp instead of strcmp for filenames.
8192 (add_old_header_file): Use filename_cmp
8193 instead of strcmp for comparison.
8194 * exec.c (exec_set_section_address): Likewise.
8195 * macrotab.c (macro_lookup_inclusion): Likewise.
8196 (macro_lookup_inclusion): Likewise.
8197 * elfread.c (_initialize_elfread): Likewise.
8198 (elfstab_offset_sections): Likewise.
8199 (elfstab_offset_sections): Use lbasename instead of
8200 strrchr.
8201 * mdebugread.c (parse_partial_symbols): Likewise.
8202 (arse_partial_symbols): Use filename_(n)cmp instead of
8203 str(n)cmp for comparison.
8204 * minsyms.c (lookup_minimal_symbol): Likewise.
8205 * psymtab.c (read_psymtabs_with_filename): Likewise.
8206 * solib.c (solib_read_symbols): Likewise.
8207 (reload_shared_libraries_1): Likewise.
8208 * symmisc.c (maintenance_print_symbols): Likewise.
8209 * symfile.c (separate_debug_file_exists): Likewise.
8210 (reread_symbols): Likewise.
8211 (find_separate_debug_file_by_debuglink): Likewise.
8212 * remote-fileio.c (remote_fileio_func_rename): Likewise.
8213 * source.c (add_path): Likewise.
8214 * symtab.c (filename_seen): Likewise.
8215 (file_matches): Likewise.
8216 (print_symbol_info): Likewise.
8217 (maybe_add_partial_symtab_filename): Likewise.
8218 (make_source_files_completion_list): Likewise.
8219 * xml-syscall.c (init_sysinfo): Likewise.
8220 * windows-nat.c (_initialize_check_for_gdb_ini): Use
8221 IS_DIR_SEPARATOR for checking for trailing path separator.
8222
dd90784c
JK
82232011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8224
8225 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
8226 label abort_expression.
8227 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
8228 DWARF_VALUE_OPTIMIZED_OUT.
8229
3167638f
JK
82302011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8231
8232 Code cleanup.
8233 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
8234 to linkage_name. Invert its value. Update the function comment.
8235 (c_type_print_varspec_suffix): Invert it at the caller.
8236 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
8237
ce406537
PA
82382011-03-22 Pedro Alves <pedro@codesourcery.com>
8239
8240 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
8241 errors when reading the `stop_pc'.
8242 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
8243 get_frame_pc.
8244
da5d4055
PM
82452011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8246
8247 * NEWS: Document gdb.Write stream keyword.
8248
29e0eb9c
JK
82492011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
8250
8251 Revert:
8252 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8253 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8254 (dwarf2_add_field): Fix new_field->accessibility for
8255 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8256
05775840
PM
82572011-03-22 Phil Muldoon <pmuldoon@redhat.com>
8258
f33edef8 8259 PR python/12183
05775840
PM
8260
8261 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
8262 other error classes. Do not print stack trace.
8263
a0cb7835
JK
82642011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
8267 (dwarf2_add_field): Fix new_field->accessibility for
8268 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
8269
d19f7eee
UW
82702011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
8271
8272 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
8273 encountering a load via a non-SP register.
8274
4a2fbb50
UW
82752011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
8276
8277 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
8278 field in returned unwinder.
8279
3489610d
JB
82802012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8281
8282 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
8283
8c1a34e7
JB
82842012-03-21 Joel Brobecker <brobecker@adacore.com>
8285
8286 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
8287 of xmalloc.
8288
8fbca658
PA
82892012-03-18 Pedro Alves <pedro@codesourcery.com>
8290
8291 * frame.c (frame_unwind_register): Throw an error if unwinding the
8292 register failed.
8293 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
8294 an unwind stop reason.
8295 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
8296 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
8297 UNWIND_UNAVAILABLE>: New.
8298 * inline-frame.c (inline_frame_unwind): Install
8299 default_frame_unwind_stop_reason.
8300 * frame-unwind.c: Include "exceptions.h".
8301 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
8302 (default_frame_unwind_stop_reason): New.
8303 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
8304 (default_frame_unwind_stop_reason): Declare.
8305 (struct frame_unwind) <stop_reason>: New function pointer.
8306
8307 * dummy-frame.c: Install default_frame_unwind_stop_reason.
8308 * dwarf2-frame.c: Include exceptions.h.
8309 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
8310 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
8311 computing the CFA. If such an error was thrown, set
8312 unavailable_retaddr.
8313 (dwarf2_frame_unwind_stop_reason): New.
8314 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
8315 unavailable.
8316 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
8317 (dwarf2_signal_frame_unwind): Ditto.
8318
8319 * amd64-tdep.c: Include "exceptions.h".
8320 (struct amd64_frame_cache): New field "base_p".
8321 (amd64_init_frame_cache): Clear it.
8322 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
8323 Avoid reading registers with functions that throw if the register
8324 is not necessary to compute the frame base.
8325 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8326 swallowing NOT_AVAILABLE_ERROR.
8327 (amd64_frame_unwind_stop_reason): New.
8328 (amd64_frame_this_id): Don't build a frame id if the frame base
8329 was unavailable.
8330 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
8331 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8332 base_p if the frame base was computable.
8333 (amd64_sigtramp_frame_unwind_stop_reason): New.
8334 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
8335 frame base was unavailable.
8336 (amd64_sigtramp_frame_unwind): Install
8337 amd64_sigtramp_frame_unwind_stop_reason.
8338 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8339 base_p if the frame base was computable.
8340 (amd64_epilogue_frame_unwind_stop_reason): New.
8341 (amd64_epilogue_frame_this_id): Don't build a frame id if the
8342 frame base was unavailable.
8343 (amd64_epilogue_frame_unwind): Install
8344 amd64_epilogue_frame_unwind_stop_reason.
8345 * i386-tdep.c: Include "exceptions.h".
8346 (struct i386_frame_cache): New field "base_p".
8347 (i386_init_frame_cache): Clear it.
8348 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
8349 Avoid reading registers with functions that throw if the register
8350 is not necessary to compute the frame base.
8351 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
8352 swallowing NOT_AVAILABLE_ERROR.
8353 (i386_frame_unwind_stop_reason): New.
8354 (i386_frame_this_id): Don't build a frame id if the frame base was
8355 unavailable.
8356 (i386_frame_prev_register): Handle unavailable SP.
8357 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
8358 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8359 base_p if the frame base was computable.
8360 (i386_epilogue_frame_unwind_stop_reason): New.
8361 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
8362 base was unavailable.
8363 (i386_epilogue_frame_unwind): Install
8364 i386_epilogue_frame_unwind_stop_reason.
8365 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
8366 base_p if the frame base was computable.
8367 (i386_sigtramp_frame_unwind_stop_reason): New.
8368 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
8369 base was unavailable.
8370 (i386_sigtramp_frame_unwind): Install
8371 i386_sigtramp_frame_unwind_stop_reason.
8372 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
8373 type's size, not the register's.
8374 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
8375
8376 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
8377 default_frame_unwind_stop_reason.
8378 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
8379 (alpha_heuristic_frame_unwind): Ditto.
8380 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
8381 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
8382 * avr-tdep.c (avr_frame_unwind): Ditto.
8383 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
8384 Ditto.
8385 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
8386 * frv-tdep.c (frv_frame_unwind): Ditto.
8387 * h8300-tdep.c (h8300_frame_unwind): Ditto.
8388 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
8389 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
8390 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
8391 (hppa_stub_frame_unwind): Ditto.
8392 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
8393 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
8394 (ia64_libunwind_frame_unwind)
8395 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
8396 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
8397 * lm32-tdep.c (lm32_frame_unwind): Ditto.
8398 * m32c-tdep.c (m32c_unwind): Ditto.
8399 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
8400 * m32r-tdep.c (m32r_frame_unwind): Ditto.
8401 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
8402 * m68k-tdep.c (m68k_frame_unwind): Ditto.
8403 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
8404 * m88k-tdep.c (m88k_frame_unwind): Ditto.
8405 * mep-tdep.c (mep_frame_unwind): Ditto.
8406 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
8407 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
8408 (mips_stub_frame_unwind): Ditto.
8409 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
8410 * moxie-tdep.c (moxie_frame_unwind): Ditto.
8411 * mt-tdep.c (mt_frame_unwind): Ditto.
8412 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
8413 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
8414 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
8415 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
8416 (s390_sigtramp_frame_unwind): Ditto.
8417 * score-tdep.c (score_prologue_unwind): Ditto.
8418 * sh-tdep.c (sh_frame_unwind): Ditto.
8419 * sh64-tdep.c (sh64_frame_unwind): Ditto.
8420 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
8421 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
8422 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
8423 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
8424 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
8425 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
8426 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
8427 (sparc64obsd_trapframe_unwind): Ditto.
8428 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
8429 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
8430 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
8431 * v850-tdep.c (v850_frame_unwind): Ditto.
8432 * vax-tdep.c (vax_frame_unwind): Ditto.
8433 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
8434 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
8435 * xtensa-tdep.c (xtensa_unwind): Ditto.
8436
f23d1b92
PA
84372011-03-18 Pedro Alves <pedro@codesourcery.com>
8438
8439 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
8440 there's always a frame. Use get_frame_pc_if_available instead of
8441 get_frame_pc, and if there's no PC available, don't look up a
8442 symtab.
8443
1d4f5741
PA
84442011-03-18 Pedro Alves <pedro@codesourcery.com>
8445
8446 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
8447 unavailable PC.
8448
dba09041
PA
84492011-03-18 Pedro Alves <pedro@codesourcery.com>
8450
8451 * tracepoint.c (set_traceframe_context): Handle unavailable PC
8452 gracefully.
8453
9a26e44c
PA
84542011-03-18 Pedro Alves <pedro@codesourcery.com>
8455
8456 * frame.h (frame_unwind_caller_pc_if_available): Declare.
8457 * frame.c (frame_unwind_caller_pc_if_available): New.
8458 * stack.c (frame_info): Handle unavailable PC.
8459
84602011-03-18 Pedro Alves <pedro@codesourcery.com>
8461
8462 * frame.c (frame_unwind_pc): Rename to ...
8463 (frame_unwind_pc_if_available): ... this. New `pc' output
8464 parameter. Change return type to int. Gracefully handle
8465 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
8466 happened, or 1 otherwise.
8467 (frame_unwind_pc): Reimplement on top of
8468 frame_unwind_pc_if_available.
8469 (get_frame_func): Rename to ...
8470 (get_frame_func_if_available): New `pc' output parameter. Change
8471 return type to int. Gracefully handle the PC not being available.
8472 (get_frame_func): Reimplement on top of
8473 get_frame_func_if_available.
8474 (select_frame): Handle the PC being unavailable.
8475 (get_prev_frame): Handle the PC being unavailable.
8476 (get_frame_pc_if_available): New.
8477 (get_frame_address_in_block_if_available): New.
8478 (find_frame_sal): Handle the frame PC not being available.
8479 * frame.h (get_frame_pc_if_available): Declare.
8480 (get_frame_address_in_block_if_available): Declare.
8481 (get_frame_func_if_available): Declare.
8482 * stack.c (print_frame_info): Handle the PC being unavailable.
8483 (find_frame_funname): Ditto.
8484 (print_frame): Handle the PC being unavailable.
8485 (get_frame_language): Ditto.
8486 * blockframe.c (get_frame_block): Ditto.
8487 * macroscope.c (default_macro_scope): Ditto.
8488 * tui/tui-stack.c (tui_show_frame_info): Ditto.
8489
84902011-03-18 Pedro Alves <pedro@codesourcery.com>
8491
8492 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
8493 NOT_AVAILABLE_ERROR when evaluating the location expression.
8494
84952011-03-18 Pedro Alves <pedro@codesourcery.com>
8496
8497 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
8498 returning that the register piece is unavailable/optimized out.
8499 (write_pieced_value): Handle get_frame_register_bytes returning
8500 that the register piece is unavailable/optimized out when doing a
8501 read-modify write of a bitfield.
8502 * findvar.c (value_from_register): Handle get_frame_register_bytes
8503 returning that the register piece is unavailable/optimized out.
8504 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
8505 and `unavailablep'. Throw error on bad debug info. Use
8506 frame_register instead of frame_register_read, to fill in the new
8507 arguments.
8508 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
8509 and `unavailablep'.
8510 * valops.c: (value_assign): Adjust, and handle
8511 get_frame_register_bytes failing.
8512 * spu-tdep.c: Include exceptions.h.
8513 (spu_software_single_step): Adjust, and handle
8514 get_frame_register_bytes failing.
8515 (spu_get_longjmp_target): Ditto.
8516 * gdbarch.sh (register_to_value): Change to return int. New
8517 parameters `optimizedp' and `unavailablep'.
8518 * gdbarch.h, gdbarch.c: Regenerate.
8519 * i386-tdep.c (i386_register_to_value): Adjust to new
8520 gdbarch_register_to_value interface.
8521 * i387-tdep.c (i387_register_to_value): Ditto.
8522 * i387-tdep.h (i387_register_to_value): Ditto.
8523 * alpha-tdep.c (alpha_register_to_value): Ditto.
8524 * ia64-tdep.c (ia64_register_to_value): Ditto.
8525 * m68k-tdep.c (m68k_register_to_value): Ditto.
8526 * mips-tdep.c (mips_register_to_value): Ditto.
8527 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
8528
0fdb4f18
PA
85292011-03-18 Pedro Alves <pedro@codesourcery.com>
8530
8531 * findvar.c (value_of_register): Mark the value as unavailable, if
8532 the register is unavailable.
8533 * frame.h (frame_register_unwind): New `unavailablep' parameter.
8534 (frame_register): New `unavailablep' parameter.
8535 (frame_register_read): Update comment.
8536 * frame.c (frame_register_unwind): New `unavailablep' parameter.
8537 Set it if the register is unavailable. If the register is
8538 unavailable, clear the output buffer.
8539 (frame_register): New `unavailablep' parameter. Pass it down.
8540 (frame_unwind_register): Adjust.
8541 (put_frame_register): Adjust.
8542 (frame_register_read): Adjust. Also return false if the register
8543 is not available.
8544 (frame_register_unwind_location): Adjust.
8545 * sentinel-frame.c (sentinel_frame_prev_register): If the register
8546 is unavailable, mark the value accordingly.
8547 * stack.c (frame_info): Handle unavailable registers.
8548
e69aa73e
PA
85492011-03-18 Pedro Alves <pedro@codesourcery.com>
8550
8551 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
8552 simplify, using regcache_cooked_read.
8553
05d1431c
PA
85542011-03-18 Pedro Alves <pedro@codesourcery.com>
8555
8556 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
8557 (regcache_raw_read_unsigned, regcache_raw_read_signed)
8558 (regcache_raw_read_unsigned, regcache_raw_read_part)
8559 (regcache_cooked_read, regcache_cooked_read_signed)
8560 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
8561 (regcache_cooked_read_ftype): Change return to enum
8562 register_status.
8563 * regcache.c: Include exceptions.h
8564 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
8565 (do_cooked_read): Change return to enum register_status. Always
8566 forward to regcache_cooked_read.
8567 (regcache_raw_read): Change return to enum register_status. If
8568 the register is not REG_VALID, memset the buffer. Return the
8569 register's status.
8570 (regcache_raw_read_signed): Handle non-REG_VALID registers and
8571 return the register's status.
8572 (regcache_raw_read_unsigned): Ditto.
8573 (regcache_cooked_read): Change return to enum register_status.
8574 Assert that with read-only regcaches, the register's status must
8575 be known. If the regcache is read-only, and the register is not
8576 REG_VALID, memset the buffer. Return the register's status.
8577 (regcache_cooked_read_signed): Change return to enum
8578 register_status. Handle non-REG_VALID registers and return the
8579 register's status.
8580 (regcache_cooked_read_unsigned): Change return to enum
8581 register_status. Handle non-REG_VALID registers and return the
8582 register's status.
8583 (regcache_xfer_part, regcache_raw_read_part)
8584 (regcache_cooked_read_part): Change return to enum
8585 register_status. Return the register's status.
8586 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
8587 unavailable.
8588 (regcache_dump): Handle unavailable cooked registers.
8589 * frame.c (do_frame_register_read): Adjust interface to match
8590 regcache_cooked_read_ftype.
8591 * gdbarch.sh (pseudo_register_read): Change return to enum
8592 register_status.
8593 * gdbarch.h, gdbarch.c: Regenerate.
8594
8595 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
8596 register_status.
8597 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
8598 register_status. If reading a raw register indicates the raw
8599 register is not valid, return the raw register's status,
8600 otherwise, return REG_VALID.
8601 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
8602 register_status. Handle non-REG_VALID raw registers and return
8603 the register's status.
8604 * arm-tdep.c (arm_neon_quad_read)
8605 (arm_pseudo_read): Change return to enum register_status. Handle
8606 non-REG_VALID raw registers and return the register's status.
8607 * avr-tdep.c (avr_pseudo_register_read): Ditto.
8608 * frv-tdep.c (frv_pseudo_register_read): Ditto.
8609 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
8610 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
8611 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
8612 register_status.
8613 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
8614 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
8615 (m32c_part_write, m32c_cat_read, m32c_cat_write)
8616 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
8617 (m32c_pseudo_register_read): Change return to enum
8618 register_status. Adjust.
8619 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
8620 enum register_status. Return the register's status.
8621 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
8622 register_status. Return the register's status.
8623 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
8624 * mips-tdep.c (mips_pseudo_register_read): Ditto.
8625 * mt-tdep.c (mt_pseudo_register_read): Ditto.
8626 * rs6000-tdep.c (move_ev_register_func): New typedef.
8627 (e500_move_ev_register): Use it. Change return to enum
8628 register_status. Return the register's status.
8629 (do_regcache_raw_read): New function.
8630 (do_regcache_raw_write): New function.
8631 (e500_pseudo_register_read): Change return to enum
8632 register_status. Return the register's status. Use
8633 do_regcache_raw_read.
8634 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
8635 (dfp_pseudo_register_read): Change return to enum register_status.
8636 Return the register's status.
8637 (vsx_pseudo_register_read): Ditto.
8638 (efpr_pseudo_register_read): Ditto.
8639 (rs6000_pseudo_register_read): Ditto.
8640 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
8641 register_status. Return the register's status.
8642 * sh64-tdep.c (pseudo_register_read_portions): New function.
8643 (sh64_pseudo_register_read): Change return to enum
8644 register_status. Use pseudo_register_read_portions. Return the
8645 register's status.
8646 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
8647 register_status. Return the register's status.
8648 * sh-tdep.c (pseudo_register_read_portions): New function.
8649 (sh_pseudo_register_read): Change return to enum register_status.
8650 Use pseudo_register_read_portions. Return the register's status.
8651 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
8652 enum register_status. Return the register's status.
8653 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
8654 * spu-tdep.c (spu_pseudo_register_read_spu)
8655 (spu_pseudo_register_read): Ditto.
8656 * xtensa-tdep.c (xtensa_register_read_masked)
8657 (xtensa_pseudo_register_read): Ditto.
8658 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
8659
e10abd8f
PM
86602011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8661
8662 * python/py-value.c (valpy_getitem): Fix formatting of error function
8663 call.
8664
7ea6d463
PM
86652011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8666
8667 ARI fixes: Add missing internationalization markups throughout
8668 C source files.
8669 * darwin-nat-info.c: Ditto.
8670 * record.c: Ditto.
8671 * remote.c: Ditto.
8672 * mi/mi-main.c: Ditto.
8673
001083c6
PM
86742011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8675
8676 ARI fixes: Add missing internationalization markups throughout
8677 yacc files.
8678 * c-exp.y: Ditto.
8679 * cp-name-parser.y: Ditto.
8680 * f-exp.y: Ditto.
8681 * m2-exp.y: Ditto.
8682 * objc-exp.y: Ditto.
8683 * p-exp.y: Ditto.
8684
4f1cdeec
PM
86852011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8686
8687 ARI fixes: Messages should have no trailing new lines.
8688 * darwin-nat.c (mach_check_error): Remove trailing new line from
8689 warning function call message.
8690 * record.c (bfdcore_read): Idem for error call.
8691
28e698f1
PM
86922011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
8693
8694 * common/signals.c (target_signal_from_host): Add _ markup to error
8695 function call message.
8696 (target_signal_to_host): Add _ markup and remove trailing new line
8697 from warning call message.
8698 (target_signal_from_command): Add _ markup to error function call
8699 message.
8700
99c3dc11
PM
87012011-03-18 Phil Muldoon <pmuldoon@redhat.com>
8702
f33edef8 8703 PR python/12149
99c3dc11
PM
8704
8705 * python/python.c (gdbpy_write): Accept a stream argument and
8706 operate to the appropriate stream.
8707 (gdbpy_flush): Likewise.
8708 (_initialize_python): Add stream constants.
8709 (finish_python_initialization): Add GdbOutputErrorFile class.
8710
c20800be
KY
87112011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8712
8713 * MAINTAINERS: Add myself as a write-after-approval maintainer.
8714
f4a1794a
KY
87152011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
8716
8717 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
8718 to store_signed_integer. Add debug message when relocating CALL
8719 instructions. Fix formatting of debug message.
8720 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 8721
d4862372
JB
87222011-03-17 Joel Brobecker <brobecker@gnat.com>
8723
8724 * target.h (struct target_ops): Remove to_lookup_symbol field.
8725 (target_lookup_symbol): Delete macro.
8726 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
8727 (update_current_target, setup_target_debug): Remove handling
8728 of to_lookup_symbol target_ops field.
8729 * ada-tasks.c (get_known_tasks_addr): Remove use of
8730 target_lookup_symbol.
8731 * coffread.c (coff_symtab_read): Likewise.
8732 * dbxread.c (read_dbx_symtab): Ditto.
8733
d645e32e
JB
87342011-03-17 Joel Brobecker <brobecker@gnat.com>
8735
8736 PR gdb/12116:
8737 * configure.ac: Add getthrds declaration check.
8738 * configure, config.in: Regenerate.
8739 * aix-thread.c (getthrds): Declare only if not already declared
8740 in procinfo.h. More declaration out of get_signaled_thread to
8741 global scope.
8742
29703da4
PM
87432011-03-17 Phil Muldoon <pmuldoon@redhat.com>
8744
8745 * python/py-symtab.c: Populate symtab_object_methods,
8746 sal_object_methods.
8747 (stpy_is_valid): New function.
8748 (salpy_is_valid): Ditto.
8749 * python/py-symbol.c: Declare symbol_object_methods. Populate.
8750 (sympy_is_valid): New function.
8751 * python/py-objfile.c: Declare objfile_object_methods. Populate.
8752 (objfpy_is_valid): New function.
8753 * python/py-inferior.c: Populate inferior_object_methods.
8754 (infpy_is_valid): New function.
8755 * python/py-infthread.c: Populate thread_object_methods.
8756 (thpy_is_valid): New function.
8757 * python/py-block.c: Declare block_object_methods. Populate. Declare
8758 block_iterator_object_methods. Populate.
8759 (blpy_is_valid): New function.
8760 (blpy_iter_is_valid): Ditto.
8761
c00f8484
KS
87622011-03-16 Keith Seitz <keiths@redhat.com>
8763
8764 * linespec.c (find_methods): Canonicalize NAME before looking
8765 up the symbol.
8766 (name_end): New function.
8767 (keep_name_info): New function.
8768 (decode_line_1): Use keep_name_info.
8769 (decode_compound): Likewise.
8770 * cli/cli-utils.h (remove_trailing_whitespace): New function.
8771 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
8772
8773 PR c++/12273
8774 * linespec.c (locate_first_half): Keep overload information, too.
8775 (decode_compound): Use a string to represent break characters
8776 to escape the loop.
8777 If P points to a break character, do not increment it.
8778 For C++ and Java, keep overload information and relevant keywords.
8779 If we cannot find a symbol, search the minimal symbols.
8780
8781 PR c++/11734
8782 * linespec.c (decode_compound): Rename SAVED_ARG to
8783 THE_REAL_SAVED_ARG.
8784 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
8785 single-quotes.
8786 Pass a valid block to lookup_symbol.
8787 (lookup_prefix_sym): Likewise.
8788 (find_method): Construct search name based on SYM_CLASS instead
8789 of SAVED_ARG.
8790 * psymtab.c (lookup_partial_symbol): Add language parameter.
8791 (lookup_symbol_aux_psymtabs): Likewise.
8792 Don't assume that the psymtab we found was the right one. Search
8793 for the desired symbol in the symtab to be certain.
8794 (psymtab_search_name): New function.
8795 (lookup_partial_symbol): Use psymtab_search_name.
8796 Add language parameter.
8797 (read_symtabs_for_function): Add language parameter and pass to
8798 lookup_partial_symbol.
8799 (find_symbol_file_from_partial): Likewise.
8800
c91513d8
PP
88012011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
8802
8803 PR gdb/12528
8804 * dwarf2read.c (noop_record_line): New function.
8805 (dwarf_decode_lines): Ignore line tables for GCd functions.
8806
b37520b6
PM
88072011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8808
8809 Fix ARI warnings about new lines at the end of messages, which
8810 are unneeded as there is a new line added at the end of the message
8811 automatically.
8812 * darwin-nat.c (darwin_stop_inferior): Ditto.
8813 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
8814 * dfp.c (decimal_to_number): Ditto.
8815 * exec.c (print_section_info): Ditto.
8816 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
8817 * osdata.c (get_osdata): Ditto.
8818 * record.c (bfdcore_write): Ditto.
8819 * remote-mips.c (mips_readchar): Ditto.
8820 * remote.c (read_ptid): Ditto.
8821 * ser-mingw.c (ser_windows_raw): Ditto.
8822 * tracepoint.c (add_local_symbols): Ditto.
8823 * windows-nat.c (fake_create_process): Ditto.
8824
b08ee6a2
TT
88252011-03-16 Tom Tromey <tromey@redhat.com>
8826
8827 * tracepoint.c (stop_tracing): Don't declare.
8828 * event-top.c (after_char_processing_hook): Add `(void)'.
8829
9a6f1302
PM
88302011-03-16 Phil Muldoon <pmuldoon@redhat.com>
8831
8832 * NEWS: Add Parameter sub-classing description.
8833
7ceb86b1
KT
88342011-03-16 Kai Tietz <ktietz@redhat.com>
8835
8836 * MAINTAINERS: Update my e-mail address.
8837
efeff6cf
AT
88382011-03-15 Andreas Tobler <andreast@fgznet.ch>
8839
8840 * MAINTAINERS: Add myself for write after approval privileges.
8841
681c238c
MS
88422011-03-15 Michael Snyder <msnyder@vmware.com>
8843
f3df5b08
MS
8844 * frame.c (find_frame_sal): Assert sym is not null.
8845
13f6513c
MS
8846 * dbxread.c (process_one_symbol): Assert 'name' is not null.
8847
50412521
MS
8848 * objc-lang.c (selectors_info): Check strchr for null result.
8849
681c238c
MS
8850 * stabsread.c (define_symbol): Guard against bad stabstring input.
8851
6ced1581
PM
88522011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8853
8854 Remove trailing spaces and tabulations from pascal language
8855 support sources.
8856 p-exp.y: Ditto.
8857 p-lang.c: Ditto.
8858 p-lang.h: Ditto.
8859 p-valprint.c: Ditto.
8860
9373cf26
JK
88612011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8862
8863 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
8864 than LOW. Comment it.
8865 (read_partial_die): Call complaint for inappropriate zero LOWPC or
8866 HIGHPC not strictly higher than LOWPC.
8867
9a1edae6
PM
88682011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
8869
8870 Fix formatting of function declarations returning a pointer in
8871 previous commit.
8872 * varobj.c (varobj_add_child): Ditto.
8873 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
8874 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
8875
24e9cda0
UW
88762011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
8877
8878 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
8879 for the "generic" vector ABI used with GCC 4.3 and later.
8880 (ppc64_sysv_abi_return_value): Likewise.
8881
88822011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
8883
8884 * infcall.c (call_function_by_hand): Function return value is
8885 always a non_lval, even when using struct_return.
8886
c9174737
PA
88872011-03-15 Pedro Alves <pedro@codesourcery.com>
8888
8889 * printcmd.c (ALL_DISPLAYS_SAFE): New.
8890 (map_display_numbers): New.
8891 (do_delete_display): New.
8892 (undisplay_command): Use map_display_numbers.
8893 (do_enable_disable_display): New.
8894 (enable_disable_display_command): New function.
8895 (enable_display): Delete.
8896 (enable_display_command): New.
8897 (disable_display_command): Reimplement.
8898 (_initialize_printcmd): Adjust "enable display" command to use
8899 `enable_display_command' as callback.
8900
350c6c65
PM
89012011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8902
8903 * NEWS: Add Python breakpoint 'stop' operation.
8904
824446ad
PM
89052011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8906
8907 * NEWS: Delete duplicate entry. Fix typo.
8908
2021ad3a
PM
89092011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8910
8911 Fix ARI warning about function names in first column.
8912 Put prototype declaration on same line as return type.
8913 * objc-exp.y: Ditto.
8914 * p-exp.y: Ditto.
8915 * python/py-stopevent.h: Ditto.
8916 For long function names, split parameters to
8917 allow function name on same line as return type.
8918 * solib-pa64.c: Ditto.
8919 * varobj.c: Ditto.
8920 * varobj.h: Ditto.
8921 For long function declaration, use single line.
8922 * hppa-tdep.h: Ditto.
8923 * inferior.h: Ditto.
8924
7371cf6d
PM
89252011-03-14 Phil Muldoon <pmuldoon@redhat.com>
8926
8927 * python/python.h: Declare gdbpy_should_stop and
8928 gdbpy_breakpoint_has_py_cond.
8929 * python/python.c: Add python.h to includes. Remove python.h from
8930 HAVE_PYTHON definition
8931 (gdbpy_should_stop): New dummy function.
8932 (gdbpy_breakpoint_has_py_cond): New dummy function.
8933 * python/py-breakpoint.c (bppy_init): Rewrite to allow
8934 sub-classing capabilities.
8935 (gdbpy_should_stop): New function.
8936 (gdbpy_breakpoint_has_py_cond): New function.
8937 (local_setattro): New function.
8938 * breakpoint.c (condition_command): Add check for Python 'stop'
8939 operation.
8940 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
8941 operation function as part of stop/continue tests.
8942
37b50a69
TT
89432011-03-14 Tom Tromey <tromey@redhat.com>
8944
8945 PR gdb/12576:
8946 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
8947 (needs_frame_dwarf_call): Likewise.
8948
eeae04df
PM
89492011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
8950
8951 Fix ARI warning about functions without parameters that do not
8952 use (void).
8953 * breakpoint.c (all_tracepoints): Replace () by (void).
8954 * f-exp.y (match_string_literal): Ditto.
8955 (yylex): Ditto.
8956 * m2-exp.y (yylex): Ditto.
8957 * mep-tdep.c (current_me_module): Ditto.
8958 (current_options): Ditto.
8959 (current_cop_data_bus_width): Ditto.
8960 (current_cr_names): Ditto.
8961 (current_cr_is_float): Ditto.
8962 (current_ccr_names): Ditto.
8963 * objc-exp.y (yylex): Ditto.
8964 * p-exp.y (yylex): Ditto.
8965 * remote.c (send_interrupt_sequence): Ditto.
8966 * tracepoint.c (current_trace_status): Ditto.
8967 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
8968 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
8969
6dc3565d
MS
89702011-03-11 Michael Snyder <msnyder@vmware.com>
8971
1427fe5e
MS
8972 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
8973 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
8974 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
8975 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
8976 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
8977
60bc018f
MS
8978 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
8979 (delete_async_event_handler): Ditto.
8980
f3be5b64
MS
8981 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
8982
4c2d5724
MS
8983 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
8984
6dc3565d
MS
8985 * top.c (set_verbose): Assert showcmd was found.
8986
4e6ca6d5
MG
89872011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
8988
8989 * xtensa-tdep.c (warning_once): Correct style issues.
8990
815a83e4
YQ
89912011-03-11 Yao Qi <yao@codesourcery.com>
8992
8993 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
8994
f2eb0bc8
AS
89952011-03-11 Andreas Schwab <schwab@redhat.com>
8996
8997 * common/aclocal.m4: Remove.
8998
b801de47
MG
89992011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9000
9001 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
9002 (xtensa_write_register, xtensa_read_register): Likewise.
9003 (xtensa_hextochar): Removed.
9004 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
9005
dbab50de
MG
90062011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
9007
9008 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 9009 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
9010 (xtensa_alloc_frame_cache): Add initialization for new fields.
9011 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
9012 (warning_once): New function.
9013 (xtensa_insn_kind): New item c0opc_and.
9014 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
9015 (call0_track_op): Change arguments. New local variable litbase.
9016 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
9017 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
9018 in the prologue.
dbab50de 9019 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 9020 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
9021 Add the variety of updates to handle extended prologues, which now can
9022 conduct dynamic stack adjustments.
9023 (call0_frame_cache): Likewise.
9024 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
9025 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
9026
b2c04452
MS
90272011-03-10 Michael Snyder <msnyder@vmware.com>
9028
f8f67713
MS
9029 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
9030 (cmd_qtframe): Ditto.
9031 (cmd_qtbuffer): Ditto.
9032 (cmd_bigqtbuffer): Ditto.
9033
197f0a60
TT
90342011-03-10 Tom Tromey <tromey@redhat.com>
9035
9036 * tracepoint.c (trace_actions_command): Update.
9037 * thread.c (thread_apply_command): Update.
9038 * reverse.c (delete_bookmark_command): Update.
9039 (bookmarks_info): Update.
9040 * printcmd.c (undisplay_command): Update.
9041 * memattr.c (mem_enable_command): Update.
9042 (mem_disable_command): Update.
9043 (mem_delete_command): Update.
9044 * inferior.c (detach_inferior_command): Update.
9045 (kill_inferior_command): Update.
9046 (remove_inferior_command): Update.
9047 * cli/cli-utils.h (struct get_number_or_range_state): New.
9048 (init_number_or_range): Declare.
9049 (get_number_or_range): Update.
9050 * cli/cli-utils.c (init_number_or_range): New function.
9051 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
9052 static variables.
9053 (number_is_in_list): Update.
9054 * breakpoint.h (get_tracepoint_by_number): Update.
9055 * breakpoint.c (map_breakpoint_numbers): Update for change to
9056 get_number_or_range.
9057 (find_location_by_number): Use get_number, not
9058 get_number_or_range.
9059 (trace_pass_set_count): New function.
9060 (trace_pass_command): Update for change to get_number_or_range.
9061 Rework loop logic.
9062 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
9063 'state' parameter.
9064
ecec24e6
PM
90652011-03-10 Phil Muldoon <pmuldoon@redhat.com>
9066
9067 * python/py-param.c (add_setshow_generic): Add set/show callback
9068 parameters. Register Python object context.
9069 (get_show_value): New function.
9070 (get_set_value): New function.
9071 (call_doc_function): New function.
9072 (get_doc_string): Move behind get_show_value/get_set_value.
9073
6d6c6b1f
JK
90742011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
9075
9076 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
9077
68d6df83
MG
90782011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
9079
dbab50de 9080 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
9081 (xtensa_write_register): Likewise.
9082 (xtensa_hextochar): Add comment and update to match coding conventions.
9083 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
9084 (execute_l32e, execute_s32e, execute_code): Update comments.
9085 (xtensa_exception_handler_t): Update to match coding conventions.
9086 (xtensa_insn_kind): Likewise.
9087
85c9d6a6
MS
90882011-03-09 Michael Snyder <msnyder@vmware.com>
9089
9090 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
9091
91495617
PA
90922011-03-09 Pedro Alves <pedro@codesourcery.com>
9093
9094 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
9095
eb8c0621
TT
90962011-03-09 Tom Tromey <tromey@redhat.com>
9097
9098 * thread.c (restore_selected_frame): Handle frame_level == -1.
9099 (make_cleanup_restore_current_thread): Use
9100 get_selected_frame_if_set.
9101 * frame.h (get_selected_frame_if_set): Declare.
9102 * frame.c (get_selected_frame_if_set): New function.
9103
9f37bbcc
PA
91042011-03-09 Pedro Alves <pedro@codesourcery.com>
9105
9106 * cli/cli-cmds.c (shell_escape): Use lbasename.
9107 * coffread.c (coff_start_symtab): Constify parameter.
9108 (complete_symtab): Constify `name' parameter.
9109 (coff_symtab_read): Constify `filestring' local.
9110 (coff_getfilename): Constify return and `result' local.
9111 Use lbasename.
9112 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
9113 * linux-fork.c (info_checkpoints_command): Use lbasename.
9114 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
9115 * minsyms.c (lookup_minimal_symbol): Use lbasename.
9116 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
9117 * procfs.c (procfs_make_note_section): Use lbasename.
9118 * tui/tui-io.c (printable_part): Constity return and parameter.
9119 Use lbasename.
9120 (print_filename): Constify parameters, and local `s'.
9121 (tui_rl_display_match_list): Constify local `temp'.
9122
f8de3c55
JK
91232011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9124
9125 Revert:
9126 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9127 Fix DWARF-3+ DW_AT_accessibility default assumption.
9128 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9129 cu->header.version >= 3.
9130
d9837b00
YQ
91312011-03-09 Yao Qi <yao@codesourcery.com>
9132
9133 * common/Makefile.in: Remove.
9134 * common/configure: Remove.
9135 * common/configure.ac: Remove.
9136
e637a4f5
YQ
91372011-03-09 Yao Qi <yao@codesourcery.com>
9138
9139 Revert:
9140 2011-02-11 Yao Qi <yao@codesourcery.com>
9141
9142 * common/Makefile.in: Add copyright header.
9143
9144 2011-02-11 Yao Qi <yao@codesourcery.com>
9145
9146 * Makefile.in: Remove signals.o from COMMON_OBS. Link
9147 libcommon.a.
9148 * configure.ac: Add common to sub dir.
9149 * configure: Regenerate.
9150
f976a05d
MG
91512011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9152
9153 * xtensa-tdep.c (call0_ret): New function.
9154 (xtensa_skip_prologue): Speed up analysis.
9155
57041825
MG
91562011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9157
9158 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
9159 while executing MI command -data-list-changed-registers.
9160
08b9c608
MG
91612011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9162
9163 * xtensa-tdep.c (xtensa_read_register): New function.
9164 (xtensa_write_register): New function.
9165 (xtensa_find_register_by_name): New function.
9166 (xtensa_windowed_frame_cache): Update comments in type description.
9167 (xtensa_frame_cache): Likewise.
9168 (xtensa_window_interrupt_insn): New function.
9169 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
9170 (xtensa_insn_kind): Add new instructions.
9171 (rwx_special_register): New function.
9172 (call0_classify_opcode): Add new instructions to the analysis.
9173 (a0_saved, a7_saved, a11_saved): New variables.
9174 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
9175 (execute_l32e): New function.
9176 (execute_s32e): New function.
9177 (xtensa_exception_handler_t): New type.
9178 (execute_code): New function.
9179 (xtensa_window_interrupt_frame_cache): New function to conduct frame
9180 analysis for Xtensa Window Exception handlers.
9181
4d1acb11
MG
91822011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9183
98689b25
MG
9184 * xtensa-tdep.c (TX_PS): New.
9185 (windowing_enabled): Update to count for Call0 ABI.
9186 (xtensa_hextochar): New.
9187 (xtensa_init_reggroups): Make algorithm generic.
9188 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
9189
91902011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
9191
9192 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 9193
d3f323f3
MS
91942011-03-08 Michael Snyder <msnyder@vmware.com>
9195
3dcabaa8
MS
9196 * i386-tdep.c (i386_follow_jump): Check return value of
9197 target_read_memory.
9198 (i386_analyze_struct_return): Ditto.
9199 (i386_skip_probe): Ditto.
9200 (i386_match_insn): Ditto.
9201 (i386_skip_noop): Ditto.
9202 (i386_analyze_frame_setup): Ditto.
9203 (i386_analyze_register_saves): Ditto.
9204 (i386_skip_prologue): Ditto.
9205 (i386_skip_main_prologue): Ditto.
9206
13b3fd9b
MS
9207 * target.c (read_whatever_is_readable): Fix memory leak.
9208
d3f323f3
MS
9209 * i386-tdep.c (i386_process_record): Document fall through.
9210
421d5c74
JK
92112011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9212
9213 Fix DWARF-3+ DW_AT_accessibility default assumption.
9214 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
9215 cu->header.version >= 3.
9216
63154eca
PA
92172011-03-08 Pedro Alves <pedro@codesourcery.com>
9218
9219 * remote.c (remote_check_symbols): Skip if the target has no
9220 execution.
9221
f1a507a1
JB
92222011-03-08 Joel Brobecker <brobecker@adacore.com>
9223
9224 * target.c (read_whatever_is_readable): Reformat comment,
9225 with a minor typo fix. Minor reformatting of the code.
9226
36073a92
YQ
92272011-03-08 Yao Qi <yao@codesourcery.com>
9228
9229 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
9230 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
9231 Use cached result instead of calling displaced_in_arm_mode again.
9232 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
9233 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
9234 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
9235 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
9236 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
9237 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
9238 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
9239 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
9240 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9241 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
9242 (arm_catch_kernel_helper_return): Likewise.
9243 * gdb/arm-tdep.h : Update function declarations.
9244
d3f323f3 92452011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 9246
e0e40094
MS
9247 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
9248
0b2381f5
MS
9249 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
9250
0350914a
MS
9251 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
9252
69feea6f
MS
9253 * elfread.c (elf_symtab_read): Stop memory leak.
9254
e6040cbd
MS
9255 * main.c (captured_main): Fix memory leak.
9256
052874e8
AS
92572011-03-07 Andreas Schwab <schwab@linux-m68k.org>
9258
9259 * ada-lang.c (compare_names): Call is_name_suffix with string1
9260 instead of string2.
9261
b11896a5
TT
92622011-03-07 Tom Tromey <tromey@redhat.com>
9263
9264 * xcoffread.c (xcoff_sym_fns): Update.
9265 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
9266 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
9267 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
9268 (symbol_file_add_with_addrs_or_offsets): Likewise.
9269 (reread_symbols): Handle OBJF_PSYMTABS_READ.
9270 * somread.c (som_sym_fns): Update.
9271 * psymtab.h (require_partial_symbols): Declare.
9272 * psymtab.c (require_partial_symbols): New function.
9273 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
9274 (ALL_OBJFILE_PSYMTABS): Undef.
9275 (ALL_PSYMTABS): Move from psympriv.h.
9276 (lookup_partial_symtab, find_pc_sect_psymtab)
9277 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
9278 (find_last_source_symtab_from_partial)
9279 (forget_cached_source_info_partial)
9280 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
9281 (expand_partial_symbol_tables, read_psymtabs_with_filename)
9282 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
9283 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
9284 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
9285 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
9286 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
9287 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
9288 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
9289 psymtabs.
9290 * mipsread.c (ecoff_sym_fns): Update.
9291 * machoread.c (macho_sym_fns): Update.
9292 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
9293 (read_psyms): New function.
9294 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
9295 (elf_sym_fns_lazy_psyms): New global.
9296 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
9297 dwarf2_build_psymtabs.
9298 * dbxread.c (aout_sym_fns): Update.
9299 * coffread.c (coff_sym_fns): Update.
9300
fda326dd
TT
93012011-03-07 Tom Tromey <tromey@redhat.com>
9302
9303 * infrun.c (print_exited_reason): Include inferior id and pid in
9304 message.
9305
aeaec162
TT
93062011-03-07 Tom Tromey <tromey@redhat.com>
9307
9308 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
9309 parameter.
9310 (target_has_execution_1): Update.
9311 (target_has_execution_current): Declare.
9312 (target_has_execution): Call target_has_execution_current.
9313 (default_child_has_execution): Update.
9314 * target.c (default_child_has_execution): Add 'the_ptid'
9315 parameter.
9316 (target_has_execution_1): Likewise.
9317 (target_has_execution_current): New function.
9318 (add_target): Update.
9319 (init_dummy_target): Update.
9320 * remote-m32r-sdi.c (m32r_has_execution): New function.
9321 (init_m32r_ops): Use it.
9322 * record.c (record_core_has_execution): Now static. Add
9323 'the_ptid' parameter.
9324 * inferior.c (have_live_inferiors): Don't save current thread.
9325 Use target_has_execution_1.
9326
08e14083
YQ
93272011-03-07 Yao Qi <yao@codesourcery.com>
9328
9329 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
9330
c05d19c5
JB
93312011-03-07 Joel Brobecker <brobecker@adacore.com>
9332
9333 * elfread.c (elf_symtab_read): Minor reformatting.
9334
3e6ef9e4
JB
93352011-03-07 Joel Brobecker <brobecker@adacore.com>
9336
9337 * objc-lang.c (selectors_info): Minor reformatting.
9338
dbb8534f
JB
93392011-03-07 Joel Brobecker <brobecker@adacore.com>
9340
9341 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
9342
dd70cc93
JB
93432011-03-07 Joel Brobecker <brobecker@adacore.com>
9344 Michael Snyder <msnyder@vmware.com>
9345
9346 * ada-valprint.c (ada_val_print_array): Move the declaration of
9347 "byte_order" and "elttype" inside the block where these variables
9348 are actually used. Remove some special handling for the case
9349 where "elttype" and "eltlen" are null. Replace by a comment
9350 and a couple of assertion checks.
9351
b27cf2b3
MS
93522011-03-05 Michael Snyder <msnyder@vmware.com>
9353
9354 * source.c (add_path): Replace semicolon at end of block.
9355 * dwarf2expr.c (execute_stack_op): Ditto.
9356
5387a0c6
MF
93572011-03-05 Mike Frysinger <vapier@gentoo.org>
9358
9359 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
9360 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
9361 (bfin-*-*): Likewise.
9362
e3aa49af
MS
93632011-03-05 Michael Snyder <msnyder@vmware.com>
9364
82ae4854
MS
9365 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
9366 * mdebugread.c (parse_symbol): Ditto.
9367 * parse.c (parse_exp_in_context): Ditto.
9368 * source.c (add_path): Ditto.
9369 * utils.c (gnu_debuglink_crc32): Ditto.
9370 * varobj.c (variable_language): Ditto.
9371
e3aa49af
MS
9372 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
9373
154f592e
MS
93742011-03-04 Michael Snyder <msnyder@vmware.com>
9375
da3ecdc6
MS
9376 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
9377
9cc89665
MS
9378 * symfile.c (simple_overlay_update): Check for null return value
9379 from lookup_minimal_symbol.
9380
154f592e
MS
9381 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
9382
63ffa6ee
TJB
93832011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9384
9385 * eval.c (parse_and_eval_address_1): Remove function.
9386 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
9387 instead of parse_and_eval_address_1.
9388 * value.h (parse_and_eval_address_1): Remove prototype.
9389
a17d146e
MS
93902011-03-04 Michael Snyder <msnyder@vmware.com>
9391
9392 * remote.c (putpkt_binary): Document that case stmt falls through.
9393
1a6a67de
TJB
93942011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
9395
9396 * breakpointc (print_it_typical): Move NULL check from here...
9397 (print_bp_stop_message): ... to here.
9398
488919c4
MS
93992011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
9400
9401 * breakpoint.c (enable_command): Use break instead of continue,
9402 and fill in a missing break.
9403 (disable_command): Ditto.
9404
1e182ce8
UW
94052011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
9406
9407 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
9408 (terminal_save_ours): Remove misleading comment.
9409 (inflow_inferior_data_cleanup): Free ttystate.
9410 (inflow_inferior_exit): Likewise.
9411 (copy_terminal_info): Copy ttystate.
9412
9413 * serial.c (serial_copy_tty_state): New function.
9414 * serial.h (serial_copy_tty_state): Add prototype.
9415 (struct serial_ops): Add copy_tty_state callback.
9416 * ser-base.c (ser_base_copy_tty_state): New function.
9417 * ser-base.h (ser_base_copy_tty_state): Add prototype.
9418 * ser-go32.c (dos_copy_tty_state): New function.
9419 (dos_ops): Install copy_tty_state callback.
9420 * ser-mingw.c (_initialize_ser_windows): Likewise.
9421 * ser-pipe.c (_initialize_ser_pipe): Likewise.
9422 * ser-unix.c (hardwire_copy_tty_state): New function.
9423 (_initialize_ser_hardwire): Install it.
9424
b2c5f112
MS
94252011-03-04 Michael Snyder <msnyder@vmware.com>
9426
2abae994
MS
9427 * breakpoint.c (create_breakpoint): Add missing break statement.
9428
7f5936f9
MS
9429 Reverting this patch:
9430 * infcall.c (call_function_by_hand): Add break statements for lint.
9431
b2c5f112
MS
9432 Reverting this patch:
9433 * cli/cli-script.c (script_from_file): Add break for lint.
9434
42b1321c
MS
94352011-03-04 Michael Snyder <msnyder@vmware.com>
9436
9437 * solib.c (reload_shared_libraries_1): Close memory leak.
9438
3e2a0cee
TT
94392011-03-03 Tom Tromey <tromey@redhat.com>
9440
9441 PR gdb/12538:
9442 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
9443 DW_STRING is NULL.
9444
58397cb7
MS
94452011-03-03 Michael Snyder <msnyder@vmware.com>
9446
2e3fd767
MS
9447 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
9448 fields of struct 'st' to zero.
9449
58397cb7
MS
9450 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
9451 sal.pspace before calling set_current_source_symtab_and_line.
9452
ced54c8f
YQ
94532011-03-03 Yao Qi <yao@codesourcery.com>
9454
9455 * Makefile.in (configure-common): Remove. Let Makefile
9456 in dir common to rebuild itself.
9457 (common/Makefile): Likewise.
9458
3351ea09
JB
94592011-03-03 Joel Brobecker <brobecker@adacore.com>
9460
9461 * utils.c (parse_escape): Add i18n markup in error message.
9462
bf9f652a
YQ
94632011-03-03 Yao Qi <yao@codesourcery.com>
9464
9465 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
9466 ARM_PC_REGNUM.
9467 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
9468 (displaced_write_reg, displaced_read_reg): Likewise.
9469 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
9470 (cleanup_block_load_pc, copy_block_xfer): Likewise.
9471 (cleanup_branch): Replace magic number 14 and 15 with
9472 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
9473
d42de051
MS
94742011-03-02 Michael Snyder <msnyder@vmware.com>
9475
240f9570
MS
9476 * maint.c (maintenance_do_deprecate): No need to check for NULL.
9477
10dd8b54
MS
9478 * cli/cli-script.c (script_from_file): Add break for lint.
9479
b98bd911
MS
9480 * mdebugread.c (parse_partial_symbols): Fix indent.
9481
3494b66d
MS
9482 * target-descriptions.c (tdesc_gdb_type): No need to call
9483 xstrdup, callee saves a copy.
9484
daac021a
MS
9485 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
9486
c38d16a7
MS
9487 * infcall.c (call_function_by_hand): Add break statements for lint.
9488
905b671b
MS
9489 * utils.c (parse_escape): Escape the escape char.
9490
f2eb0bc8 9491 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
9492 PyList_Append fails.
9493 (gdbpy_inferiors): Error out if build_inferior_list fails.
9494
8c6a60d1
MS
9495 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
9496 a function call.
9497
d42de051
MS
9498 * record.c (record_restore): Move printf to before error return.
9499
4db71c0b
YQ
95002011-03-02 Yao Qi <yao@codesourcery.com>
9501
9502 * arm-tdep.h (struct displaced_step_closure): Add two new fields
9503 is_thumb and insn_size.
9504 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
9505 on both ARM and Thumb mode.
9506 (arm_process_displaced_insn): Set is_thumb and insn_size.
9507 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
9508 (arm_displaced_step_fixup): Likewise.
9509
a9dc8dcc
MS
95102011-03-01 Michael Snyder <msnyder@vmware.com>
9511
53624a93
MS
9512 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
9513
77766669
MS
9514 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
9515
62d5b8da
MS
9516 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
9517
5e9e105f
MS
9518 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
9519
dc19db01
MS
9520 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
9521 with xmalloc.
9522
5ce64950
MS
9523 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
9524 which shadows function parameter.
9525
a0aa2878
MS
9526 * tracepoint.c (create_tsv_from_upload): Superfluous call
9527 to xstrdup. Callee already calls xstrdup.
9528
e325fb69
MS
9529 * linespec.c (decode_line_1): Remove unnecessary null check.
9530
21cbba77
MS
9531 * tracepoint.c (scope_info): Fix mem leak, remove underused
9532 variable.
9533
63360adc
MS
9534 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
9535 superfluous null check.
9536
18ea20ac 9537 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 9538 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 9539
d014929c
MS
9540 * event-top.c (display_gdb_prompt): Remove superfluous null check.
9541
6e9130cf
MS
9542 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
9543 be null.
9544
5f01dbc0
MS
9545 * linespec.c (decode_line_1): Check for null before dereference.
9546
d684ab85
MS
9547 * reverse.c (record_restore): Move null-check to before pointer
9548 dereference.
9549
bfffb7e3
MS
9550 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
9551
a9dc8dcc
MS
9552 * objc-lang.c (selectors_info): Add explanitory comment.
9553 (classes_info): Ditto.
9554
478fd957
UW
95552011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
9556
9557 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
9558 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
9559 versions of the trampoline. Handle Thumb vs. ARM addresses.
9560 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
9561 (arm_linux_init_abi): Install it.
9562 * arm-tdep.c (arm_psr_thumb_bit): Make global.
9563 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
9564
0480cefa
MS
95652011-02-28 Michael Snyder <msnyder@vmware.com>
9566
ac50ab3b
MS
9567 * ui-out.c (ui_out_field_core_addr): Make local char buffer
9568 a little bigger, to avoid possibility of an overflow.
9569
f63fbe86
MS
9570 * breakpoint.c (breakpoint_adjustment_warning): Make local char
9571 buffers a little bigger, to avoid possibility of an overflow.
9572
9e91a352
MS
9573 * coffread.c (coff_getfilename): Add check to avoid overflow.
9574
f2eb0bc8 9575 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
9576 avoid overflow.
9577 (classes_info): Error out on too long REGEXP.
9578
098ab512
MS
9579 * infrun.c (handle_inferior_event): Remove unused function call.
9580
bcbd1de9
MS
9581 * fork-child.c (fork_inferior): Remove ifdef'd code and
9582 unused variable.
9583
2e456570
MS
9584 * linux-thread-db.c (attach_thread): Discard unused value.
9585
14571dad
MS
9586 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
9587
a9cbf802
MS
9588 * remote.c (remote_get_noisy_reply): Discard unused value.
9589 (remote_vcont_resume): Ditto.
9590 (remote_stop_ns): Ditto.
9591
5715d26e
MS
9592 * linespec.c (decode_objc): Delete unused variable.
9593
4a9bca80
MS
9594 * tui/tui-regs.c (tui_register_format): Delete unused variable.
9595
f47fb265
MS
9596 * dwarf2read.c (add_partial_symbol): Discard unused values.
9597 (read_base_type): Delete unused variable.
9598
e81cff30
MS
9599 * dbxread.c (read_dbx_symtab): Discard unused value.
9600
262acaeb
MS
9601 * eval.c (evaluate_subexp_standard): Delete unused variable,
9602 and discard unused values.
9603
df983543
MS
9604 * infcmd.c (_initialize_infcmd): Discard unused values.
9605
89acf84d
MS
9606 * stabsread.c (rs6000_builtin_type): Missing break statement.
9607
ab8b8aca
MS
9608 * dbxread.c (process_one_symbol): Discard unused value.
9609
6b4511ab
MS
9610 * coffread.c (coff_end_symtab): Delete unused variable.
9611
e8e80198
MS
9612 * dwarf2read.c (dw2_get_file_names): Discard unused value.
9613 (dwarf2_add_typedef): Delete unused variable.
9614 (read_namespace): Ditto.
9615 (dwarf_decode_macros): Ditto.
9616
976aa66e
MS
9617 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
9618
5b92b49f
MS
9619 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
9620
91e8df85
MS
9621 * p-valprint.c (pascal_val_print): Discard unused value.
9622
899500d6
MS
9623 * utils.c (nquery): Call va_end before return;
9624 (yquery): Ditto.
9625 (query): Ditto.
9626
0480cefa
MS
9627 * proc-service.c (ps_plog): Call va_end before return.
9628
fb6a3ed3
TT
96292011-02-28 Tom Tromey <tromey@redhat.com>
9630
9631 * python/python.c (gdbpy_value_cst): New global.
9632 (_initialize_python): Initialize it.
9633 * python/python-internal.h (gdbpy_value_cst): Declare.
9634 * python/py-value.c (convert_value_from_python): Use
9635 gdbpy_value_cst.
9636
c05202a1
MS
96372011-02-28 Michael Snyder <msnyder@vmware.com>
9638
e463f587
MS
9639 * python/py-cmd.c (cmdpy_init): Fix memory leak.
9640
c38eea1a
MS
9641 * breakpoint.c (catch_syscall_completer): Free malloced list.
9642
3ef09ab5
MS
9643 * jv-lang.c (java_primitive_type_from_name): Add missing break.
9644
8f9a01ee
MS
9645 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
9646 (lval_func_check_synthetic_pointer): Ditto.
9647 (lval_func_free_closure): Fix use-after-free.
c05202a1 9648
477d0d57
TT
96492011-02-28 Tom Tromey <tromey@redhat.com>
9650
9651 * psymtab.c (expand_partial_symbol_tables): Use
9652 ALL_OBJFILE_PSYMTABS.
9653
20937029
JK
96542011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9655
9656 * objc-lang.c (selectors_info): Error on too long REGEXP.
9657
907b7f4f
MS
96582011-02-28 Michael Snyder <msnyder@vmware.com>
9659
92e96192
MS
9660 * python/py-param.c (set_parameter_value): Add missing
9661 break statement.
9662
907b7f4f
MS
9663 * linux-record.c (record_linux_system_call): Add missing
9664 break statement.
9665
12c5a436
UW
96662011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9667
9668 * breakpoint.c (print_one_breakpoint_location): Remove unused
9669 argument PRINT_ADDRESS_BITS. Update callers.
9670 (print_one_breakpoint): Likewise.
9671
170b53b2
UW
96722011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
9673
9674 * breakpoint.c (wrap_indent_at_field): New function.
9675 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
9676 Allocate ui_stream locally instead of using STB argument.
9677 (print_one_breakpoint_location): Update call.
9678 * ui-out.c (ui_out_query_field): New function.
9679 * ui-out.h (ui_out_query_field): Add prototype.
9680
8ab1f94d
JB
96812011-02-28 Joel Brobecker <brobecker@adacore.com>
9682
9683 From Michael Snyder <msnyder@vmware.com>
9684 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
9685
7d488639
MS
96862011-02-27 Michael Snyder <msnyder@vmware.com>
9687
ae179fba
MS
9688 * objc-lang.c (selectors_info): Prevent string overrun.
9689
086dbf66
MS
9690 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
9691 error in strncpy.
9692
f2eb0bc8 9693 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
9694 outer scope.
9695
7d488639
MS
9696 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
9697 param with a local variable of the same name.
9698
3bd0f5ef
MS
96992011-02-27 Michael Snyder <msnyder@vmware.com>
9700
9701 * value.c (value_from_history_ref): New function.
9702 * value.h (value_from_history_ref): Export.
9703 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
9704 to parse value history references.
9705 * cli/cli-utils.h (get_number_trailer): Update comment.
9706
97072011-02-27 Michael Snyder <msnyder@vmware.com>
9708
9709 * inferior.c (detach_inferior_command): Use get_number_or_range.
9710 (kill_inferior_command): Ditto.
9711 (remove_inferior_command): Ditto.
9712 (initialize_inferiors): Make command names plural.
9713 Update help strings.
9714
766062f6
MS
97152011-02-27 Michael Snyder <msnyder@vmware.com>
9716
9717 * darwin-nat-info.c: Fix comment typo.
9718 * dwarf2expr.h: Ditto.
9719 * fbsd-nat.c: Ditto.
9720 * fbsd-nat.h: Ditto.
9721 * frame-unwind.h: Ditto.
9722 * frame.h: Ditto.
9723 * hppa-hpux-tdep.c: Ditto.
9724 * i386-linux-nat.c: Ditto.
9725 * linux-nat.c: Ditto.
9726 * nbsd-nat.c: Ditto.
9727 * nbsd-nat.h: Ditto.
9728 * ppc-linux-tdep.c: Ditto.
9729 * serial.c: Ditto.
9730 * ui-file.h: Ditto.
9731 * tui/tui-winsource.c: Ditto.
9732
f2c4ead5
MS
97332011-02-26 Michael Snyder <msnyder@vmware.com>
9734
86b887df
MS
9735 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
9736
66fd3b1e
MS
9737 * maint.c (maintenance_do_deprecate): Plug a memory leak.
9738
8c814cdd
MS
9739 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
9740 with a local variable of the same name.
9741
6d5e094a 9742 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 9743 param with a local variable of the same name.
6d5e094a 9744 (i387_supply_xsave): Ditto.
e5b3d7d6 9745
5eee517d
MS
9746 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
9747 that it does not shadow a function parameter.
9748
8fbf6b93
MS
9749 * i386-nat.c (i386_length_and_rw_bits): Document that case
9750 statement is meant to fall through.
9751
cb969d61
MS
9752 * expprint.c (dump_subexp_body_standard): Document that case
9753 statement is meant to fall through.
9754
f2c4ead5
MS
9755 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
9756 dead if statement. Condition can't be false.
9757
b021a221
MS
97582011-02-25 Michael Snyder <msnyder@vmware.com>
9759
9760 * arm-tdep.c: Fix typos in comments.
9761 * bsd-uthread.c: Ditto.
9762 * completer.c: Ditto.
9763 * corelow.c: Ditto.
9764 * cp-namespace.c: Ditto.
9765 * cp-support.c: Ditto.
9766 * cris-tdep.c: Ditto.
9767 * dbxread.c: Ditto.
9768 * dwarf2read.c: Ditto.
9769 * frame.h: Ditto.
9770 * gdbtypes.h: Ditto.
9771 * inferior.h: Ditto.
9772 * mdebugread.c: Ditto.
9773 * mips-tdep.c: Ditto.
9774 * ppc-linux-nat.c: Ditto.
9775 * ppc-linux-tdep.c: Ditto.
9776 * printcmd.c: Ditto.
9777 * sol-thread.c: Ditto.
9778 * solib-frv.c: Ditto.
9779 * solist.h: Ditto.
9780 * sparc64-tdep.c: Ditto.
9781 * spu-tdep.c: Ditto.
9782 * stabsread.c: Ditto.
9783 * symfile.c: Ditto.
9784 * valops.c: Ditto.
9785 * varobj.c: Ditto.
9786 * vax-nat.c: Ditto.
9787 * python/py-block.c: Ditto.
9788 * python/py-symbol.c: Ditto.
9789 * python/py-symtab.c: Ditto.
9790 * python/py-value.c: Ditto.
9791 * tui/tui-win.c: Ditto.
9792
c82c0b55
MS
97932011-02-25 Michael Snyder <msnyder@vmware.com>
9794
9795 * inferior.c (print_inferior): Accept a string instead of an int
9796 for requested_inferiors, and use get_number_or_range to parse it.
9797 (info_inferiors_command): Pass args string to print_inferior.
9798 (initialize_inferiors): Change help string for info inferiors.
9799 * inferior.h (print_inferior): Export prototype change.
9800
ee00cd23
TT
98012011-02-25 Tom Tromey <tromey@redhat.com>
9802
9803 * common/ax.def (invalid2): Set to 0x31.
9804
0502ed8c
JK
98052011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9806
9807 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
9808 L and plongest.
9809 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
9810 use L and plongest.
9811 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
9812
2c9de912
MS
98132011-02-24 Michael Snyder <msnyder@vmware.com>
9814
9815 * Makefile.in (clean): Make clean should remove generated files
9816 observer.h and observer.inc.
9817
a04b0428
JB
98182011-02-24 Joel Brobecker <brobecker@adacore.com>
9819
9820 Revert the following patch (not approved yet):
9821 2011-02-21 Hui Zhu <teawater@gmail.com>
9822 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
9823 * ax-gdb.c (gen_printf_expr_callback): New function.
9824 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
9825 * ax-general.c (ax_memcpy): New function.
9826 (ax_print): Handle "printf".
9827 (ax_reqs): Ditto.
9828 * ax.h (ax_memcpy): Forward declare.
9829 * common/ax.def (invalid2): Removed.
9830 (printf): New entry.
9831 * printcmd.c (printcmd.h): New include.
9832 (string_printf): New function.
9833 (ui_printf): Removed.
9834 (printf_command): Remove static. Call string_printf.
9835 (eval_command): Call string_printf.
9836 * printcmd.h: New file.
9837 * tracepoint.c (validate_actionline,
9838 encode_actions_1): handle printf_command.
9839
2b52013f
TT
98402011-02-23 Tom Tromey <tromey@redhat.com>
9841
9842 * ax-general.c (ax_pick): Add missing newline.
9843
e5a67952
MS
98442011-02-23 Michael Snyder <msnyder@vmware.com>
9845
9846 * breakpoint.c (breakpoint_1): Change first argument from an int
9847 to a char pointer, so that the function now accepts a list of
f2eb0bc8 9848 breakpoints rather than just one. Use new function
e5a67952
MS
9849 'number_is_in_list' to implement.
9850 (breakpoints_info): Pass char * instead of int to breakpoint_1.
9851 (watchpoints_info): Ditto.
9852 (tracepoints_info): Ditto.
9853 (maintenance_info_breakpoints): Ditto.
9854 (_initialize_breakpoint): Update help strings to reflect the fact
9855 that these functions can now take more than one argument.
9856 * cli/cli-utils.c (number_is_in_list): New function.
9857 * cli/cli-utils.h (number_is_in_list): Export.
9858
98592011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
9860
9861 * memattr.c (mem_enable_command): Use get_number_or_range.
9862 (mem_disable_command): Ditto.
9863 (mem_delete_command): Ditto.
9864 (_initialize_mem): Tweak usage message to reflect multiple
9865 arguments.
9866
6e6fbe60
DE
98672011-02-22 Doug Evans <dje@google.com>
9868
9869 Add gdb.lookup_global_symbol python function.
9870 * NEWS: Add entry.
9871 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
9872 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
9873 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
9874
79b97fa8
TT
98752011-02-22 Tom Tromey <tromey@redhat.com>
9876
9877 * language.c (language_class_name_from_physname): Rename
9878 'curr_language' argument to 'lang'; use in body.
9879
298f437a
MS
98802011-02-22 Michael Snyder <msnyder@vmware.com>
9881
9882 * cli/cli-utils.c (number_is_in_list): Check for zero return.
9883
b7ea3126
PA
98842011-02-22 Pedro Alves <pedro@codesourcery.com>
9885
9886 * frame-unwind.h: Fix comment to mention the this frame, not the
9887 next.
9888
58ee6d60
TT
98892011-02-22 Tom Tromey <tromey@redhat.com>
9890
9891 * symfile.c (auto_solib_limit): Remove.
9892 * symfile.h (auto_solib_limit): Remove.
9893
36238dbc
JB
98942011-02-22 Joel Brobecker <brobecker@adacore.com>
9895
9896 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
9897
aea5b279
MS
98982011-02-21 Michael Snyder <msnyder@vmware.com>
9899
9900 * gdbthread.h (print_thread_info): Change prototype.
9901 * thread.c (print_thread_info): Accept char* instead of int for
9902 requested_threads argument. Use new function number_is_in_list
9903 to determine which threads to list.
9904 (info_threads_command): Pass char* to print_thread_info.
9905 * cli/cli-utils.c (number_is_in_list): New function.
9906 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 9907 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
9908 print_thread_info.
9909 (print_one_inferior): Ditto.
9910 (mi_cmd_list_thread_groups): Ditto.
9911
8caa75ee
JK
99122011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9913
9914 * common/Makefile.in (CFLAGS): New.
9915 (COMPILE): Add $(CFLAGS).
9916
ea666128
TT
99172011-02-21 Tom Tromey <tromey@redhat.com>
9918
9919 * breakpoint.c (catch_syscall_command_1): Fix typo.
9920
e9cafbcc
TT
99212011-02-21 Tom Tromey <tromey@redhat.com>
9922
9923 * reverse.c: Include cli-utils.h.
9924 * printcmd.c: Include cli-utils.h.
9925 (string_printf): Use skip_spaces.
9926 * cli/cli-utils.h: New file.
9927 * cli/cli-utils.c: New file.
9928 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
9929 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
9930 * breakpoint.h (get_number, get_number_or_range): Move to
9931 cli-utils.h.
9932 * breakpoint.c: Include cli-utils.h.
9933 (get_number_trailer, get_number, get_number_or_range)
9934 (ep_skip_leading_whitespace): Move to cli-utils.c.
9935 (create_breakpoint_sal, find_condition_and_thread)
9936 (decode_static_tracepoint_spec, watch_command_1)
9937 (watch_maybe_just_location, ep_parse_optional_if_clause)
9938 (catch_fork_command_1, catch_exec_command_1)
9939 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
9940 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
9941 (SUBDIR_CLI_SRCS): Add cli-utils.c.
9942 (HFILES_NO_SRCDIR): Add cli-utils.h.
9943 (cli-utils.o): New target.
9944
f67fd822
PM
99452011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
9946
9947 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
9948 before calling discard_all_inferiors.
9949
c9def01d
UW
99502011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
9951
9952 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
9953 (struct builtin_opencl_type): Remove.
9954 (builtin_opencl_type): Change return type to "struct type **".
9955 (lookup_opencl_vector_type): Update caller.
9956 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
9957 (build_opencl_types): Install plain array of "struct type *"
9958 instead of "struct builtin_opencl_type".
9959
e3039479
UW
99602011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
9961 Ulrich Weigand <uweigand@de.ibm.com>
9962
9963 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
9964 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
9965 (struct arm_linux_hwbp_cap): New type.
9966 (arm_linux_get_hwbp_cap): New function.
9967 (arm_linux_get_hw_breakpoint_count): Likewise.
9968 (arm_linux_get_hw_watchpoint_count): Likewise.
9969 (arm_linux_can_use_hw_breakpoint): Likewise.
9970 (arm_hwbp_type): New type.
9971 (arm_hwbp_control_t): Likewise.
9972 (struct arm_linux_hw_breakpoint): Likewise.
9973 (struct arm_linux_thread_points): Likewise.
9974 (arm_threads): New global variable.
9975 (arm_linux_find_breakpoints_by_tid): New function.
9976 (arm_hwbp_control_initialize): Likewise.
9977 (arm_hwbp_control_is_enabled): Likewise.
9978 (arm_hwbp_control_disable): Likewise.
9979 (arm_linux_hw_breakpoint_initialize): Likewise.
9980 (arm_linux_get_hwbp_type): Likewise.
9981 (arm_linux_hw_watchpoint_initialize): Likewise.
9982 (arm_linux_hw_breakpoint_equal): Likewise.
9983 (arm_linux_insert_hw_breakpoint1): Likewise.
9984 (arm_linux_remove_hw_breakpoint1): Likewise.
9985 (arm_linux_insert_hw_breakpoint): Likewise.
9986 (arm_linux_remove_hw_breakpoint): Likewise.
9987 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
9988 (arm_linux_insert_watchpoint): Likewise.
9989 (arm_linux_remove_watchpoint): Likewise.
9990 (arm_linux_stopped_data_address): Likewise.
9991 (arm_linux_stopped_by_watchpoint): Likewise.
9992 (arm_linux_watchpoint_addr_within_range): Likewise.
9993 (arm_linux_new_thread): Likewise.
9994 (arm_linux_thread_exit): Likewise.
9995 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
9996 related target callbacks. Register arm_linux_new_thread and
9997 arm_linux_thread_exit.
9998 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
9999 * arm-tdep.c (arm_pc_is_thumb): Make global.
10000 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
10001
b5db5dfc
UW
100022011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
10003
10004 * breakpoint.c (update_watchpoint): Do not attempt to recreate
10005 per-frame locations while within a function epilogue.
10006
e25b2cfa
PM
100072011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10008
10009 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
10010 to GNU coding standards.
10011
4af53f97
PM
100122011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
10013
10014 Allow use of mingw native on Windows 95 OS.
e25b2cfa 10015 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
10016 (ser_windows_close): Only call CancelIo if function exists.
10017 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
10018 to check for existence of CancelIo function in kernel32 DLL.
10019
d0e92d82
HZ
100202011-02-21 Hui Zhu <teawater@gmail.com>
10021
10022 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
10023 * ax-gdb.c (gen_printf_expr_callback): New function.
10024 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
10025 * ax-general.c (ax_memcpy): New function.
10026 (ax_print): Handle "printf".
10027 (ax_reqs): Ditto.
10028 * ax.h (ax_memcpy): Forward declare.
10029 * common/ax.def (invalid2): Removed.
10030 (printf): New entry.
10031 * printcmd.c (printcmd.h): New include.
10032 (string_printf): New function.
10033 (ui_printf): Removed.
10034 (printf_command): Remove static. Call string_printf.
10035 (eval_command): Call string_printf.
10036 * printcmd.h: New file.
10037 * tracepoint.c (validate_actionline,
10038 encode_actions_1): handle printf_command.
10039
7d357efd
MS
100402011-02-19 Michael Snyder <msnyder@vmware.com>
10041
10042 * reverse.c (delete_one_bookmark): Argument is now bookmark
10043 id rather than pointer to bookmark struct.
10044 (delete_bookmark_command): Use get_number_or_range.
10045 (goto_bookmark_command): Parse with get_number instead of strtoul.
10046 (bookmark_1): New function. Print info for one bookmark.
10047 (bookmarks_info): Use get_number_or_range and bookmark_1.
10048
7a45ebd7
MS
100492011-02-18 Michael Snyder <msnyder@vmware.com>
10050
f2eb0bc8 10051 * thread.c (info_threads_command): Re-implement using
7a45ebd7 10052 get_number_or_range.
65ebfb52 10053 (thread_apply_command): Ditto.
7a45ebd7 10054
94d5e490
TT
100552011-02-18 Tom Tromey <tromey@redhat.com>
10056
10057 * common/ax.def: New file.
10058 * ax.h (enum agent_op): Use ax.def.
10059 * ax-general.c (aop_map): Use ax.def.
10060
c7f96d2b
TT
100612011-02-18 Tom Tromey <tromey@redhat.com>
10062
10063 * ax-general.c (aop_map): Add pick and rot.
10064 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
10065 <DW_OP_rot>: Implement.
10066 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
10067 (ax_pick): Declare.
10068 * ax-general.c (ax_pick): New function.
10069
66694b75
TT
100702011-02-18 Tom Tromey <tromey@redhat.com>
10071
10072 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
10073
eeaafae2
JK
100742011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
10075 Tom Tromey <tromey@redhat.com>
10076
10077 * cp-support.c (make_symbol_overload_list_namespace): Do not call
10078 make_symbol_overload_list_block with NULL BLOCK.
10079 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
10080
3c3fe74c
PA
100812011-02-18 Pedro Alves <pedro@codesourcery.com>
10082
10083 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
10084 * breakpoint.h (get_number_or_range): Declare.
10085 * printcmd.c (ALL_DISPLAYS): Declare.
10086 (delete_display): Reimplement taking a display pointer.
10087 (undisplay_command): Accept a range of displays to delete, using
10088 get_number_or_range.
10089
13163d80
PM
100902011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
10091
10092 * c-valprint.c (c_val_print): Add embedded_offset to address
10093 for arrays of unspecified length.
10094 * p-valprint.c (pascal_val_print): Likewise.
10095
b434a28f
YQ
100962011-02-18 Yao Qi <yao@codesourcery.com>
10097
10098 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
10099 (arm_process_displaced_insn): .. here. Remove parameter INSN.
10100 (thumb_process_displaced_insn): New.
10101 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
10102 call to arm_process_displaced_insn.
10103 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
10104
9f6f94ff
TT
101052011-02-17 Tom Tromey <tromey@redhat.com>
10106
10107 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
10108 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
10109 compile_dwarf_to_ax. No longer static. Call
10110 dwarf2_compile_cfa_to_ax.
10111 (locexpr_tracepoint_var_ref): Update.
10112 (loclist_tracepoint_var_ref): Update.
10113 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
10114 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
10115 argument; add 'gdbarch' and 'pc'.
10116 (dwarf2_compile_cfa_to_ax): New function.
10117 (dwarf2_frame_cache): Update.
10118
e67ad678
JB
101192011-02-17 Joel Brobecker <brobecker@adacore.com>
10120
10121 * ada-lang.c (ada_type_of_array): Fix the size of the array
10122 in the case of an unconstrained packed array.
10123
946ebb0d
YQ
101242011-02-17 Yao Qi <yao@codesourcery.com>
10125
10126 * common/Makefile.in: Add more targets for make.
10127
1ba1b353
TT
101282011-02-16 Tom Tromey <tromey@redhat.com>
10129
10130 * dwarf2loc.c (unimplemented): Fix typo.
10131
b1bfef65
TT
101322011-02-16 Tom Tromey <tromey@redhat.com>
10133
10134 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
10135 (compile_dwarf_to_ax) <default>: Use unimplemented.
10136 <DW_OP_deref>: Update.
10137 (disassemble_dwarf_expression): Update.
10138 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
10139 (decode_locdesc): Update.
10140 * dwarf2expr.h (dwarf_stack_op_name): Update.
10141
5f1e6f19
TT
101422011-02-16 Tom Tromey <tromey@redhat.com>
10143
10144 * ax.h (struct aop_map) <name>: Now const.
10145
a0c78a73
PA
101462011-02-16 Tom Tromey <tromey@redhat.com>
10147
10148 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
10149 than axs_rvalue.
10150
946ebb0d 101512011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
10152
10153 * infrun.c (get_displaced_step_closure_by_addr): New.
10154 * inferior.h: Declare it.
10155 * arm-tdep.c: (arm_pc_is_thumb): Call
10156 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
10157 returns non-NULL.
10158
08807d5a
PA
101592011-02-16 Pedro Alves <pedro@codesourcery.com>
10160 Jan Kratochvil <jan.kratochvil@redhat.com>
10161
10162 gdb/
10163 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
10164
29976f3f
PA
101652011-02-16 Pedro Alves <pedro@codesourcery.com>
10166 Jan Kratochvil <jan.kratochvil@redhat.com>
10167
10168 * value.c (value_contents_copy_raw): Extend describing comment.
10169 Assert that the destination contents we're overwriting are wholly
10170 available.
fb68ae73 10171 (value_contents_copy): Extend describing comment.
29976f3f 10172
cd24cfaa
PA
101732011-02-16 Pedro Alves <pedro@codesourcery.com>
10174 Jan Kratochvil <jan.kratochvil@redhat.com>
10175
10176 * value.c (value_available_contents_eq): Remove redundant local
10177 variables. Fix available contents comparision.
10178 * value.h (value_available_contents_eq): Extend describing
10179 comment.
10180
60bbf338
YQ
101812011-02-16 Yao Qi <yao@codesourcery.com>
10182
10183 * thread.c (info_threads_command): Add missing i18n markup and remove
10184 trailing newline.
10185
17450429
PP
101862011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10187
10188 * breakpoint.c (longjmp_names): New variable.
10189 (struct breakpoint_objfile_data): New type.
10190 (breakpoint_objfile_key): New variable.
10191 (msym_not_found): New variable.
10192 (msym_not_found_p): New predicate.
10193 (get_breakpoint_objfile_data): New function.
10194 (create_overlay_event_breakpoint): Check per-objfile cache for
10195 symbols first.
10196 (create_longjmp_master_breakpoint): Likewise.
10197 (create_std_terminate_master_breakpoint): Likewise.
10198 (create_exception_master_breakpoint): Likewise.
10199 (_initialize_breakpoint): Register per-objfile data key.
10200
af02033e
PP
102012011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
10202
10203 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
10204 parameter value.
10205 (create_longjmp_master_breakpoint): Loop over longjmp names.
10206 (create_std_terminate_master_breakpoint): Const-propagate parameter
10207 value.
10208 (update_breakpoints_after_exec): Adjust.
10209 (breakpoint_re_set): Adjust.
10210
60f98dde
MS
102112011-02-15 Michael Snyder <msnyder@vmware.com>
10212
cdf99611
MS
10213 * thread.c (info_threads_command): Process arg as thread id,
10214 or list of thread ids.
10215 (thread_find_command): New command.
10216 (_initialize_thread): Document argument for info threads.
10217 Document 'thread find' command.
10218 * NEWS: Document new command "thread find".
60f98dde 10219
0feedb2c
JK
102202011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10221
10222 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
10223 * aclocal.m4: Regenerated with aclocal-1.11.1.
10224 * common/configure: Regenerate with autoconf-2.64.
10225
648cd113
KW
102262011-02-15 Ken Werner <ken.werner@de.ibm.com>
10227
10228 * opencl-lang.c (build_opencl_types): Set the size of the built-in
10229 bool data type to a size of one byte.
10230
5657161f
PA
102312011-02-15 Pedro Alves <pedro@codesourcery.com>
10232 Jan Kratochvil <jan.kratochvil@redhat.com>
10233
10234 * target.c (memory_xfer_live_readonly_partial): Document where to
10235 look for interface description.
10236
494e194e
YQ
102372011-02-15 Yao Qi <yao@codesourcery.com>
10238
10239 PR tdep/12352
10240 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
10241 order to store PC value on stack instead of text section.
10242
d9492458
TJB
102432011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
10244
10245 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
10246 the EFP register set size.
10247 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
10248 data from the VMX register.
10249 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
10250 and write data from/to the VMX register.
10251
cdf99611
MS
102522011-02-14 Michael Snyder <msnyder@vmware.com>
10253
10254 * command.h (enum command_class): New class 'no_set_class', for
10255 "show" commands without a corresponding "set" command.
10256 * value.c (_initialize_values): Use 'no_set_class' for "show values".
10257 * copying.c (_initialize_copying): Ditto for "show copying" and
10258 "show warranty".
10259 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
10260 "show version".
10261 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
10262 which there is no corresponding "set" command (eg. "show copying").
10263
424447ee
PA
102642011-02-14 Pedro Alves <pedro@codesourcery.com>
10265 Jan Kratochvil <jan.kratochvil@redhat.com>
10266
10267 * exec.c (section_table_available_memory): Change `len' parameter
10268 type to ULONGEST.
10269 * exec.h (section_table_available_memory): Ditto.
10270 * value.h (read_value_memory): Rename the `offset' parameter to
10271 `embedded_offset'.
10272
c0f61f9c 102732011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 10274 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
10275
10276 * memrange.c (compare_mem_ranges): Mention sort order in
10277 describing comment.
10278 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
10279 * tracepoint.c (traceframe_available_memory): Extend comment to
10280 mention what happens to RESULT when the target does not support
10281 the query.
10282
6bfc80c7
PA
102832011-02-14 Pedro Alves <pedro@codesourcery.com>
10284 Jan Kratochvil <jan.kratochvil@redhat.com>
10285
10286 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
10287 range.
10288
e7303042
PA
102892011-02-14 Pedro Alves <pedro@codesourcery.com>
10290
10291 * value.c (value_bits_valid, value_bits_synthetic_pointer):
10292 No longer handle NULL values.
10293
8af8e3bc
PA
102942011-02-14 Pedro Alves <pedro@codesourcery.com>
10295
10296 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
10297 * value.c: Include "exceptions.h".
10298 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
10299 generic error.
10300 * cp-abi.c: Include gdb_assert.h.
10301 (baseclass_offset): Add `embedded_offset' and `val' parameters.
10302 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
10303 errors.
10304 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
10305 parameters. No longer returns -1 on error.
10306 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
10307 `val' parameters.
10308 * cp-valprint.c: Include exceptions.h.
10309 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
10310 the baseclass_offset. Handle unavailable base classes. Use
10311 val_print_invalid_address.
10312 * p-valprint.c: Include exceptions.h.
10313 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
10314 when fetching the baseclass_offset. No longer expect
10315 baseclass_offset returning -1. Handle unavailable base classes.
10316 Use val_print_invalid_address.
10317 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
10318 `valaddr' parameter, and change its type to gdb_byte pointer. Add
10319 `embedded_offset' and `val' parameters. Adjust.
10320 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
10321 parameter, and change its type to gdb_byte pointer. Add
10322 `embedded_offset' and `val' parameters. Adjust. No longer expect
10323 baseclass_offset returning -1.
10324 (value_dynamic_cast): Use value_contents_for_printing rather than
10325 value_contents. Adjust.
10326 (search_struct_field): No longer expect baseclass_offset returning
10327 -1.
10328 (search_struct_method): If reading memory from the target is
10329 necessary, wrap it in a new value to pass to baseclass_offset. No
10330 longer expect baseclass_offset returning -1.
10331 (find_method_list): No longer expect baseclass_offset returning
10332 -1. Use value_contents_for_printing rather than value_contents.
10333 * valprint.c (val_print_invalid_address): New function.
10334 * valprint.h (val_print_invalid_address): Declare.
10335 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
10336 and `val' parameters. No longer expect baseclass_offset returning
10337 -1. Adjust.
10338 * gnu-v2-abi.c: Include "exceptions.h".
10339 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
10340 parameters. Handle unavailable memory. Recurse through
10341 gnuv2_baseclass_offset directly, rather than through
10342 baseclass_offset. No longer returns -1 on not found, instead
10343 throw an error.
10344 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
10345 `val' parameters. Adjust.
10346
1b28d0b3
PA
103472011-02-14 Pedro Alves <pedro@codesourcery.com>
10348
10349 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
10350 almost but not quite adjacent.
10351
ec0a52e1
PA
103522011-02-14 Pedro Alves <pedro@codesourcery.com>
10353
10354 * value.h (value_entirely_available): Declare.
10355 * value.c (value_entirely_available): New function.
10356 * c-valprint.c (c_value_print): Don't try fetching the pointer's
10357 real type if the pointer is unavailable.
10358
24e6bcee
PA
103592011-02-14 Pedro Alves <pedro@codesourcery.com>
10360
10361 * valops.c (value_repeat): Use read_value_memory instead of
10362 read_memory.
10363
39d37385
PA
103642011-02-14 Pedro Alves <pedro@codesourcery.com>
10365
10366 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
10367 * value.c (value_contents_copy_raw, value_contents_copy): New
10368 functions.
10369 (value_primitive_field): Use value_contents_copy_raw instead of
10370 memcpy.
10371 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
10372 memcpy.
10373 (value_array, value_slice): Ditto.
10374 * valarith.c (value_subscripted_rvalue): Use
10375 value_contents_copy_raw instead of memcpy.
10376
a3d34bf4
PA
103772011-02-14 Pedro Alves <pedro@codesourcery.com>
10378
10379 <unavailable> references.
10380
10381 * valops.c (get_value_at): Use value_from_contents_and_address,
10382 avoiding read_memory.
10383
9fc6d940
PA
103842011-02-14 Pedro Alves <pedro@codesourcery.com>
10385
10386 * c-valprint.c (c_val_print): Print a string with unavailable
10387 contents as an array.
10388
5467c6c8
PA
103892011-02-14 Pedro Alves <pedro@codesourcery.com>
10390
10391 * value.h (unpack_bits_as_long): Delete declaration.
10392 (unpack_value_bits_as_long): Declare.
10393 (unpack_value_field_as_long): Declare.
10394 (value_field_bitfield): Declare.
10395 * value.c (unpack_bits_as_long): Rename to...
10396 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
10397 value parameters. Return the extracted result in a new output
10398 parameter. If the value contents are unavailable, return false,
10399 otherwise return true.
10400 (unpack_value_bits_as_long): New.
10401 (unpack_field_as_long): Rename to...
10402 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
10403 Add embedded_offset and value parameters. Return the extracted
10404 result in a new output parameter. If the value contents are
10405 unavailable, return false, otherwise return true.
10406 (unpack_value_field_as_long): New.
10407 (unpack_field_as_long_1): New.
10408 (unpack_field_as_long): Reimplement as wrapper around
10409 unpack_value_field_as_long_1.
10410 (value_field_bitfield): New function.
10411 * valops.c (value_fetch_lazy): When fetching a bitfield, use
10412 unpack_value_bits_as_long. Mark the value as unavailable, if it
10413 is unavailable.
10414 * jv-valprint.c (java_print_value_fields): Use
10415 value_field_bitfield.
10416 * p-valprint.c (pascal_object_print_value_fields): Use
10417 value_field_bitfield.
10418 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
10419
3158c6ed
PA
104202011-02-14 Pedro Alves <pedro@codesourcery.com>
10421
10422 * value.c (get_internalvar_integer): Also return the int value of
10423 TYPE_CODE_INT INTERNALVAR_VALUE values.
10424 (set_internalvar): Don't special case TYPE_CODE_INT.
10425
9fbdca0d
PA
104262011-02-14 Pedro Alves <pedro@codesourcery.com>
10427
10428 * value.c (struct internalvar) <enum internalvar_kind>: Remove
10429 INTERNALVAR_POINTER.
10430 <pointer>: Delete.
10431 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
10432 (set_internalvar): Remove special TYPE_CODE_PTR handling.
10433 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
10434
c8c1c22f
PA
104352011-02-14 Pedro Alves <pedro@codesourcery.com>
10436
10437 * value.h (value_available_contents_eq): Declare.
10438 * value.c (find_first_range_overlap): New function.
10439 (value_available_contents_eq): New function.
10440 * valprint.c (val_print_array_elements): Use
10441 value_available_contents_eq.
10442 * ada-valprint.c (val_print_packed_array_elements): Use
10443 value_available_contents_eq.
10444 * jv-valprint.c (java_value_print): Use
10445 value_available_contents_eq.
10446
e6e4e701
PA
104472011-02-14 Pedro Alves <pedro@codesourcery.com>
10448
10449 * target.c (target_read_live_memory): New function.
10450 (memory_xfer_live_readonly_partial): New.
10451 (memory_xfer_partial): If reading from a traceframe, fallback to
10452 reading unavailable read-only memory from read-only regions of
10453 live target memory.
10454 * tracepoint.c (disconnect_tracing): Adjust.
10455 (set_current_traceframe): New, factored out from
10456 set_traceframe_number.
10457 (set_traceframe_number): Reimplement to only change the traceframe
10458 number on the GDB side.
10459 (do_restore_current_traceframe_cleanup): Adjust.
10460 (make_cleanup_restore_traceframe_number): New.
10461 (cur_traceframe_number): New global.
10462 (tfile_open): Set cur_traceframe_number to no traceframe.
10463 (set_tfile_traceframe): New function.
10464 (tfile_trace_find): If looking up a traceframe using any method
10465 other than by number, make sure the current tfile traceframe
10466 matches gdb's current traceframe. Update the current tfile
10467 traceframe if the lookup succeeded.
10468 (tfile_fetch_registers, tfile_xfer_partial)
10469 (tfile_get_trace_state_variable_value): Make sure the remote
10470 traceframe matches gdb's current traceframe.
10471 * remote.c (remote_traceframe_number): New global.
10472 (remote_open_1): Set it to -1.
10473 (set_remote_traceframe): New function.
10474 (remote_fetch_registers, remote_store_registers)
10475 (remote_xfer_memory, remote_xfer_partial)
10476 (remote_get_trace_state_variable_value): Make sure the remote
10477 traceframe matches gdb's current traceframe.
10478 (remote_trace_find): If looking up a traceframe using any method
10479 other than by number, make sure the current remote traceframe
10480 matches gdb's current traceframe. Update the current remote
10481 traceframe if the lookup succeeded.
10482 * infrun.c (fetch_inferior_event): Adjust.
10483 * tracepoint.h (set_current_traceframe): Declare.
10484 (get_traceframe_number, set_traceframe_number): Add describing
10485 comments.
10486
e6ca34fc
PA
104872011-02-14 Pedro Alves <pedro@codesourcery.com>
10488
10489 Mark pieces of values as unavailable if the corresponding memory
10490 is unavailable.
10491
10492 * valops.c: Include tracepoint.h.
10493 (value_fetch_lazy): Use read_value_memory.
10494 (read_value_memory): New.
10495 * value.h (read_value_memory): Declare.
10496 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
10497 * exec.c (section_table_available_memory): New function.
10498 * exec.h (section_table_available_memory): Declare.
10499
2a7498d8
PA
105002011-02-14 Pedro Alves <pedro@codesourcery.com>
10501
10502 * Makefile.in (SFILES): Add memrange.c.
10503 (HFILES_NO_SRCDIR): Add memrange.h.
10504 (COMMON_OBS): Add memrange.o.
10505 * memrange.c: New file.
10506 * memrange.h: New file.
10507 * tracepoint.c: Include memrange.h.
10508 (struct mem_range): Delete.
10509 (mem_range_s): Delete.
10510 (traceframe_available_memory): New function.
10511 * tracepoint.h (traceframe_available_memory): Declare.
10512
b3b9301e
PA
105132011-02-14 Pedro Alves <pedro@codesourcery.com>
10514
10515 * target.h (struct traceframe_info): Forward declare.
10516 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
10517 (struct target_ops) <to_traceframe_info>: New field.
10518 (target_traceframe_info): New.
10519 * target.c (update_current_target): Inherit and default
10520 to_traceframe_info.
10521 * remote.c (PACKET_qXfer_traceframe_info): New.
10522 (remote_protocol_features): Register qXfer:traceframe-info:read.
10523 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
10524 (remote_traceframe_info): New.
10525 (init_remote_ops): Install it.
10526 (_initialize_remote): Install "set/show remote traceframe-info"
10527 commands.
10528 * tracepoint.h (parse_traceframe_info): Declare.
10529 * tracepoint.c (struct mem_range): New.
10530 (mem_range_s): New typedef.
10531 (struct traceframe_info): New.
10532 (traceframe_info): New global.
10533 (free_traceframe_info): New function.
10534 (clear_traceframe_info): New function.
10535 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
10536 info.
10537 (build_traceframe_info): New function.
10538 (tfile_traceframe_info): New function.
10539 (init_tfile_ops): Install tfile_traceframe_info.
10540 (traceframe_info_start_memory, free_result): New functions.
10541 (memory_attributes, traceframe_info_elements): New globals.
10542 (parse_traceframe_info, get_traceframe_info): New functions.
10543 * features/traceframe-info.dtd: New file.
10544 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
10545
4e07d55f
PA
105462011-02-14 Pedro Alves <pedro@codesourcery.com>
10547
10548 Base support for <unavailable> value contents.
10549
4e07d55f
PA
10550 * value.h (value_bytes_available): Declare.
10551 (mark_value_bytes_unavailable): Declare.
10552 * value.c (struct range): New struct.
10553 (range_s): New typedef.
10554 (ranges_overlap): New function.
10555 (range_lessthan): New function.
10556 (ranges_contain_p): New function.
10557 (struct value) <unavailable>: New field.
10558 (value_bytes_available): New function.
10559 (mark_value_bytes_unavailable): New function.
10560 (require_not_optimized_out): Constify parameter.
10561 (require_available): New function.
10562 (value_contents_all, value_contents): Require all bytes be
10563 available.
10564 (value_free): Free `unavailable'.
10565 (value_copy): Copy `unavailable'.
10566 * valprint.h (val_print_unavailable): Declare.
10567 * valprint.c (valprint_check_validity): Rename `offset' parameter
10568 to `embedded_offset'. If printing a scalar, check whether the
10569 value chunk is available.
10570 (val_print_unavailable): New.
10571 (val_print_scalar_formatted): Check whether the value is
10572 available.
10573 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
10574 pretty-printing unavailable values.
10575
bc9a5551
JK
105762011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10577
10578 Fix const/volatile qualifiers of C++ types, PR c++/12328.
10579 * c-typeprint.c (c_type_print_args): Update the function comment. New
10580 variable param_type, initialize it. Remove const/volatile qualifiers
10581 for language_cplus and !show_artificial. Use param_type.
10582
93b55aa1
JK
105832011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10584
10585 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
10586 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
10587 * symtab.h (struct symtab) <next>: Comment extension.
10588
181d9476
YQ
105892011-02-12 Yao Qi <yao@codesourcery.com>
10590
10591 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
10592
b708a5c7
JK
105932011-02-11 Yao Qi <yao@codesourcery.com>
10594
10595 * common/Makefile.in: Add copyright header.
10596
c5187ac6
PA
105972011-02-11 Pedro Alves <pedro@codesourcery.com>
10598
10599 * infrun.c (proceed): Move switching out and in of tfind mode from
10600 here ...
10601 (fetch_inferior_event): ... to here.
10602
4f3e6fb7
YQ
106032011-02-11 Yao Qi <yao@codesourcery.com>
10604
10605 * Makefile.in: Remove signals.o from COMMON_OBS. Link
10606 libcommon.a.
10607 * configure.ac: Add common to sub dir.
10608 * configure: Regenerate.
10609
b708a5c7
JK
106102011-02-11 Yao Qi <yao@codesourcery.com>
10611
10612 Build libcommon.a.
10613
10614 * common/Makefile.in: New.
10615 * common/configure.ac: New.
10616 * common/aclocal.m4: New.
10617 * common/configure: Generate.
10618
2287cc7e
PA
106192011-02-10 Pedro Alves <pedro@codesourcery.com>
10620
10621 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
10622 side of the parenthesis.
10623
10624 Merge from GCC:
10625 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 10626 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 10627
fd62cb89
MS
106282011-02-08 Michael Snyder <msnyder@vmware.com>
10629
10630 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
10631
56d2815c
JK
106322011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10633
10634 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
10635 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
10636 psubd and paddd.
10637
4f7d61a8
JK
106382011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10639
10640 PR 12361.
10641 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
10642 phsubsw.
10643 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
10644 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
10645
54fcddd0
UW
106462011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10647
10648 * dwarf2read.c (read_subroutine_type): Set special calling
10649 convention flag for functions compiled by IBM XL C for OpenCL.
10650 * ppc-sysv-tdep.c: Include "dwarf2.h"
10651 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
10652 calling convention.
10653 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
10654 IBM OpenCL vector types calling convention.
10655 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
10656 (ppc_sysv_abi_broken_return_value): Likewise.
10657 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
10658 types calling convention.
10659 (ppc64_sysv_abi_return_value): Likewise.
10660 * spu-tdep.c: Include "dwarf2.h"
10661 (spu_return_value): Implement IBM OpenCL vector types calling
10662 convention.
10663
d6dafb7c
UW
106642011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
10665
10666 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
10667 correct ABI for AltiVec vector arguments.
10668
32b72a42
PA
106692011-02-07 Pedro Alves <pedro@codesourcery.com>
10670
10671 * valprint.c (val_print): Extend comment.
10672 * ada-valprint.c (ada_valprint): Rewrite comment deferring
10673 interface explanation to val_print.
10674 (ada_val_print_array): Adjust comment to current interface.
10675 (print_field_values): Adjust comment to current interface.
10676 * c-valprint.c (c_val_print): Rewrite comment deferring interface
10677 explanation to val_print.
10678 * f-valprint.c (f_val_print): Ditto.
10679 * jv-valprint.c (java_val_print): Ditto.
10680 * m2-valprint.c (m2_val_print): Ditto.
10681 * p-valprint.c (pascal_val_print): Ditto.
10682
9998af43
TJB
106832011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
10684
10685 * breakpoint.c (parse_breakpoint_sals): Fix description.
10686
505500db 106872011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 10688 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
10689
10690 * python/py-inferior.c (python_on_normal_stop): New function.
10691 (python_on_resume): New function.
10692 (python_inferior_exit): New function.
10693 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
10694 inferior_exit observers.
10695 * python/py-evtregistry.c: New file.
10696 * python/py-threadevent.c : New file.
10697 * python/py-event.c: New file.
10698 * python/py-evts.c: New file.
10699 * python/py-continueevent.c: New file.
10700 * python/py-bpevent.c: New file.
10701 * python/py-signalevent.c: New file.
10702 * python/py-exetiedevent.c: New file.
10703 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
10704 Move struct breakpoint_object from here...
10705 * python/python-internal.h: ... to here.
10706 * python/py-event.h: New file.
10707 * python/py-events.h: New file.
10708 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
10709 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
10710 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
10711 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
10712 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
10713 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
10714 Add build rules for all the above.
10715
9e0ac564
TT
107162011-02-04 Tom Tromey <tromey@redhat.com>
10717
10718 * dwarf2read.c (dwarf2_section_empty_p): New function.
10719 (dwarf2_read_section): Use dwarf2_section_empty_p.
10720 (dwarf2_section_size): New function.
10721 (dwarf2_get_section_info): Unconditionally read section.
10722 (dwarf2_read_index): Use dwarf2_section_empty_p.
10723 (partial_read_comp_unit_head): Use dwarf2_section_size.
10724 (dwarf2_symbol_mark_computed): Likewise.
10725
eee5b35e
DD
107262011-02-04 David Daney <ddaney@caviumnetworks.com>
10727
10728 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
10729
385203ed
DD
107302011-02-04 David Daney <ddaney@caviumnetworks.com>
10731
10732 * mips-linux-tdep.c: Include xml-syscall.h.
10733 (mips_linux_get_syscall_number): New function.
10734 (mips_linux_init_abi): Add calls to
10735 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
10736 * data-directory/Makefile.in (SYSCALLS_FILES): Add
10737 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
10738 * syscalls/mips-n32-linux.xml: New file.
10739 * syscalls/mips-n64-linux.xml: New file.
10740 * syscalls/mips-o32-linux.xml: New file.
10741
9277c30c
UW
107422011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
10743
10744 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
10745 Complain about inverted range entries.
10746 (dwarf2_record_block_ranges): Likewise.
10747
a3be7890
TJB
107482011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
10749
10750 Fix some typos.
10751 * breakpoint.c (update_watchpoint): Fix name of the
10752 update_global_location_list function.
10753 (print_one_breakpoint): Fix typo.
10754 (_initialize_breakpoint): Remove extra space in hbreak help
10755 string.
10756 * breakpoint.h (struct bp_location) <length>: Fix field
10757 description.
10758
041274d8
PA
107592011-02-04 Pedro Alves <pedro@codesourcery.com>
10760
10761 * regcache.c (registers_changed_ptid): Don't explictly always
10762 clear `current_regcache'. Only clear current_thread_ptid and
10763 current_thread_arch when PTID matches. Only reinit the frame
10764 cache if PTID matches the current inferior_ptid. Move alloca(0)
10765 call to ...
10766 (registers_changed): ... here.
10767
c1c2ab58
UW
107682011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
10769
10770 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
10771 starts with __stack_chk_guard as stack guard symbol.
10772
9011945e
AB
107732011-02-03 Andrew Burgess <aburgess@broadcom.com>
10774
10775 * disasm.c (compare_lines): Handle the end of sequence markers
10776 within the line table to better support disassembling over
10777 compilation unit boundaries.
10778
e0634ccf
UW
107792011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10780
10781 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
10782 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
10783 implementation even if no symbols are available.
10784 (thumb_analyze_prologue): Update call to skip_prologue_function.
10785 (arm_analyze_prologue): Likewise.
10786
0e9e9abd
UW
107872011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10788
10789 * arm-tdep.c: Include "observer.h".
10790 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
10791 (arm_exidx_data_key): New static variable.
10792 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
10793 (struct arm_exidx_data): Likewise.
10794 (arm_exidx_data_free): New function.
10795 (arm_compare_exidx_entries): Likewise.
10796 (arm_obj_section_from_vma): Likewise.
10797 (arm_exidx_new_objfile): Likewise.
10798 (arm_find_exidx_entry): Likewise.
10799 (arm_exidx_fill_cache): Likewise.
10800 (arm_exidx_unwind_sniffer): Likewise.
10801 (arm_exidx_unwind): New global variable.
10802 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
10803 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
10804 observer. Register arm_exidx_data_key as objfile data.
10805
2e9e421f
UW
108062011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
10807
10808 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
10809 due to accessing uninitialized variable. Fix indentation.
10810
580688f3
PA
108112011-02-02 Pedro Alves <pedro@codesourcery.com>
10812
10813 * c-valprint.c (c_value_print): When doing virtual base pointer
10814 adjustment, create a new value with adjusted contents rather than
10815 changing the contents of the value being printed (and getting it
10816 wrong).
10817
3d2c1d41
PA
108182011-02-02 Pedro Alves <pedro@codesourcery.com>
10819
10820 * xml-support.c (xml_find_attribute): New.
10821 (xinclude_start_include): Use it.
10822 * xml-support.h (xml_find_attribute): Declare.
10823 * memory-map.c (memory_map_start_memory)
10824 (memory_map_start_property): Use xml_find_attribute.
10825 * osdata.c (osdata_start_osdata, osdata_start_column): Use
10826 xml_find_attribute.
10827 * remote.c (start_thread): Use xml_find_attribute.
10828 * solib-target.c (library_list_start_segment)
10829 (library_list_start_section, library_list_start_library)
10830 (library_list_start_list): Use xml_find_attribute.
10831 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
10832 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
10833 (tdesc_start_field): Use xml_find_attribute.
10834
0af3e2db
UW
108352011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
10836
10837 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
10838 (BUILD_OCL_VTYPES): Update.
10839
c1039e3c
JB
108402011-02-02 Joel Brobecker <brobecker@adacore.com>
10841
10842 * configure.ac: Work around non-GNU sed limitation when computing
10843 python version number.
10844 * configure: Regenerate.
10845
600ea1be
JK
108462011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10847
10848 Fix debug printing of TYPE_INSTANCE.
10849 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
10850 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
10851
56c12414
JK
108522011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10853
10854 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
10855 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
10856 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
10857 * ada-operator.inc: Rename the file to ...
10858 * ada-operator.def: ... here, wrap all the entries by macro OP.
10859 * expprint.c (op_name_standard): Remove all the entries. Include
10860 "std-operator.def" instead.
10861 * expression.h (enum exp_opcode): Include "std-operator.def" and
10862 "ada-operator.def". Move all the entries ...
10863 * std-operator.def: ... here, wrap all the entries by macro OP.
10864
c52b559d
PP
108652011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
10866
10867 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
10868 * breakpoint.c (remove_jit_event_breakpoints): New function.
10869 * jit.c (jit_descriptor_addr): Delete.
10870 (registering_code): Delete.
10871 (clear_int): Delete.
10872 (jit_inferior_data): New variable.
10873 (struct jit_inferior_data): New type.
10874 (get_jit_inferior_data): New function.
10875 (jit_inferior_data_cleanup): New function.
10876 (jit_read_descriptor): Adjust.
10877 (jit_register_code): Adjust.
10878 (jit_breakpoint_re_set_internal): New function; move code here ...
10879 (jit_inferior_init): ... from here.
10880 (jit_breakpoint_re_set): Adjust.
10881 (jit_reset_inferior_data_and_breakpoints): New function.
10882 (jit_inferior_created_observer): Adjust.
10883 (jit_inferior_exit_hook): Adjust.
10884 (jit_executable_changed_observer): New function.
10885 (jit_event_handler): Adjust.
10886 (_initialize_jit): Adjust.
10887
e839132d
MS
108882011-01-31 Michael Snyder <msnyder@vmware.com>
10889
10890 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
10891 line.
10892
47a80e90
TT
108932011-01-31 Tom Tromey <tromey@redhat.com>
10894
10895 PR python/12216:
10896 * python/python.c (execute_gdb_command): Call
10897 prevent_dont_repeat.
10898 * top.c (suppress_dont_repeat): New global.
10899 (dont_repeat): Use it.
10900 (prevent_dont_repeat): New function.
10901 * command.h (prevent_dont_repeat): Declare.
10902
45a43567
TT
109032011-01-31 Tom Tromey <tromey@redhat.com>
10904
10905 * infcmd.c (finish_backward): Use breakpoint_set_silent.
10906 * python/py-breakpoint.c (bppy_set_silent): Use
10907 breakpoint_set_silent.
10908 (bppy_set_thread): Use breakpoint_set_thread.
10909 (bppy_set_task): Use breakpoint_set_task.
10910 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
10911 (breakpoint_set_task): Declare.
10912 (make_breakpoint_silent): Remove.
10913 * breakpoint.c (breakpoint_set_silent): New function.
10914 (breakpoint_set_thread): Likewise.
10915 (breakpoint_set_task): Likewise.
10916 (make_breakpoint_silent): Remove.
10917
09d682a4
TT
109182011-01-31 Tom Tromey <tromey@redhat.com>
10919
10920 * breakpoint.h (user_breakpoint_p): Declare.
10921 * breakpoint.c (user_breakpoint_p): New function.
10922 (breakpoint_1): Use it.
10923 (save_breakpoints): Likewise.
10924
9c4ea6c5
JB
109252011-01-31 Joel Brobecker <brobecker@adacore.com>
10926
10927 * configure.ac: Add handling of Python distribution on Windows.
10928 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
10929 sysconfig variables are not defined, then do not use them.
10930 On Windows, if LIBPL is not defined, then use prefix + '/libs'
10931 instead. On Windows, return all paths using forward-slashes
10932 rather than backslashes.
10933
ac534cba
JB
109342011-01-31 Joel Brobecker <brobecker@adacore.com>
10935
10936 * configure.ac: Remove fallback behavior for building
10937 against Python. Remove tweaking of Python include path.
10938 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
10939 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
10940 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
10941 Always restore CPPFLAGS and LIBS after linking test.
10942 * configure: Regenerated.
10943 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
10944 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
10945 * python/python-internal.h: Adjust includes of Python .h files.
10946
c2f0d045
JB
109472011-01-31 Joel Brobecker <brobecker@adacore.com>
10948
10949 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
10950 in error message.
10951
6b0c4c1f
JB
109522011-01-31 Joel Brobecker <brobecker@adacore.com>
10953
10954 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
10955 value test.
10956
672c9795
YQ
109572011-01-31 Yao Qi <yao@codesourcery.com>
10958
10959 * arm-linux-nat.c: Update calls to regcache_register_status
10960 instead of regcache_valid_p.
10961 * aix-thread.c: Likewise.
10962 * i386gnu-nat.c: Likewise.
10963
80b23b6a
JK
109642011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10965
10966 Fix crash.
10967 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
10968 touching TYPE_FIELD_ARTIFICIAL.
10969
4cd712bd
RE
109702011-01-28 Richard Earnshaw <rearnsha@arm.com>
10971
10972 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
10973 Committers.
10974
ffd5ec24
PA
109752011-01-28 Pedro Alves <pedro@codesourcery.com>
10976
10977 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
10978 selected, don't try iterating over the traceframe's blocks.
10979 (tfile_has_stack): If there's no traceframe selected, then there's
10980 no stack.
10981 (tfile_has_registers): If there's no traceframe selected, then
10982 there's no registers.
10983
e8c9e0a1
PA
109842011-01-28 Pedro Alves <pedro@codesourcery.com>
10985
10986 * target.c (memory_xfer_partial): No need to restore shadows if we
10987 haven't read anything.
10988
de15c4ab
PA
109892011-01-28 Pedro Alves <pedro@codesourcery.com>
10990
10991 * mips-tdep.c (mips_print_register): Use get_frame_register_value
10992 and val_print_scalar_formatted.
10993
9f41c731
PA
109942011-01-27 Pedro Alves <pedro@codesourcery.com>
10995
10996 * tracepoint.c (tfile_read): New.
10997 (tfile_open): Use it.
10998 (tfile_get_traceframe_address): Use it.
10999 (tfile_trace_find): Use it.
11000 (walk_blocks_callback_func): New typedef.
11001 (match_blocktype): New function.
11002 (traceframe_walk_blocks): New function.
11003 (traceframe_find_block_type): New function.
11004 (tfile_fetch_registers, tfile_xfer_partial)
11005 (tfile_get_trace_state_variable_value): Use
11006 traceframe_find_block_type and tfile_read.
11007
cdefc55d
KB
110082011-01-26 Kevin Buettner <kevinb@redhat.com>
11009
11010 * remote-mips.c: Add internationalization mark ups. Remove
11011 trailing \n from already marked up strings.
11012
a81766d8
TT
110132011-01-26 Tom Tromey <tromey@redhat.com>
11014
11015 * python/py-prettyprint.c (print_string_repr): Clear
11016 'addressprint' option when calling val_print_string.
11017 (print_children): Handle Val_pretty_default. Clear 'addressprint'
11018 option when calling val_print_string.
11019
74aedc46
TT
110202011-01-26 Tom Tromey <tromey@redhat.com>
11021
11022 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
11023 GDB_PY_LL_ARG.
11024 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
11025 macros.
11026 (gdb_py_longest, gdb_py_ulongest): New typedefs.
11027 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
11028 (gdb_py_long_as_ulongest): New defines.
11029 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
11030 (gdb_py_int_as_long): Declare.
11031 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
11032 GDB_PY_LL_ARG, gdb_py_object_from_longest.
11033 (valpy_long): Add comment.
11034 * python/py-utils.c (get_addr_from_python): Use
11035 gdb_py_long_as_ulongest. Handle overflow properly.
11036 (gdb_py_object_from_longest): New function.
11037 (gdb_py_object_from_ulongest): Likewise.
11038 (gdb_py_int_as_long): Likewise.
11039 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
11040 * python/py-symtab.c (salpy_get_pc): Use
11041 gdb_py_long_from_ulongest.
11042 (salpy_get_line): Use PyInt_FromLong.
11043 * python/py-param.c (set_parameter_value): Use
11044 gdb_py_int_as_long.
11045 * python/py-lazy-string.c (stpy_get_address): Use
11046 gdb_py_long_from_ulongest.
11047 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
11048 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
11049 * python/py-breakpoint.c (bppy_set_thread): Use
11050 gdb_py_int_as_long.
11051 (bppy_set_task): Likewise.
11052 (bppy_set_ignore_count): Likewise.
11053 (bppy_set_hit_count): Likewise.
11054 * python/py-block.c (blpy_get_start): Use
11055 gdb_py_object_from_ulongest.
11056 (blpy_get_end): Likewise.
11057 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
11058
e4f6d2ec
TJB
110592011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
11060
11061 PR/symtab 11766:
11062 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
11063 * gdb/solib.c (solib_read_symbols): Check for addr_low in
11064 equality test for objfile, initialize addr_low if needed.
11065
b30aa278
PA
110662011-01-25 Pedro Alves <pedro@codesourcery.com>
11067
11068 * tui/tui-regs.c (tui_register_format): Remove dead code.
11069
ab2188aa
PA
110702011-01-25 Pedro Alves <pedro@codesourcery.com>
11071
11072 * printcmd.c (print_formatted): Use val_print_scalar_formatted
11073 instead of print_scalar_formatted.
11074 (print_scalar_formatted): Don't handle 's' format strings here,
11075 and add an assertion that we never see such format here.
11076 * valprint.h (val_print_scalar_formatted): Declare.
11077 * valprint.c (val_print_scalar_formatted): New.
11078 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
11079 instead of print_scalar_formatted.
11080 * jv-valprint.c (java_val_print): Ditto.
11081 * p-valprint.c (pascal_val_print): Ditto.
11082 * ada-valprint.c (ada_val_print_1): Ditto.
11083 * f-valprint.c (f_val_print): Ditto.
11084 * infcmd.c (registers_info): Ditto.
11085 * m2-valprint.c (m2_val_print): Ditto.
11086
66d61a4c
PA
110872011-01-25 Pedro Alves <pedro@codesourcery.com>
11088
11089 * m2-valprint.c (print_unbounded_array): Pass
11090 value_contents_for_printing rather than value_contents, to
11091 m2_print_array_contents. Also pass in the value.
11092
831adc1f
JK
110932011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
11094
11095 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
11096 (save_gdb_index_command): Switch to .gdb_index version 4.
11097
20622269
PA
110982011-01-25 Pedro Alves <pedro@codesourcery.com>
11099
11100 * mi/mi-main.c (get_register): Use get_frame_register_value rather
11101 than frame_register, and always pass a valid value to val_print.
11102
585fdaa1
PA
111032011-01-25 Pedro Alves <pedro@codesourcery.com>
11104
11105 Centralize printing "<optimized out>".
11106
11107 * valprint.h (val_print_optimized_out): Declare.
11108 * cp-valprint.c (cp_print_value_fields): Use
11109 val_print_optimized_out.
11110 * jv-valprint.c (java_print_value_fields): Ditto.
11111 * p-valprint.c (pascal_object_print_value_fields): Ditto.
11112 * printcmd.c (print_formatted): Ditto.
11113 * valprint.c (valprint_check_validity): Ditto.
11114 (value_check_printable): Ditto.
11115 (val_print_optimized_out): New.
11116
29ec5263
PA
111172011-01-25 Pedro Alves <pedro@codesourcery.com>
11118
11119 * infcmd.c (default_print_registers_info): Allocate values so to
11120 never pass a NULL value to val_print.
11121
de4127a3
PA
111222011-01-25 Pedro Alves <pedro@codesourcery.com>
11123
11124 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
11125 boolean. Make sure to always pass a value that matches the
11126 contents buffer to callees. Preserve `address' for following
11127 iterations.
11128 * value.c (value_contents_for_printing_const): New.
11129 (value_address): Constify value argument.
11130 * value.h (value_contents_for_printing_const): Declare.
11131 (value_address): Constify value argument.
11132
ee99023e
PA
111332011-01-25 Pedro Alves <pedro@codesourcery.com>
11134
11135 * regcache.c (struct regcache_descr): Rename
11136 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
11137 and sizeof_cooked_register_valid_p to
11138 sizeof_cooked_register_status.
11139 (init_regcache_descr): Adjust.
11140 (struct regcache): Rename register_valid_p field to
11141 register_status.
11142 (regcache_xmalloc_1, regcache_xfree, regcache_save)
11143 (do_cooked_read): Adjust.
11144 (regcache_valid_p): Rename to ...
11145 (regcache_register_status): ... this. Adjust.
11146 (regcache_invalidate): Adjust.
11147 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
11148 Adjust.
11149 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
11150 as unavailable, not valid.
11151 (regcache_dump): Adjust.
11152 * regcache.h (enum register_status): New.
11153 (regcache_register_status): Declare.
11154 (regcache_invalidate): Delete declaration.
11155 * corelow.c (get_core_registers): Adjust.
11156 * tracepoint.c (tfile_fetch_registers): Adjust.
11157 * trad-frame.c (REG_VALUE): Rename to ...
11158 (TF_REG_VALUE): ... this.
11159 (REG_UNKNOWN): Rename to ...
11160 (TF_REG_UNKNOWN): ... this.
11161 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
11162 * mi/mi-main.c (register_changed_p): Adjust.
11163
99e42fd8
PA
111642011-01-25 Pedro Alves <pedro@codesourcery.com>
11165
11166 * regcache.c (struct regcache_descr): Remove outdated comment.
11167 (init_regcache_descr): Remove sizeof_raw_register_valid_p
11168 overallocate hack.
11169 (regcache_xmalloc): Rename to ...
11170 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
11171 Allocate the regcache type accordingly.
11172 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
11173 (regcache_xfree): Asser the source is also readonly. Copy sizeof
11174 cooked registers, not raw.
11175 (regcache_dup_no_passthrough): Delete.
11176 (get_thread_arch_regcache): Use regcache_xmalloc_1.
11177 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
11178 mention obsolete write_register_bytes.
11179 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
11180
f7605bc2
PA
111812011-01-25 Pedro Alves <pedro@codesourcery.com>
11182
11183 Stop remote_read_bytes from handling partial reads itself.
11184
11185 * remote-fileio.c: Include target.h.
11186 (remote_fileio_write_bytes): Delete.
11187 (remote_fileio_func_open, remote_fileio_func_write)
11188 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
11189 target_read_memory.
11190 (remote_fileio_func_stat): Use target_read_memory and
11191 target_write_memory.
11192 (remote_fileio_func_gettimeofday): Use target_write_memory.
11193 (remote_fileio_func_system): Use target_read_memory.
11194 * remote.c (remote_write_bytes): Make it static.
11195 (remote_read_bytes): Don't handle partial reads here.
11196 * remote.h (remote_read_bytes): Delete declaration.
11197
efc0eabd
PA
111982011-01-25 Pedro Alves <pedro@codesourcery.com>
11199
11200 Simplify XML parsing a bit.
11201
11202 * xml-support.h (gdb_xml_parse_quick): Declare.
11203 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
11204 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
11205 parameter.
11206 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
11207 gdb_xml_create_parser_and_cleanup_1.
11208 (gdb_xml_parse_quick): New.
11209 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
11210 * osdata.c (osdata_parse): Ditto.
11211 * remote.c (remote_threads_info): Ditto.
11212 * solib-target.c (solib_target_parse_libraries): Ditto.
11213 * xml-syscall.c (syscall_parse_xml): Ditto.
11214 * xml-tdesc.c (tdesc_parse_xml): Ditto.
11215
314d366a
KB
112162011-01-24 Kevin Buettner <kevinb@redhat.com>
11217
11218 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
11219 with remote-mips.o added to gdb_target_obs.
11220 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
11221
a491d753
PA
112222011-01-24 Pedro Alves <pedro@codesourcery.com>
11223
11224 * ada-valprint.c (val_print_packed_array_elements): Pass the
11225 correct struct value to val_print.
11226 (ada_val_print_1): Ditto.
11227
490f124f
PA
112282011-01-24 Pedro Alves <pedro@codesourcery.com>
11229
11230 Don't lose embedded_offset in printing routines throughout.
11231
11232 * valprint.h (val_print_array_elements): Change prototype.
11233 * valprint.c (val_print_array_elements): Add `embedded_offset'
11234 parameter, and adjust to pass it down to val_print, while passing
11235 `valaddr' or `address' unmodified. Take embedded_offset into
11236 account when checking repetitions.
11237 * c-valprint.c (c_val_print): Pass embedded_offset to
11238 val_print_array_elements instead of adjusting `valaddr' and
11239 `address'.
11240 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
11241 embedded_offset to val_print_array_elements instead of adjusting
11242 `valaddr'.
11243 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
11244 * p-valprint.c (pascal_val_print): Pass embedded_offset to
11245 val_print_array_elements and pascal_object_print_value_fields
11246 instead of adjusting `valaddr'.
11247 (pascal_object_print_value_fields): Add `offset' parameter, and
11248 adjust to use it.
11249 (pascal_object_print_value): Add `offset' parameter, and adjust to
11250 use it.
11251 (pascal_object_print_static_field): Use
11252 value_contents_for_printing/value_embedded_offset, rather than
11253 value_contents.
11254 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
11255 parameter, and adjust to use it. Use
11256 value_contents_for_printing/value_embedded_offset, rather than
11257 value_contents.
11258 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
11259 (ada_val_print_array): Add `offset' parameter, and adjust to use
11260 it.
11261 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
11262 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
11263 Instead work with offsets. Use
11264 value_contents_for_printing/value_embedded_offset, rather than
11265 value_contents. Change `defer_val_int' local type to CORE_ADDR,
11266 and use value_from_pointer to extract a target pointer, rather
11267 than value_from_longest.
11268 (print_variant_part): Add `offset' parameter. Replace
11269 `outer_valaddr' parameter by a new `outer_offset' parameter.
11270 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11271 (ada_value_print): Use
11272 value_contents_for_printing/value_embedded_offset, rather than
11273 value_contents.
11274 (print_record): Add `offset' parameter, and adjust to pass it
11275 down.
11276 (print_field_values): Add `offset' parameter. Replace
11277 `outer_valaddr' parameter by a new `outer_offset' parameter.
11278 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11279 Use value_contents_for_printing/value_embedded_offset, rather than
11280 value_contents.
11281 * d-valprint.c (dynamic_array_type): Use
11282 value_contents_for_printing/value_embedded_offset, rather than
11283 value_contents.
11284 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
11285 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
11286 (java_print_value_fields): Take `offset' into account. Don't
11287 re-adjust `valaddr'. Instead pass down adjusted offsets.
11288 (java_val_print): Take `embedded_offset' into account. Pass it to
11289 java_print_value_fields.
11290 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
11291 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
11292 down adjusted offsets.
11293 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
11294 (f_val_print): Take `embedded_offset' into account.
11295
7bfc9434
JB
112962011-01-21 Joel Brobecker <brobecker@adacore.com>
11297
11298 * inflow.c: Include "gdbcmd.h".
11299 (interactive_mode): New static global, moved here from top.c.
11300 (show_interactive_mode): New function, moved here from top.c.
11301 use gdb_has_a_terminal instead of input_from_terminal_p to
11302 determine the current mode.
11303 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
11304 setting.
11305 (_initialize_inflow): Add the "set/show interactive-mode"
11306 commands. Moved here from top.c, after having adjusted slightly
11307 the help text.
11308 * top.c (interactive_mode, show_interactive_mode): Delete, moved
11309 to inflow.c.
11310 (input_from_terminal_p): Remove handling of "interactive-mode"
11311 setting, moved to infow.c.
11312 (init_main): Remove creation of the "set/show interactive-mode"
11313 commands, moved to inflow.c.
11314
44603653
JB
113152011-01-19 Joel Brobecker <brobecker@adacore.com>
11316
11317 * NEWS: Add entry for native ia64-hpux support.
11318
4694da01
TT
113192011-01-19 Tom Tromey <tromey@redhat.com>
11320
11321 PR mi/8618:
11322 * thread.c (free_thread): Free 'name'.
11323 (print_thread_info): Emit thread name. Change CLI output.
11324 (thread_name_command): New function.
11325 (do_captured_thread_select): Emit newline.
11326 (_initialize_thread): Register 'thread name' command.
11327 * target.h (struct target_ops) <to_thread_name>: New field.
11328 (target_thread_name): New macro.
11329 * target.c (update_current_target): Handle to_thread_name.
11330 * python/py-infthread.c (thpy_get_name): New function.
11331 (thpy_set_name): Likewise.
11332 (thread_object_getset): Add "name".
11333 * linux-nat.c (linux_nat_thread_name): New function.
11334 (linux_nat_add_target): Set to_thread_name.
11335 * gdbthread.h (struct thread_info) <name>: New field.
11336
10d44370
JB
113372011-01-18 Joel Brobecker <brobecker@adacore.com>
11338
11339 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
11340 (ada_val_print_1): Likewise.
11341
e3acb115
JB
113422011-01-18 Joel Brobecker <brobecker@adacore.com>
11343
11344 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
11345 upper limit address is not greater than the function end address
11346 when the upper limit could not be computed using the debugging
11347 info.
11348
dc92e161
TT
113492011-01-17 Tom Tromey <tromey@redhat.com>
11350
11351 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
11352 get_regcomp_error.
11353 * utils.c: Include gdb_regex.h.
11354 (do_regfree_cleanup): New function.
11355 (make_regfree_cleanup): Likewise.
11356 (get_regcomp_error): Likewise.
11357 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
11358
f55af66d
TT
113592011-01-17 Tom Tromey <tromey@redhat.com>
11360
11361 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
11362 re_compile_fastmap.
11363
a5a44b53
PM
113642011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
11365
11366 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
11367 for internal variables.
11368 (last_was_structop): New static variable.
11369 (COMPLETE): New token.
11370 (field_exp): New rule to group all '.' suffix handling.
11371 Add mark_struct_expression calls when approriate to be able
11372 to correctly find fields for completion.
11373 (yylex): Adapt to handle field completion and set INTVAR when
11374 required.
11375
2c291032
YQ
113762011-01-14 Yao Qi <yao@codesourcery.com>
11377
11378 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
11379 save_reggroup, restore_reggroup and all_reggroup.
11380
447b483c
JB
113812011-01-14 Joel Brobecker <brobecker@adacore.com>
11382
11383 * ada-valprint. (ada_printchar): Use the correct type length
11384 in call to ada_emit_char.
11385 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
11386
7b64a93b
PM
113872011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
11388
11389 * solib-som.h (hpux_major_release): Declare variable here.
11390 * solib-som.c: Remove <sys/utsname.h> header.
11391 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
11392 (hpux_major_release): Make global, change default value to
11393 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 11394 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
11395 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
11396 Add "solib-som.h" header.
11397 (set_hpux_major_release): New function.
11398 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
11399
4e18c053
MF
114002011-01-14 Mike Frysinger <vapier@gentoo.org>
11401
11402 * configure.tgt (*-*-uclinux*): Match more Linux os targets
11403
a9df6b22
JB
114042011-01-14 Joel Brobecker <brobecker@adacore.com>
11405
11406 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
11407 new-line at end of warning message.
11408 (ia64_hpux_store_register): Remove trailing new-line at end of
11409 error message.
11410 * ia64-hpux-tdep.c: Rephrase comment.
11411 * solib-ia64-hpux.c (struct dld_info): Change type of field
11412 dld_flags from "long long" to ULONGEST.
11413
ecb956dd
PA
114142011-01-14 Pedro Alves <pedro@codesourcery.com>
11415
11416 * target.h (deprecated_child_ops): Delete declaration.
11417 * target.c (deprecated_child_ops): Delete definition.
11418
76adfcae
PA
114192011-01-14 Pedro Alves <pedro@codesourcery.com>
11420
11421 * Makefile.in (hpux-thread.o): Delete rule.
11422 * configure.ac: Don't check for HPUX DCE threads support.
11423 * configure, config.in: Regenerate.
11424 * hppa-hpux-nat.c (child_suppress_run): Delete.
11425 (hppa_hpux_child_can_run): Delete.
11426 (_initialize_hppa_hpux_nat): Don't override to_can_run.
11427 * hpux-thread.c: Delete.
11428
042e866e
JB
114292011-01-13 Joel Brobecker <brobecker@adacore.com>
11430
11431 * hpux-thread.c (hpux_pid_to_str): Delete.
11432
4ffa5a33
JB
114332011-01-13 Joel Brobecker <brobecker@adacore.com>
11434
11435 * ada-valprint.c (ada_emit_char): Remove strange code.
11436 Check that c is <= UCHAR_MAX before passing it to isascii.
11437 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
11438
de8fa76c
JB
114392011-01-13 Joel Brobecker <brobecker@adacore.com>
11440
11441 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
11442 to the case where instream is stdin.
11443
c4de7027
JB
114442011-01-13 Joel Brobecker <brobecker@adacore.com>
11445
11446 * ia64-tdep.h (struct regcache): Forward declare.
11447 (struct ia64_infcall_ops): New struct type.
11448 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
11449 and "infcall_ops".
11450 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
11451 Renames ia64_find_global_pointer.
11452 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
11453 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
11454 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
11455 methods.
11456 (ia64_infcall_ops): New static global constant.
11457 (ia64_gdbarch_init): Set tdep->infcall_ops.
11458 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
11459 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
11460 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
11461 (ia64_hpux_dummy_code): New static global constant.
11462 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
11463 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
11464 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
11465 New function.
11466 (ia64_hpux_infcall_ops): New static global constant.
11467 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
11468 for inferior function calls to work properly on ia64-hpux.
11469
77ca787b
JB
114702011-01-13 Joel Brobecker <brobecker@adacore.com>
11471
11472 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
11473 * ia64-tdep.h (struct frame_info): forward declaration.
11474 (struct gdbarch_tdep): Add field size_of_register_frame.
11475 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
11476 to determine the size of the register frame.
11477 (ia64_size_of_register_frame): New function.
11478 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
11479 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
11480 (IA64_HPUX_UREG_REASON): New macro.
11481 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
11482 New functions.
11483 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
11484 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
11485 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
11486 objects.
11487
92c9a463
JB
114882011-01-13 Joel Brobecker <brobecker@adacore.com>
11489
11490 Add support for ia64-hpux.
11491 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
11492 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
11493
11494 * configure.host: Add handling for ia64-hpux hosts. Add associated
11495 floatformats.
11496 * configure.tgt: Add handling for ia64-hpux targets.
11497 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
11498 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
11499 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
11500
f688d93f
JB
115012011-01-13 Joel Brobecker <brobecker@adacore.com>
11502
11503 [ttrace] Compute thread list immediately after attach.
11504 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
11505 New subprogram.
11506 (inf_ttrace_attach): Use it.
11507
1b89e62f
JB
115082011-01-13 Joel Brobecker <brobecker@adacore.com>
11509
11510 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
11511 if we could not determine the frame's function address. Instead,
11512 use the frame's PC, and then continue.
11513
3e5e6e2a
JB
115142011-01-13 Joel Brobecker <brobecker@adacore.com>
11515
11516 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
11517 not already defined.
11518
825d6d8a
JB
115192011-01-13 Joel Brobecker <brobecker@adacore.com>
11520
11521 * ia64-tdep.c (ia64_struct_type_p): New function.
11522 (ia64_extract_return_value): Handle integral values that are
11523 less than 8 bytes long.
11524 (ia64_push_dummy_call): Likewise.
11525
7458e667
JB
115262011-01-13 Joel Brobecker <brobecker@adacore.com>
11527
11528 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
11529 floatformat_ia64_ext.
11530 (floatformat_ia64_ext_big): New static const.
11531 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
11532
1b05df00
TT
115332011-01-12 Tom Tromey <tromey@redhat.com>
11534
11535 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
11536 messages.
11537 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
11538 (mi_cmd_thread_list_ids): Likewise.
11539 (mi_cmd_data_list_changed_registers): Likewise.
11540 (mi_cmd_data_list_register_values): Likewise.
11541 (mi_cmd_data_write_register_values): Likewise.
11542 (mi_cmd_data_evaluate_expression): Likewise.
11543 (mi_cmd_data_read_memory): Likewise.
11544 (mi_cmd_data_read_memory_bytes): Likewise.
11545 (mi_cmd_data_write_memory): Likewise.
11546 (mi_cmd_enable_timings): Likewise.
11547 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
11548 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
11549 (mi_cmd_var_delete): Likewise.
11550 (mi_cmd_var_set_format): Likewise.
11551 (mi_cmd_var_show_format): Likewise.
11552 (mi_cmd_var_info_num_children): Likewise.
11553 (mi_cmd_var_list_children): Likewise.
11554 (mi_cmd_var_info_type): Likewise.
11555 (mi_cmd_var_info_expression): Likewise.
11556 (mi_cmd_var_show_attributes): Likewise.
11557 (mi_cmd_var_assign): Likewise.
11558 (mi_cmd_var_update): Likewise.
11559 (mi_cmd_enable_pretty_printing): Likewise.
11560 (mi_cmd_var_set_update_range): Likewise.
11561 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
11562 messages.
11563 (mi_cmd_target_file_put): Likewise.
11564 (mi_cmd_target_file_delete): Likewise.
11565 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
11566 messages.
11567 (mi_cmd_stack_info_depth): Likewise.
11568 (mi_cmd_stack_list_locals): Likewise.
11569 (mi_cmd_stack_list_args): Likewise.
11570 (mi_cmd_stack_select_frame): Likewise.
11571 (mi_cmd_stack_select_frame): Likewise.
11572 (mi_cmd_stack_info_frame): Likewise.
11573 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
11574 messages.
11575 (mi_cmd_file_list_exec_source_files): Likewise.
11576 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
11577 (mi_cmd_env_cd): Likewise.
11578 (mi_cmd_env_path): Likewise.
11579 (mi_cmd_env_dir): Likewise.
11580 (mi_cmd_inferior_tty_show): Likewise.
11581 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
11582 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
11583 (mi_cmd_break_watch): Likewise.
11584
ad422571
TJB
115852011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
11586
11587 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
11588 (ppc_linux_insert_hw_breakpoint): Likewise.
11589 (ppc_linux_remove_hw_breakpoint): Likewise.
11590 (ppc_linux_insert_watchpoint): Likewise.
11591
c2ff108b
JK
115922011-01-12 Andrew Burgess <aburgess@broadcom.com>
11593 Jan Kratochvil <jan.kratochvil@redhat.com>
11594
11595 PR fortran/11104 and DWARF unbound arrays detection.
11596 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
11597 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
11598 unspecified upper bound.
11599 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
11600 variables array_size_array, tmp_type and offset_item. New variable
11601 array. Remove call to f77_get_upperbound. New variables array_type
11602 and index. Call value_subscripted_rvalue for each dimenasion. Remove
11603 the final call to deprecated_set_value_type.
11604
41e8491f
JK
116052011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11606
11607 Make value allocations more lazy.
11608 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
11609 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 11610 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
11611 instead of allocate_value and set_value_lazy.
11612 * findvar.c (value_of_register_lazy): Likewise.
11613 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 11614 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
11615 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
11616 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
11617 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
11618 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
11619 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
11620 the end, remove set_value_lazy there.
11621 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
11622 instead of allocate_value and set_value_lazy when possible.
11623 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
11624 * value.c (allocate_computed_value): Use allocate_value_lazy instead
11625 of allocate_value and set_value_lazy.
11626 (value_from_contents_and_address): Use allocate_value_lazy instead of
11627 allocate_value and set_value_lazy when possible.
11628
b716877b
AB
116292011-01-12 Andrew Burgess <aburgess@broadcom.com>
11630
11631 * disasm.c (dump_insns): Support dumping opcodes for MI.
11632 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
11633 dumping of instruction opcodes.
11634
d5ae309f
JB
116352011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
11636
11637 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
11638 appropiately.
11639
98871305
TT
116402011-01-11 Tom Tromey <tromey@redhat.com>
11641
11642 * thread.c (do_captured_thread_select): Emit newline before
11643 printing frame.
11644
c378eb4e
MS
116452011-01-11 Michael Snyder <msnyder@vmware.com>
11646
11647 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
11648 * score-tdep.c: Ditto.
11649 * score-tdep.h: Ditto.
11650 * ser-base.c: Ditto.
11651 * ser-go32.c: Ditto.
11652 * serial.c: Ditto.
11653 * serial.h: Ditto.
11654 * ser-mingw.c: Ditto.
11655 * ser-pipe.c: Ditto.
11656 * ser-tcp.c: Ditto.
11657 * ser-unix.c: Ditto.
11658 * sh64-tdep.c: Ditto.
11659 * shnbsd-nat.c: Ditto.
11660 * sh-tdep.c: Ditto.
11661 * sh-tdep.h: Ditto.
11662 * solib.c: Ditto.
11663 * solib-darwin.c: Ditto.
11664 * solib-frv.c: Ditto.
11665 * solib.h: Ditto.
11666 * solib-irix.c: Ditto.
11667 * solib-osf.c: Ditto.
11668 * solib-pa64.c: Ditto.
11669 * solib-som.c: Ditto.
11670 * solib-spu.c: Ditto.
11671 * solib-sunos.c: Ditto.
11672 * solib-svr4.c: Ditto.
11673 * solist.h: Ditto.
11674 * sol-thread.c: Ditto.
11675 * somread.c: Ditto.
11676 * source.c: Ditto.
11677 * source.h: Ditto.
11678 * sparc64-linux-tdep.c: Ditto.
11679 * sparc64-tdep.c: Ditto.
11680 * sparc-linux-nat.c: Ditto.
11681 * sparc-linux-tdep.c: Ditto.
11682 * sparc-sol2-nat.c: Ditto.
11683 * sparc-sol2-tdep.c: Ditto.
11684 * sparc-tdep.c: Ditto.
11685 * sparc-tdep.h: Ditto.
11686 * spu-tdep.c: Ditto.
11687 * stabsread.c: Ditto.
11688 * stabsread.h: Ditto.
11689 * stack.c: Ditto.
11690 * symfile.c: Ditto.
11691 * symfile.h: Ditto.
11692 * symmisc.c: Ditto.
11693 * symtab.c: Ditto.
11694 * symtab.h: Ditto.
11695 * target.c: Ditto.
11696 * target-descriptions.c: Ditto.
11697 * target-descriptions.h: Ditto.
11698 * target.h: Ditto.
11699 * target-memory.c: Ditto.
11700 * terminal.h: Ditto.
11701 * thread.c: Ditto.
11702 * top.c: Ditto.
11703 * tracepoint.c: Ditto.
11704 * tracepoint.h: Ditto.
11705 * trad-frame.h: Ditto.
11706 * typeprint.c: Ditto.
11707
581e13c1
MS
117082011-01-11 Michael Snyder <msnyder@vmware.com>
11709
11710 * ui-file.c: Comment cleanup, mostly periods and spaces.
11711 * ui-file.h: Ditto.
11712 * ui-out.c: Ditto.
11713 * ui-out.h: Ditto.
11714 * utils.c: Ditto.
11715 * v850-tdep.c: Ditto.
11716 * valarith.c: Ditto.
11717 * valops.c: Ditto.
11718 * valprint.c: Ditto.
11719 * valprint.h: Ditto.
11720 * value.c: Ditto.
11721 * value.h: Ditto.
11722 * varobj.c: Ditto.
11723 * varobj.h: Ditto.
11724 * vax-tdep.c: Ditto.
11725 * vec.c: Ditto.
11726 * vec.h: Ditto.
11727 * version.h: Ditto.
11728 * windows-nat.c: Ditto.
11729 * windows-tdep.c: Ditto.
11730 * xcoffread.c: Ditto.
11731 * xcoffsolib.c: Ditto.
11732 * xml-support.c: Ditto.
11733 * xstormy16-tdep.c: Ditto.
11734 * xtensa-tdep.c: Ditto.
11735 * xtensa-tdep.h: Ditto.
11736
90e4670f
TJB
117372011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11738
11739 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
11740 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
11741
e09342b5
TJB
117422011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
11743 Thiago Jung Bauermann <bauerman@br.ibm.com>
11744
11745 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 11746 * breakpoint.h
e09342b5
TJB
11747 (struct breakpoint_ops) <resources_needed>: New method.
11748 Initialize to NULL in all existing breakpoint_ops instances.
11749 (struct breakpoint) <exact>: New field.
11750 (target_exact_watchpoints): Declare external global.
11751 * breakpoint.c (target_exact_watchpoints): New global flag.
11752 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
11753 b->enable_state to bp_enabled before calling
11754 hw_watchpoint_used_count.
11755 (hw_watchpoint_used_count): Iterate over all bp_locations in a
11756 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
11757 if available.
11758 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
11759 if the watchpoint is exact.
11760 (resources_needed_watchpoint): New function.
11761 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
11762 (watch_command_1): Set b->exact if the user asked for an exact
11763 watchpoint and one can be set.
11764 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
11765 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
11766 the user asks for an exact watchpoint and one can be set. Return
11767 number of needed debug registers to watch the expression.
11768 * gdbtypes.c (is_scalar_type): New function, based on
11769 valprint.c:scalar_type_p.
11770 (is_scalar_type_recursive): New function.
11771 * gdbtypes.h (is_scalar_type_recursive): Declare.
11772 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
11773 handle regions when ranged watchpoints are available.
11774 (create_watchpoint_request): New function.
11775 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
11776 create_watchpoint_request.
11777 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
11778 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
11779 `set powerpc' and `show powerpc' commands.
11780 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
11781 Mention documentation comment in the target macro.
11782 (target_region_ok_for_hw_watchpoint): Document return value.
11783
9fa40276
TJB
117842011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11785
11786 * breakpoint.c (update_watchpoint): Decide on using a software or
11787 hardware watchpoint after the bp_locations are created.
11788
77b06cd7
TJB
117892010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
11790
11791 Convert hardware watchpoints to use breakpoint_ops.
11792 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
11793 <insert_location>: ... this. Return int instead of void.
11794 Accept pointer to struct bp_location instead of pointer to
11795 struct breakpoint. Adapt all implementations.
f2eb0bc8 11796 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
11797 <remove_location>: ... this. Accept pointer to struct bp_location
11798 instead of pointer to struct breakpoint. Adapt all implementations.
11799 * breakpoint.c (insert_catchpoint): Delete function.
11800 (insert_bp_location): Call the watchpoint or catchpoint's
11801 breakpoint_ops.insert method.
11802 (remove_breakpoint_1): Call the watchpoint or catchpoint's
11803 breakpoint_ops.remove method.
11804 (insert_watchpoint, remove_watchpoint): New functions.
11805 (watchpoint_breakpoint_ops): New structure.
11806 (watch_command_1): Initialize the OPS field.
11807 * inf-child.c (inf_child_insert_fork_catchpoint)
11808 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
11809 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
11810 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
11811 Delete functions.
11812 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
11813 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
11814 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
11815 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
11816 * target.c (update_current_target): Change default implementation of
11817 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
11818 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
11819 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
11820 to_set_syscall_catchpoint to return_one.
11821 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
11822 (debug_to_insert_exec_catchpoint): Report return value.
11823 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
11824 (to_insert_exec_catchpoint): Change declaration to return int instead
11825 of void.
11826
9b20d036
MS
118272011-01-11 Michael Snyder <msnyder@vmware.com>
11828
11829 * arm-tdep.c: Internationalization.
11830 * c-lang.c: Ditto.
11831 * charset.c: Ditto.
11832 * fork-child.c: Ditto.
11833 * nto-procfs.c: Ditto.
11834 * ppc-sysv-tdep.c: Ditto.
11835 * procfs.c: Ditto.
11836 * remote-mips.c: Ditto.
11837 * remote.c: Ditto.
11838 * rs6000-nat.c: Ditto.
11839 * rs6000-tdep.c: Ditto.
11840 * target.c: Ditto.
11841 * valops.c: Ditto.
11842 * value.c: Ditto.
11843 * xml-support.c: Ditto.
11844 * mi/mi-cmd-break.c: Ditto.
11845 * mi/mi-cmd-var.c: Ditto.
11846 * mi/mi-interp.c: Ditto.
11847 * mi/mi-main.c: Ditto.
11848
dae477fe
AB
118492011-01-11 Andrew Burgess <aburgess@broadcom.com>
11850
11851 * remote-sim.c (gdbsim_store_register): Update API to
11852 sim_store_register to check more error conditions.
11853
0df8b418
MS
118542011-01-10 Michael Snyder <msnyder@vmware.com>
11855
11856 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
11857 * nto-tdep.c: Ditto.
11858 * nto-tdep.h: Ditto.
11859 * objc-exp.y: Ditto.
11860 * objc-lang.c: Ditto.
11861 * objfiles.c: Ditto.
11862 * objfiles.h: Ditto.
11863 * observer.c: Ditto.
11864 * opencl-lang.c: Ditto.
11865 * osabi.c: Ditto.
11866 * parse.c: Ditto.
11867 * parser-defs.h: Ditto.
11868 * p-exp.y: Ditto.
11869 * p-lang.c: Ditto.
11870 * posix-hdep.c: Ditto.
11871 * ppcbug-rom.c: Ditto.
11872 * ppc-linux-nat.c: Ditto.
11873 * ppc-linux-tdep.c: Ditto.
11874 * ppc-linux-tdep.h: Ditto.
11875 * ppcnbsd-tdep.c: Ditto.
11876 * ppcobsd-tdep.c: Ditto.
11877 * ppcobsd-tdep.h: Ditto.
11878 * ppc-sysv-tdep.c: Ditto.
11879 * ppc-tdep.h: Ditto.
11880 * printcmd.c: Ditto.
11881 * proc-abi.c: Ditto.
11882 * proc-flags.c: Ditto.
11883 * procfs.c: Ditto.
11884 * proc-utils.h: Ditto.
11885 * progspace.h: Ditto.
11886 * prologue-value.c: Ditto.
11887 * prologue-value.h: Ditto.
11888 * psympriv.h: Ditto.
11889 * psymtab.c: Ditto.
11890 * p-typeprint.c: Ditto.
11891 * p-valprint.c: Ditto.
11892 * ravenscar-sparc-thread.c: Ditto.
11893 * ravenscar-thread.c: Ditto.
11894 * ravenscar-thread.h: Ditto.
11895 * record.c: Ditto.
11896 * regcache.c: Ditto.
11897 * regcache.h: Ditto.
11898 * remote.c: Ditto.
11899 * remote-fileio.c: Ditto.
11900 * remote-fileio.h: Ditto.
11901 * remote.h: Ditto.
11902 * remote-m32r-sdi.c: Ditto.
11903 * remote-mips.c: Ditto.
11904 * remote-sim.c: Ditto.
11905 * rs6000-aix-tdep.c: Ditto.
11906 * rs6000-nat.c: Ditto.
11907 * rs6000-tdep.c: Ditto.
11908
0d7a18f7
MS
119092011-01-10 Michael Snyder <msnyder@vmware.com>
11910
11911 * charset.c (validate): Internationalization.
11912 * coffread.c (read_one_sym): Ditto.
11913 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
11914 * h8300-tdep.c (H8300_extract_return_value): Ditto.
11915 * inflow.c (new_tty): Ditto.
11916 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
11917 * m32c-tdep.c (m32c_return_value): Ditto.
11918 * mep-tdep.c (mep_store_return_value): Ditto.
11919 * score-tdep.c (score7_fetch_insn): Ditto.
11920 * ser-mingw.c (pipe_windows_open): Ditto.
11921 * sh64-tdep.c (sh64_extract_return_value): Ditto.
11922 * spu-tdep.c (spu_register_type): Ditto.
11923 * tracepoint.c (trace_find_command): Ditto.
11924 * valarith.c (value_pos): Ditto.
11925
9a153e0b
JB
119262011-01-10 Joel Brobecker <brobecker@adacore.com>
11927
11928 * ada-valprint.c (printstr): Minor comment reformatting.
11929
35ecd2d6
MS
119302011-01-08 Michael Snyder <msnyder@vmware.com>
11931
11932 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
11933 markup.
11934
1777feb0
MS
119352011-01-08 Michael Snyder <msnyder@vmware.com>
11936
11937 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
11938 * hppa-hpux-tdep.c: Ditto.
11939 * hppa-linux-nat.c: Ditto.
11940 * hppa-linux-tdep.c: Ditto.
11941 * hppanbsd-tdep.c: Ditto.
11942 * hppa-tdep.c: Ditto.
11943 * hppa-tdep.h: Ditto.
11944 * hpux-thread.c: Ditto.
11945 * i386-cygwin-tdep.c: Ditto.
11946 * i386-darwin-nat.c: Ditto.
11947 * i386gnu-nat.c: Ditto.
11948 * i386-linux-nat.c: Ditto.
11949 * i386-linux-tdep.c: Ditto.
11950 * i386-nat.c: Ditto.
11951 * i386-nat.h: Ditto.
11952 * i386nbsd-tdep.c: Ditto.
11953 * i386-sol2-nat.c: Ditto.
11954 * i386-stub.c: Ditto.
11955 * i386-tdep.c: Ditto.
11956 * i386-tdep.h: Ditto.
11957 * i387-tdep.c: Ditto.
11958 * ia64-linux-nat.c: Ditto.
11959 * ia64-linux-tdep.c: Ditto.
11960 * ia64-tdep.c: Ditto.
11961 * infcall.c: Ditto.
11962 * infcall.h: Ditto.
11963 * infcmd.c: Ditto.
11964 * inferior.c: Ditto.
11965 * inferior.h: Ditto.
11966 * infloop.c: Ditto.
11967 * inflow.c: Ditto.
11968 * infrun.c: Ditto.
11969 * interps.c: Ditto.
11970 * interps.h: Ditto.
11971 * iq2000-tdep.c: Ditto.
11972 * irix5-nat.c: Ditto.
11973 * jit.c: Ditto.
11974 * jit.h: Ditto.
11975 * jv-exp.y: Ditto.
11976 * jv-lang.c: Ditto.
11977 * jv-lang.h: Ditto.
11978 * jv-typeprint.c: Ditto.
11979 * jv-valprint.c: Ditto.
11980 * language.c: Ditto.
11981 * language.h: Ditto.
11982 * linespec.c: Ditto.
11983 * linux-fork.c: Ditto.
11984 * linux-nat.c: Ditto.
11985 * linux-thread-db.c: Ditto.
11986 * lm32-tdep.c: Ditto.
11987
025bb325
MS
119882011-01-08 Michael Snyder <msnyder@vmware.com>
11989
11990 * m2-exp.y: Comment cleanup, mostly periods and spaces.
11991 * m2-lang.c: Ditto.
11992 * m2-typeprint.c: Ditto.
11993 * m2-valprint.c: Ditto.
11994 * m32c-tdep.c: Ditto.
11995 * m32r-linux-nat.c: Ditto.
11996 * m32r-rom.c: Ditto.
11997 * m32r-tdep.c: Ditto.
11998 * m32r-tdep.h: Ditto.
11999 * m68hc11-tdep.c: Ditto.
12000 * m58klinux-nat.c: Ditto.
12001 * m68k-tdep.c: Ditto.
12002 * m88k-tdep.c: Ditto.
12003 * m88k-tdep.h: Ditto.
12004 * machoread.c: Ditto.
12005 * macrocmd.c: Ditto.
12006 * macroexp.c: Ditto.
12007 * macrotab.c: Ditto.
12008 * main.c: Ditto.
12009 * maint.c: Ditto.
12010 * mdebugread.c: Ditto.
12011 * mdebugread.h: Ditto.
12012 * memattr.c: Ditto.
12013 * memattr.h: Ditto.
12014 * memory-map.h: Ditto.
12015 * mep-tdep.c: Ditto.
12016 * microblaze-rom.c: Ditto.
12017 * microblaze-tdep.c: Ditto.
12018 * minsyms.c: Ditto.
12019 * mips-irix-tdep.c: Ditto.
12020 * mips-linux-nat.c: Ditto.
12021 * mips-linux-tdep.c: Ditto.
12022 * mips-linux-tdep.h: Ditto.
12023 * mipsnbsd-nat.c: Ditto.
12024 * mipsnbsd-tdep.c: Ditto.
12025 * mipsread.c: Ditto.
12026 * mips-tdep.c: Ditto.
12027 * mips-tdep.h: Ditto.
12028 * mn10300-linux-tdep.c: Ditto.
12029 * mn10300-tdep.c: Ditto.
12030 * mn10300-tdep.h: Ditto.
12031 * monitor.c: Ditto.
12032 * monitor.h: Ditto.
12033 * moxie-tdep.c: Ditto.
12034 * moxie-tdep.h: Ditto.
12035 * mt-tdep.c: Ditto.
12036
1642781b
MF
120372011-01-08 Mike Frysinger <vapier@gentoo.org>
12038
12039 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
12040
394b0adb
JB
120412011-01-08 Robert Millan <rmh@gnu.org>
12042
12043 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
12044
b670013c
MS
120452011-01-07 Michael Snyder <msnyder@vmware.com>
12046
12047 * charset.c (_initialize_charset): Fix typo in string.
12048
a743e542
MS
120492011-01-07 Michael Snyder <msnyder@vmware.com>
12050
12051 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
12052 for i18n.
f2eb0bc8 12053 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
12054 Split line so that operator goes to beginning of line.
12055 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
12056 assignment out of if statement.
12057
0963b4bd
MS
120582011-01-07 Michael Snyder <msnyder@vmware.com>
12059
12060 * ada-lang.c: Comment cleanup, mostly periods and spaces.
12061 * ada-lang.h: Ditto.
12062 * ada-tasks.c: Ditto.
12063 * ada-valprint.c: Ditto.
12064 * aix-threads.c: Ditto.
12065 * alpha-linux-nat.c: Ditto.
12066 * alpha-linux-tdep.c: Ditto.
12067 * alpha-mdebug-tdep.c: Ditto.
12068 * alpha-nat.c: Ditto.
12069 * alpha-osf1-tdep.c: Ditto.
12070 * alpha-tdep.c: Ditto.
12071 * alphabsd-nat.c: Ditto.
12072 * alphabsd-tdep.c: Ditto.
12073 * amd64-darwin-tdep.c: Ditto.
12074 * amd64-linux-nat.c: Ditto.
12075 * amd64-linux-tdep.c: Ditto.
12076 * amd64-sol2-tdep.c: Ditto.
12077 * amd64-tdep.c: Ditto.
12078 * amd64-fbsd-tdep.c: Ditto.
12079 * amd64-nbsd-tdep.c: Ditto.
12080 * amd64-obsd-tdep.c: Ditto.
12081 * amd64-linux-nat.c: Ditto.
12082 * amd64-linux-tdep.c: Ditto.
12083 * arm-tdep.c: Ditto.
12084 * arm-tdep.h: Ditto.
12085 * armnbsd-nat.c: Ditto.
12086 * avr-tdep.c: Ditto.
12087 * bfin-tdep.c: Ditto.
12088 * bsd-kvm.c: Ditto.
12089 * c-typeprintc: Ditto.
12090 * c-valprint.c: Ditto.
12091 * coff-pe-read.h: Ditto.
12092 * coffreead.c: Ditto.
12093 * cris-tdep.c: Ditto.
12094 * d-lang.c: Ditto.
12095 * darwin-nat-info.c: Ditto.
12096 * darwin-nat.c: Ditto.
12097 * dbug-rom.c: Ditto.
12098 * dbxread.c: Ditto.
12099 * dcache.c: Ditto.
12100 * dcache.h: Ditto.
12101 * dec-thread.c: Ditto.
12102 * defs.h: Ditto.
12103 * demangle.c: Ditto.
12104 * dicos-tdep.c: Ditto.
12105 * dictionary.c: Ditto.
12106 * dictionary.h: Ditto.
12107 * dink32-rom.c: Ditto.
12108 * disasm.c: Ditto.
12109 * doublest.c: Ditto.
12110 * dsrec.c: Ditto.
12111 * dummy-frame.c: Ditto.
12112 * dwarf2-frame.c: Ditto.
12113 * dwarf2expr.c: Ditto.
12114 * dwarf2loc.c: Ditto.
12115 * dwarf2read.c: Ditto.
12116 * elfread.c: Ditto.
12117 * environ.c: Ditto.
12118 * eval.c: Ditto.
12119 * event-top.h: Ditto.
12120 * exceptions.c: Ditto.
12121 * exceptions.h: Ditto.
12122 * exec.c: Ditto.
12123 * expprint.c: Ditto.
12124 * expression.h: Ditto.
12125 * f-exp.y: Ditto.
12126 * f-lang.c: Ditto.
12127 * f-lang.h: Ditto.
12128 * f-typeprint.c: Ditto.
12129 * f-valprint.c: Ditto.
12130 * fbsd-nat.c: Ditto.
12131 * findvar.c: Ditto.
12132 * fork-child.c: Ditto.
12133 * frame.c: Ditto.
12134 * frame.h: Ditto.
12135 * frv-linux-tdep.c: Ditto.
12136 * frv-tdep.c: Ditto.
12137 * gcore.c: Ditto.
12138 * gdb-stabs.h: Ditto.
12139 * gdb_assert.h: Ditto.
12140 * gdb_string.h: Ditto.
12141 * gdb_thread_db.h: Ditto.
12142 * gdb_wait.h: Ditto.
12143 * gdbarch.sh: Ditto.
12144 * gdbcore.h: Ditto.
12145 * gdbthread.h: Ditto.
12146 * gdbtypes.c: Ditto.
12147 * gdbtypes.h: Ditto.
12148 * gnu-nat.c: Ditto.
12149 * gnu-nat.h: Ditto.
12150 * gnu-v2-abi.c: Ditto.
12151 * gnu-v3-abi.c: Ditto.
12152 * go32-nat.c: Ditto.
12153 * gdbarch.c: Regenerate.
12154 * gdbarch.h: Regenerate.
12155
ac74f770
MS
121562011-01-07 Michael Snyder <msnyder@vmware.com>
12157
12158 * ax-gdb.c: Adjust some long output strings.
12159 * breakpoint.c: Ditto.
12160 * charset.c: Ditto.
12161 * cp-abi.c: Ditto.
12162 * infcall.c: Ditto.
12163 * infrun.c: Ditto.
12164 * linux-nat.c: Ditto.
12165 * solib-pa64.c: Ditto.
12166 * solib-som.c: Ditto.
12167
d8e22779
TT
121682011-01-06 Tom Tromey <tromey@redhat.com>
12169
12170 PR python/12367:
12171 * NEWS: Add item.
12172 * python/python.c (GdbMethods): Add "newest_frame" method.
12173 * python/python-internal.h (gdbpy_newest_frame): Declare.
12174 * python/py-frame.c (gdbpy_newest_frame): New function.
12175
a255712f
PP
121762010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
12177
12178 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
12179 * jit.c (jit_debug): New variable.
12180 (show_jit_debug): New function.
12181 (struct target_buffer): Use ULONGEST.
12182 (bfd_open_from_target_memory): Likewise.
12183 (jit_register_code, jit_inferior_init): Add debug output.
12184 (_initialize_jit): Register "debug jit" command.
12185
ccfc3d6e
TT
121862011-01-06 Tom Tromey <tromey@redhat.com>
12187
12188 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
12189 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
12190 and ARCH_FRAME.
12191
57126e4a
TT
121922011-01-06 Tom Tromey <tromey@redhat.com>
12193
12194 * python/py-frame.c (frapy_block): Use get_frame_block.
12195
16dfc9ce
JB
121962011-01-06 Joel Brobecker <brobecker@adacore.com>
12197
12198 Do not stop on SIGPRIO signals by default
12199 * infrun.c (_initialize_infrun): Unset signal_stop and
12200 signal_print for TARGET_SIGNAL_PRIO.
12201
b1ce2347
JB
122022011-01-06 Joel Brobecker <brobecker@adacore.com>
12203
12204 * ada-tasks.c: Fix style violation in comment.
12205
8f7e195f
JB
122062011-01-06 Joel Brobecker <brobecker@adacore.com>
12207
12208 * linespec.c (decode_compound, find_method): Remove trailing \n
12209 at end of error string.
12210 * solib-irix.c (irix_current_sos): Likewise.
12211 * varobj.c (uninstall_variable): Likewise.
12212
e9bdf92c
JB
122132011-01-06 Joel Brobecker <brobecker@adacore.com>
12214
12215 * copyright.py: New script.
12216 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
12217 Launch emacs without exec'ing. Call copyright.py afterwards.
12218
3e43a32a
MS
122192011-01-05 Michael Snyder <msnyder@vmware.com>
12220
12221 * addrmap.c: Shorten lines of >= 80 columns.
12222 * arch-utils.c: Ditto.
12223 * arch-utils.h: Ditto.
12224 * ax-gdb.c: Ditto.
12225 * ax-general.c: Ditto.
12226 * bcache.c: Ditto.
12227 * blockframe.c: Ditto.
12228 * breakpoint.c: Ditto.
12229 * buildsym.c: Ditto.
12230 * c-lang.c: Ditto.
12231 * c-typeprint.c: Ditto.
12232 * charset.c: Ditto.
12233 * coffread.c: Ditto.
12234 * command.h: Ditto.
12235 * corelow.c: Ditto.
12236 * cp-abi.c: Ditto.
12237 * cp-namespace.c: Ditto.
12238 * cp-support.c: Ditto.
12239 * dbug-rom.c: Ditto.
12240 * dbxread.c: Ditto.
12241 * defs.h: Ditto.
12242 * dfp.c: Ditto.
12243 * dfp.h: Ditto.
12244 * dictionary.c: Ditto.
12245 * disasm.c: Ditto.
12246 * doublest.c: Ditto.
12247 * dwarf2-frame.c: Ditto.
12248 * dwarf2expr.c: Ditto.
12249 * dwarf2loc.c: Ditto.
12250 * dwarf2read.c: Ditto.
12251 * elfread.c: Ditto.
12252 * eval.c: Ditto.
12253 * event-loop.c: Ditto.
12254 * event-loop.h: Ditto.
12255 * exceptions.h: Ditto.
12256 * exec.c: Ditto.
12257 * expprint.c: Ditto.
12258 * expression.h: Ditto.
12259 * f-lang.c: Ditto.
12260 * f-valprint.c: Ditto.
12261 * findcmd.c: Ditto.
12262 * frame-base.c: Ditto.
12263 * frame-unwind.c: Ditto.
12264 * frame-unwind.h: Ditto.
12265 * frame.c: Ditto.
12266 * frame.h: Ditto.
12267 * gcore.c: Ditto.
12268 * gdb-stabs.h: Ditto.
12269 * gdb_assert.h: Ditto.
12270 * gdb_dirent.h: Ditto.
12271 * gdb_obstack.h: Ditto.
12272 * gdbcore.h: Ditto.
12273 * gdbtypes.c: Ditto.
12274 * gdbtypes.h: Ditto.
12275 * inf-ttrace.c: Ditto.
12276 * infcall.c: Ditto.
12277 * infcmd.c: Ditto.
12278 * inflow.c: Ditto.
12279 * infrun.c: Ditto.
12280 * inline-frame.h: Ditto.
12281 * language.c: Ditto.
12282 * language.h: Ditto.
12283 * libunwind-frame.c: Ditto.
12284 * libunwind-frame.h: Ditto.
12285 * linespec.c: Ditto.
12286 * linux-nat.c: Ditto.
12287 * linux-nat.h: Ditto.
12288 * linux-thread-db.c: Ditto.
12289 * machoread.c: Ditto.
12290 * macroexp.c: Ditto.
12291 * macrotab.c: Ditto.
12292 * main.c: Ditto.
12293 * maint.c: Ditto.
12294 * mdebugread.c: Ditto.
12295 * memattr.c: Ditto.
12296 * minsyms.c: Ditto.
12297 * monitor.c: Ditto.
12298 * monitor.h: Ditto.
12299 * objfiles.c: Ditto.
12300 * objfiles.h: Ditto.
12301 * osabi.c: Ditto.
12302 * p-typeprint.c: Ditto.
12303 * p-valprint.c: Ditto.
12304 * parse.c: Ditto.
12305 * printcmd.c: Ditto.
12306 * proc-events.c: Ditto.
12307 * procfs.c: Ditto.
12308 * progspace.c: Ditto.
12309 * progspace.h: Ditto.
12310 * psympriv.h: Ditto.
12311 * psymtab.c: Ditto.
12312 * record.c: Ditto.
12313 * regcache.c: Ditto.
12314 * regcache.h: Ditto.
12315 * remote-fileio.c: Ditto.
12316 * remote.c: Ditto.
12317 * ser-mingw.c: Ditto.
12318 * ser-tcp.c: Ditto.
12319 * ser-unix.c: Ditto.
12320 * serial.c: Ditto.
12321 * serial.h: Ditto.
12322 * solib-frv.c: Ditto.
12323 * solib-irix.c: Ditto.
12324 * solib-osf.c: Ditto.
12325 * solib-pa64.c: Ditto.
12326 * solib-som.c: Ditto.
12327 * solib-sunos.c: Ditto.
12328 * solib-svr4.c: Ditto.
12329 * solib-target.c: Ditto.
12330 * solib.c: Ditto.
12331 * somread.c: Ditto.
12332 * source.c: Ditto.
12333 * stabsread.c: Ditto.
12334 * stabsread.c: Ditto.
12335 * stack.c: Ditto.
12336 * stack.h: Ditto.
12337 * symfile-mem.c: Ditto.
12338 * symfile.c: Ditto.
12339 * symfile.h: Ditto.
12340 * symmisc.c: Ditto.
12341 * symtab.c: Ditto.
12342 * symtab.h: Ditto.
12343 * target-descriptions.c: Ditto.
12344 * target-memory.c: Ditto.
12345 * target.c: Ditto.
12346 * target.h: Ditto.
12347 * terminal.h: Ditto.
12348 * thread.c: Ditto.
12349 * top.c: Ditto.
12350 * tracepoint.c: Ditto.
12351 * tracepoint.h: Ditto.
12352 * ui-file.c: Ditto.
12353 * ui-file.h: Ditto.
12354 * ui-out.h: Ditto.
12355 * user-regs.c: Ditto.
12356 * user-regs.h: Ditto.
12357 * utils.c: Ditto.
12358 * valarith.c: Ditto.
12359 * valops.c: Ditto.
12360 * valprint.c: Ditto.
12361 * valprint.h: Ditto.
12362 * value.c: Ditto.
12363 * varobj.c: Ditto.
12364 * varobj.h: Ditto.
12365 * vec.h: Ditto.
12366 * xcoffread.c: Ditto.
12367 * xcoffsolib.c: Ditto.
12368 * xcoffsolib.h: Ditto.
12369 * xml-syscall.c: Ditto.
12370 * xml-tdesc.c: Ditto.
12371
9a2b4c1b
MS
123722011-01-05 Michael Snyder <msnyder@vmware.com>
12373
12374 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
12375 * cli/cli-decode.c: Ditto.
12376 * cli/cli-dump.c: Ditto.
12377 * cli/cli-logging.c: Ditto.
12378 * cli/cli-script.c: Ditto.
12379 * cli/cli-setshow.c: Ditto.
12380 * common/signals.c: Ditto.
12381 * mi/mi-cmd-break.c: Ditto.
12382 * mi/mi-cmd-disas.c: Ditto.
12383 * mi/mi-cmd-stack.c: Ditto.
12384 * mi/mi-cmd-var.c: Ditto.
12385 * mi/mi-cmds.c: Ditto.
12386 * mi/mi-common.h: Ditto.
12387 * mi/mi-console.c: Ditto.
12388 * mi/mi-interp.c: Ditto.
12389 * mi/mi-main.c: Ditto.
12390 * osf-share/cma_attr.c: Ditto.
12391 * osf-share/cma_deb_core.h: Ditto.
12392 * osf-share/cma_debug_client.h: Ditto.
12393 * osf-share/cma_handle.h: Ditto.
12394 * osf-share/cma_mutex.h: Ditto.
12395 * osf-share/cma_stack_int.h: Ditto.
12396 * osf-share/cma_tcb_defs.h: Ditto.
12397 * python/py-auto-load.c: Ditto.
12398 * python/py-breakpoint.c: Ditto.
12399 * python/py-cmd.c: Ditto.
12400 * python/py-frame.c: Ditto.
12401 * python/py-objfile.c: Ditto.
12402 * python/py-param.c: Ditto.
12403 * python/py-progspace.c: Ditto.
12404 * python/py-symbol.c: Ditto.
12405 * python/py-value.c: Ditto.
12406 * python/python-internal.h: Ditto.
12407 * python/python.c: Ditto.
12408 * tui/tui-data.c: Ditto.
12409 * tui/tui-disasm.c: Ditto.
12410 * tui/tui-hooks.c: Ditto.
12411 * tui/tui-io.c: Ditto.
12412 * tui/tui-layout.c: Ditto.
12413 * tui/tui-regs.c: Ditto.
12414 * tui/tui-source.c: Ditto.
12415 * tui/tui-stack.c: Ditto.
12416 * tui/tui-win.c: Ditto.
12417 * tui/tui-windata.c: Ditto.
12418 * tui/tui-winsource.c: Ditto.
12419
44944448
JB
124202011-01-05 Joel Brobecker <brobecker@adacore.com>
12421
12422 * configure.ac, gdb.1: Copyright year update.
12423
ebedcab5
JK
124242011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
12425
12426 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
12427 this_pc_in_block, morestack_msym and morestack_name. Check for
12428 "__morestack" minimal symbol there.
12429
e5cc9f32
JB
124302011-01-03 Joel Brobecker <brobecker@adacore.com>
12431
12432 * symfile.c (find_sym_fns): Add call to dont_repeat.
12433
7b6bb8da
JB
124342011-01-01 Joel Brobecker <brobecker@adacore.com>
12435
12436 Copyright year update in most files (performed by copyright.sh).
12437
71ce852c
JB
124382011-01-01 Joel Brobecker <brobecker@adacore.com>
12439
12440 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 12441
c3c1ebe8 12442For older changes see ChangeLog-2010.
c906108c
SS
12443\f
12444Local Variables:
12445mode: change-log
12446left-margin: 8
12447fill-column: 74
12448version-control: never
57da7796 12449coding: utf-8
c906108c 12450End:
This page took 1.807184 seconds and 4 git commands to generate.