]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
ChangeLog:
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2484c66b
UW
12011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
2
3 * infrun.c (proceed): Do not single-step into signal delivery
4 when stepping off a breakpoint location.
5 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
6 (insert_step_resume_breakpoint_at_caller): Likewise.
7 (insert_step_resume_breakpoint_at_sal): Likewise.
8 (insert_longjmp_resume_breakpoint): Likewise.
9
47423772
YQ
102011-04-27 Yao Qi <yao@codesourcery.com>
11
12 * common/linux-ptrace.h: Remove include <sys/wait.h>.
13
13bdd2e7
JB
142011-04-27 Joel Brobecker <brobecker@adacore.com>
15
16 * procfs.c (procfs_pass_signals): Fix advance declaration.
17
2455069d
UW
182011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
19
20 * target.h (struct target_ops): Remove to_notice_signals;
21 add to_pass_signals.
22 (target_notice_signals): Remove.
23 (target_pass_signals): Add prototype.
24 * target.c (update_current_target): Remove to_notice_signals;
25 mention to_pass_signals.
26 (target_pass_signals): New function.
27 (debug_to_notice_signals): Remove.
28 (setup_target_debug): Do not install debug_to_notice_signals.
29
30 * infrun.c (signal_pass): New global.
31 (resume): Call target_pass_signals.
32 (handle_inferior_event): Report all signals while stepping over
33 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
34 are re-inserted when stepping over a signal handler.
35 (signal_cache_update): New function.
36 (signal_stop_update): Call it.
37 (signal_print_update): Likewise.
38 (signal_pass_update): Likewise.
39 (handle_command): Call signal_cache_update and target_pass_signals
40 instead of target_notice_signals.
41 (_initialize_infrun): Initialize signal_pass.
42
43 * linux-nat.c (pass_mask): New global.
44 (linux_nat_pass_signals): New function.
45 (linux_nat_create_inferior): Report all signals initially.
46 (linux_nat_attach): Likewise.
47 (linux_nat_resume): Use pass_mask to decide whether to directly
48 handle an inferior signal.
49 (linux_nat_wait_1): Likewise.
50 (linux_nat_add_target): Install to_pass_signals callback.
51
52 * nto-procfs.c (notice_signals): Remove.
53 (procfs_resume): Do not call notice_signals.
54 (procfs_notice_signals): Remove.
55 (procfs_pass_signals): New function.
56 (init_procfs_ops): Install to_pass_signals callback instead of
57 to_notice_signals callback.
58 (_initialize_procfs): Report all signals initially.
59
60 * procfs.c (procfs_notice_signals): Remove.
61 (procfs_pass_signals): New function.
62 (procfs_target): Install to_pass_signals callback instead of
63 to_notice_signals callback.
64 (register_gdb_signals): Remove.
65 (procfs_debug_inferior): Report all signals initially.
66 (procfs_init_inferior): Remove redundant register_gdb_signals call.
67
68 * remote.c (remote_pass_signals): Add numsigs and pass_signals
69 parameters; use them instead of calling signal_..._state routines.
70 (remote_notice_signals): Remove.
71 (remote_start_remote): Report all signals initially.
72 (remote_resume): Do not call remote_pass_signals.
73 (_initialize_remote): Install to_pass_signals callback instead of
74 to_notice_signals callback.
75
46c6471b
PA
762011-04-27 Pedro Alves <pedro@codesourcery.com>
77
78 * breakpoint.c (user_settable_breakpoint): Delete.
79 (user_breakpoint_p): Remove check on user_settable_breakpoint.
80 (delete_command): Check user_breakpoint_p instead of looking at
81 the breakpoint's type.
82 (disable_command): Ditto.
83 (enable_command): Ditto.
84 (delete_trace_command): Use user_breakpoint_p instead of looking
85 at the breakpoint number directly. When checking if there are
86 user visible tracepoints, in order to know whether to ask the user
87 for confirmation, check whether the breakpoint is actually a
88 tracepoint.
89
f6d90398
VP
902011-04-27 Vladimir Prus <vladimir@codesourcery.com>
91
92 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
93 compilation.
94
8d3788bd
VP
952011-04-27 Vladimir Prus <vladimir@codesourcery.com>
96
97 MI breakpoint notifications.
98
99 * annotate.c (breakpoint_changed): Adjust parameter type.
100 * breakpoint.c (set_breakpoint_condition): Adjust to change
101 in breakpoint_modified type.
102 (breakpoint_set_commands): Likewise.
103 (do_map_commands_command): Likewise.
104 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
105 changed after bumping hit count.
106 (bpstat_stop_status): Likewise.
107 (print_one_breakpoint_location): Don't wrap in tuple here.
108 (print_one_breakpoint): Always print individual locations.
109 For locations, use unnamed tuple.
110 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
111 has changed.
112 (create_catchpoint, create_syscall_event_catchpoint): Call
113 breakpoint_created obsever.
114 (mention): Don't call breakpoint_created observer.
115 (create_breakpoint_sal): Call breakpoint_created observer.
116 (create_breakpoint, watch_command_1): Likewise.
117 (create_ada_exception_breakpoint): Likewise.
118 (delete_breakpoint): Call breakpoint_deleted breakpoint.
119 (locations_are_equal): New.
120 (update_breakpoint_locations): If locations were changed, notify.
121 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
122 Call breakpoint_modified observer.
123
124 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
125 (mi_cmd_break_insert): Don't set observers for modify and delete.
126 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
127 (mi_breakpoint_created, mi_breakpoint_deleted)
128 (mi_breakpoint_modified): New.
129 (mi_interpreter_init): Hook the above.
130 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
131 while -break-* commands are executing.
132 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
133 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
134 (mi_redirect): New.
135 (mi_ui_out_impl): Hook in mi_redirect.
136 (mi_field_skip): True to the name, skip the field, don't output
137 a field with an empty value.
138
139 * python/py-breakpoint.c (gdbpy_breakpoint_created)
140 (gdbpy_breakpoint_deleted): Adjust.
141 * tui/tui-hooks.c (tui_event_create_breakpoint)
142 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
143
a8f42b45
UW
1442011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
145
146 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
147 (procfs_remove_hw_watchpoint): Likewise.
148
57e12211
TT
1492011-04-26 Michael Walle <michael@walle.cc>
150
151 * remote.c (remote_start_remote): Ack packet after sending the
152 interrupt sequence.
153
af96c192
YQ
1542011-04-26 Yao Qi <yao@codesourcery.com>
155
156 * linux-nat.c: Move common macros to ...
157 Include linux-ptrace.h.
158 * common/linux-ptrace.h: ... here. New.
159
3e03848b
JK
1602011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
161
162 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
163 !objfile_has_partial_symbols. New comment.
164 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
165 SYM_READ_PSYMBOLS is not present. Extend the comment.
166 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
167
1ae0d051
JK
1682011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
169
170 * defs.h (ENUM_BITFIELD): Remove.
171
03f2bd59
JK
1722011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
173 Eli Zaretskii <eliz@gnu.org>
174
175 * NEWS: Document the new gdbserver --once option.
176
4161fbb0
JZ
1772011-04-21 Jie Zhang <jzhang918@gmail.com>
178
179 * MAINTAINERS: Update my email address.
180
bcb28afc
PM
1812011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
182
183 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
184 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
185 function call if __STDC_ISO_10646__ macro is defined.
186 (intermediate_encoding): New prototype.
187 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
188 to generate compile time error for unsupported gdb_wchar_t size.
189 (ENDIAN_SUFFIX): New macro.
190 (intermediate_encoding): New function.
191
7b08b9eb
JK
1922011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
193
194 * ada-lang.c (struct add_partial_datum): Update the comment for
195 expand_partial_symbol_name.
196 (ada_add_partial_symbol_completions): Rename to ...
197 (ada_expand_partial_symbol_name): ... here, change return type, update
198 function comment, call symbol_completion_match instead of
199 symbol_completion_add.
200 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
201 and ada_expand_partial_symbol_name.
202 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
203 FILE_MATCHER.
204 (dw2_map_symbol_names): Remove.
205 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
206 * psymtab.c (map_symbol_names_psymtab): Remove.
207 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
208 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
209 order.
210 (psym_functions): Unlist map_symbol_names_psymtab.
211 (map_partial_symbol_names): Rename to ...
212 (expand_partial_symbol_names): ... here, change the FUN type, call
213 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
214 * psymtab.h (map_partial_symbol_names): Rename to ...
215 (expand_partial_symbol_names): ... here, change the FUN type.
216 * symfile.h (struct quick_symbol_functions): Update the description of
217 expand_symtabs_matching. Remove map_symbol_names.
218 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
219 (struct add_name_data): Update the comment for
220 expand_partial_symbol_name.
221 (add_partial_symbol_name): Rename to ...
222 (expand_partial_symbol_name): ... here. Replace
223 completion_list_add_name call by strncmp.
224 (default_make_symbol_completion_list_break_on): Use now
225 expand_partial_symbol_names and expand_partial_symbol_name.
226 * symtab.h (enum search_domain): New element ALL_DOMAIN.
227
90476074
TT
2282011-04-20 Tom Tromey <tromey@redhat.com>
229
230 * dwarf2read.c (save_gdb_index_command): Replace format
231 documentation with a pointer to the manual.
232
c21236dc
PA
2332011-04-20 Pedro Alves <pedro@codesourcery.com>
234
235 * regcache.c: Include remote.h.
236 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
237 (regcache_dump): Handle regcache_dump_remote.
238 (maintenance_print_remote_registers): New function.
239 (_initialize_regcache): Install "maint print remote-registers"
240 command.
241 * remote.c (map_regcache_remote_table): New function, factored out
242 from ...
243 (init_remote_state): ... here.
244 (remote_register_number_and_offset): New.
245 * remote.h (remote_register_number_and_offset): Declare.
246
b78974c3
PA
2472011-04-20 Pedro Alves <pedro@codesourcery.com>
248
249 * regcache.c (get_thread_arch_regcache): If creating a regcache for
250 null_ptid, assume and allow a NULL address space, instead of
251 asking the target for the ptid's address space.
252 * infrun.c (ptid_is_pid): Remove assertion.
253
7a9dd1b2
TT
2542011-04-19 Tom Tromey <tromey@redhat.com>
255
256 * windows-tdep.c (windows_xfer_shared_library):
257 * windows-nat.c (get_module_name, windows_make_so):
258 * v850-tdep.c (v850_handle_pushm):
259 * utils.c (null_cleanup, gdb_realpath):
260 * ui-out.c (get_next_header):
261 * tracepoint.c (clear_traceframe_info):
262 * symtab.c (lookup_symtab):
263 * serial.h (struct serial_ops):
264 * mipsread.c (read_alphacoff_dynamic_symtab):
265 * infcmd.c (print_return_value):
266 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
267 * f-exp.y (parse_number):
268 * exceptions.c (catch_exceptions):
269 * dummy-frame.c (dummy_frame_this_id):
270 * defs.h (struct cleanup):
271 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
272 * arm-tdep.c (arm_push_dummy_call):
273 * amd64-tdep.h (amd64_collect_xsave):
274 * amd64-tdep.c (amd64_collect_xsave):
275 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
276 * README (typing): Remove duplicate words.
277 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
278 * infrun.c (siginfo_value_read): Fix typo.
279 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
280 * top.c (source_line_number): Add comma.
281
9941e0c5
MK
2822011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
283
284 * thread.c (any_live_thread_of_process): Prioritize threads
285 that are not executing.
286 * gdbthread.h (any_live_thread_of_process): Update comment
287 as per above change.
288
ed4b0e6a
AS
2892011-04-19 Andreas Schwab <schwab@linux-m68k.org>
290
291 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
292 (scan_xcoff_symtab): Likewise.
293
9b13a2db
PM
2942011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
295
296 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
297 inside if clause.
298
1c6e1b0d
PM
2992011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
300 Pedro Alves <pedro@codesourcery.com>
301
302 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
303 variables to simplify code and avoid == operator at end of
304 line as this is against GNU coding standards.
305
74de0234
PM
3062011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
307
308 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
309 lm_name to name_lm to avoid conflict with lm_name function.
310
b23518f0
PM
3112011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
312
313 ARI fixes: Use only lowercase function name for static functions.
314 * nto-tdep.c (LM_ADDR): Rename to...
315 (lm_addr): New function name.
316 (nto_relocate_section_addresses): Adapt to change above.
317 * solib-sunos.c (LM_ADDR): Rename to...
318 (lm_addr): New function name.
319 (LM_NEXT): Rename to...
320 (lm_next): New function name.
321 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
322 function name changes above.
323 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
324 (lm_addr_from_link_map): New function name.
325 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
326 (has_lm_dynamic_from_link_map): New function name.
327 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
328 (lm_dynamic_from_link_map): New function name.
329 (LM_ADDR_CHECK): Rename to...
330 (lm_addr_check): New function name.
331 (LM_NEXT): Rename to...
332 (lm_next): New function name.
333 (LM_PREV): Rename to...
334 (lm_prev): New function name.
335 (LM_NAME): Rename to...
336 (lm_name): New function name.
337 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
338 (ignore_first_link_map_entry): New function name.
339 (svr4_keep_data_in_core): Adapt to function name changes above.
340 (svr4_current_sos): Likewise.
341 (enable_break): Likewise.
342 (svr4_relocate_section_addresses): Likewise.
343
1448a0a2
PM
3442011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
345
346 ARI cleanup.
347 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
348 sprintf. Simplify code and avoid loosing memory.
349 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
350 (call0_frame_cache): Remove && operator from end of line.
351
02835898
JK
3522011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
353
354 Fix libraries displacement if they change whether they were prelinked.
355 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
356 does not match. Comment why.
357
9a845ea2
JK
3582011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
359
360 * corelow.c: Include wrapper.h.
361 (core_open): Call now gdb_target_find_new_threads.
362 * wrapper.c: Include target.h.
363 (gdb_target_find_new_threads): New.
364 * wrapper.h (gdb_target_find_new_threads): New declaration.
365
254f582e
JK
3662011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
367
368 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
369 even if !TARGET_HAS_EXECUTION.
370
63524580
JK
3712011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
372
373 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
374 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
375 bfd_get_synthetic_symtab.
376 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
377 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
378 parameter parent, remove the call to add_separate_debug_objfile.
379 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
380 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
381 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
382 parent, new comment for it, call add_separate_debug_objfile for it.
383 (symbol_file_add_separate): Pass objfile as the parameter parent,
384 remove the call to add_separate_debug_objfile.
385 (symbol_file_add_from_bfd): New parameter parent, pass it.
386 (symbol_file_add): Pass NULL to the new parameter parent.
387 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
388
90359a16
JK
3892011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
390
391 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
392 BSF_SYNTHETIC.
393
626e7282
JK
3942011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
395
396 Fix Python access to inlined frames.
397 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
398 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
399
cf31e6f9
TT
4002011-04-15 Tom Tromey <tromey@redhat.com>
401
402 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
403
c8d895f1
GB
4042011-04-15 Gary Benson <gbenson@redhat.com>
405
406 * MAINTAINERS: Add myself to write-after-approval section.
407
56a9aa1d
MF
4082011-04-14 Mike Frysinger <vapier@gentoo.org>
409
410 * remote-sim.c (sim_command_completer): New function.
411 (_initialize_remote_sim): Set completer to sim_command_completer.
412
ba770c9c
TJB
4132011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
414
415 * breakpoint.c (print_exception_catchpoint): Rename to ...
416 (print_it_exception_catchpoint): ... this.
417 (gnu_v3_exception_catchpoint_ops): Update with new name
418 for print_it_exception_catchpoint.
419
51bf2553
EBM
4202011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
421
422 * MAINTAINERS: Add myself for write after approval privileges.
423
d242658c
MP
4242011-04-13 Marek Polacek <mpolacek@redhat.com>
425
426 * MAINTAINERS: Add myself as a write-after-approval maintainer.
427
4a4106ca
TJB
4282011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
429
430 * breakpoint.c (watch_command_1): Remove colon from exp_string.
431
26063d49
TJB
4322011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
433
434 * breakpoint.c (save_breakpoints): Verify whether
435 breakpoint_ops.print_recreate is defined before calling it.
436
7782b183
GB
4372011-04-11 Gary Benson <gbenson@redhat.com>
438
439 Fix failure with --enable-maintainer-mode.
440 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
441
e8930875
JK
4422011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
443
444 Code cleanup.
445 * symtab.c (search_symbols): Reorder the KIND description in the
446 function comment. Remove the unused 4th element of types, types2,
447 types3 and types4. New gdb_assert on KIND.
448 (symtab_symbol_info): Remove the unused 4th element of classnames.
449 New gdb_assert on KIND.
450 * symtab.h (enum search_domain): New warning in the enum comment.
451 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
452 TYPES_DOMAIN.
453
b4f2f049
JK
4542011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 Fix crash of gdb save-index on a STABS file.
457 * dwarf2read.c (write_psymtabs_to_index): Return also on no
458 PSYMTABS_ADDRMAP.
459
60d5a603
JK
4602011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
461
462 Fix DW_AT_accessibility compatibility with gcc-4.6+.
463 * dwarf2read.c: Include ctype.h.
464 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
465 functions.
466 (dwarf2_add_field): Fix new_field->accessibility by calling
467 dwarf2_default_access_attribute. Restructure setting accessibility
468 vs. virtuality.
469 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
470 is_private and is_protected by calling
471 dwarf2_default_access_attribute.
472
e0f68161
KB
4732011-04-08 Kevin Buettner <kevinb@redhat.com>
474
475 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
476 to the initialization.
477
2e1aae43
SE
4782011-04-08 Steve Ellcey <sje@cup.hp.com>
479
480 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
481 initalization.
482
c6ca3dab
PM
4832011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
484
485 Remove support for old Cygwin 1.5 versions.
486 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
487 function on old Cygwin version.
488 * windows-nat.c: Remove cygwin version check and always define
489 __USEWIDE for Cygwin compilation.
490
bd18283a
YQ
4912011-04-07 Yao Qi <yao@codesourcery.com>
492
493 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
494 and TO.
495 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
496 (arm_copy_svc): Remove parameters INSN and TO.
497 (decode_svc_copro): Update caller.
498 * arm-tdep.h (struct displaced_step_closure): Remove parameters
499 from function pointer `copy_svc_os'.
500
8c8dba6d
YQ
5012011-04-07 Yao Qi <yao@codesourcery.com>
502
503 * arm-tdep.c (cleanup_branch): Set a correct return address in
504 LR for ARM and Thumb.
505
59d7bcaf
JK
5062011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
507
508 Code cleanup.
509 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
510 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
511 in the function comment, a new note on values compatibility.
512 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
513 * symtab.h (SYMBOL_HASH_NEXT): New.
514
e7db58ea
TJB
5152011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
516
517 * ppc-linux-nat.c (check_condition): Add len output parameter.
518 Set it based on the memory region referenced in the condition
519 expression. Update all callers.
520
9f743ef6
JK
5212011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
522
523 Fix crash regression on systems featuring .gdb_index.
524 * objfiles.c (free_objfile): Move the
525 forget_cached_source_info_for_objfile call earlier. Comment it.
526 Extend the comment for objfile_free_data.
527
9182c5bc
JK
5282011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
529
530 Fix regression of displaying the debug format.
531 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
532 subfile.
533
04bd08de
TT
5342011-04-04 Tom Tromey <tromey@redhat.com>
535
536 * cli/cli-interp.c (struct captured_execute_command_args):
537 Remove.
538 (do_captured_execute_command): Remove.
539 (safe_execute_command): Use TRY_CATCH.
540 * cli/cli-script.c (struct wrapped_read_command_file_args):
541 Remove.
542 (wrapped_read_command_file): Remove.
543 (script_from_file): Use TRY_CATCH.
544 * exceptions.c (catch_exception): Remove.
545 * exceptions.h (catch_exception): Remove.
546 (deprecated_throw_reason): Update comment.
547 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
548 argument to 'context'.
549 (mi_execute_command): Use TRY_CATCH.
550 * remote.c (struct start_remote_args): Remove.
551 (remote_start_remote): Update; change arguments.
552 (remote_open_1): Use TRY_CATCH.
553
58438ac1
TT
5542011-04-04 Tom Tromey <tromey@redhat.com>
555
556 * tracepoint.c (scope_info): Update.
557 * symtab.c (decode_line_spec): Update.
558 * python/python.c (gdbpy_decode_line): Update.
559 * linespec.h (decode_line_1): Update.
560 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
561 (decode_compound, find_method, symtab_from_filename)
562 (decode_variable): Likewise.
563 * cli/cli-cmds.c (edit_command): Update.
564 (list_command): Update.
565 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
566 argument.
567 (create_breakpoint): Update.
568 (until_break_command): Update.
569 (addr_string_to_sals): Update.
570 (decode_line_spec_1): Update.
571
b78a6381
TT
5722011-04-04 Tom Tromey <tromey@redhat.com>
573
574 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
575 (do_captured_parse_breakpoint): Remove.
576 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
577 Use TRY_CATCH directly.
578
00174a86
TT
5792011-04-04 Tom Tromey <tromey@redhat.com>
580
581 * symtab.h (free_symtab): Remove.
582 (forget_cached_source_info_for_objfile): Declare.
583 * symmisc.c (free_symtab): Remove.
584 * source.c (forget_cached_source_info_for_objfile): New function.
585 (forget_cached_source_info): Use it.
586 * objfiles.c (free_objfile): Simplify check before calling
587 clear_current_source_symtab_and_line. Call
588 forget_cached_source_info_for_objfile.
589
30cc903e
TT
5902011-04-04 Tom Tromey <tromey@redhat.com>
591
592 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
593 (new_symtab): Don't set `free_code' on symtab.
594 (new_linetable): Properly handle size==0.
595 * symtab.h (struct symtab) <free_code, free_func>: Remove.
596 * symmisc.c (free_symtab): Don't free the linetable. Don't call
597 free_func.
598 * jv-lang.c (struct jv_per_objfile_data): New.
599 (jv_per_objfile_free): Free the data.
600 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
601 (get_java_class_symtab): Set the `dict' field on the
602 jv_per_objfile_data.
603 (free_class_block): Remove.
604 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
605 the symtab.
606
0c2e6019
TT
6072011-04-04 Tom Tromey <tromey@redhat.com>
608
609 * symfile.c (reread_symbols): Update.
610 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
611 field.
612 * objfiles.c (allocate_objfile): Update.
613 * cp-support.h (cp_check_possible_namespace_symbols): Don't
614 declare.
615 * cp-namespace.c (lookup_symbol_file): Don't call
616 lookup_possible_namespace_symbol.
617 (initialize_namespace_symtab, get_possible_namespace_block)
618 (free_namespace_block, cp_check_possible_namespace_symbols)
619 (check_possible_namespace_symbols_loop)
620 (check_one_possible_namespace_symbol)
621 (lookup_possible_namespace_symbol): Remove.
622 (maintenance_cplus_namespace): Replace with notice.
623 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
624
554d387d
TT
6252011-04-04 Tom Tromey <tromey@redhat.com>
626
627 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
628 * symtab.h (struct symtab) <producer, debugformat>: Now const.
629 * symmisc.c (free_symtab): Don't free debugformat.
630 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
631 (record_debugformat, record_producer): Document.
632 * buildsym.c (end_symtab): Don't save debugformat and producer
633 names on obstack.
634 (end_symtab): Don't free debugformat and producer fields.
635 (record_debugformat): Don't call xstrdup.
636 (record_producer): Likewise.
637
d4d4db8a
TT
6382011-04-04 Tom Tromey <tromey@redhat.com>
639
640 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
641 (source_line_charpos, source_charpos_line): Remove.
642
8903c50d
TT
6432011-04-04 Tom Tromey <tromey@redhat.com>
644
645 * symtab.h (domain_enum): Split in two...
646 (enum search_domain): New.
647 (search_symbols): Update.
648 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
649 redundant declarations.
650 (search_symbols): Change 'kind' argument to search_domain.
651 Update.
652 (print_symbol_info): Likewise.
653 (symtab_symbol_info): Likewise.
654 * symfile.h (struct quick_symbol_functions)
655 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
656 <expand_symtabs_matching>: Likewise.
657 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
658 (expand_symtabs_matching_via_partial): Update.
659 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
660 (dw2_expand_symtabs_for_function): Update.
661 * block.h: Moved anonymous enum...
662 * defs.h (enum block_enum): ... here. Now named.
663
d9351f5f 6642011-04-03 Joel Brobecker <brobecker@adacore.com>
665
666 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
667 * version.in: Bump version to 7.3.50.20110403-cvs.
668
d6e00af6
JB
6692011-04-03 Joel Brobecker <brobecker@adacore.com>
670
671 * NEWS: Create a new section for the next release branch.
672 Rename the section of the current branch, now that it has
673 been cut.
674
2b9e5ea6
UW
6752011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
676
677 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
678 for "fpscr" in target description.
679
0cf03b49
JK
6802011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
681
682 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
683 initialize it. Delay HASH initialization. Strip the part after open
684 parenthesis for languages with qualifiers. Call do_cleanups.
685
5d901a73
TT
6862011-04-01 Tom Tromey <tromey@redhat.com>
687
688 * utils.c (report_command_stats): Don't print `-' for negative
689 number.
690
b0dd7688
JB
6912011-04-01 Eric Botcazou <ebotcazou@adacore.com>
692
693 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
694 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
695 typedefs.
696
956a9fb9
JB
6972011-04-01 Joel Brobecker <brobecker@adacore.com>
698
699 * breakpoint.h (bpdisp_text): Add declaration.
700 * breakpoint.c (bpdisp_text): Make non-static.
701 * ada-lang.c: #include "mi/mi-common.h".
702 (print_it_exception): Rewrite to improve GDB/MI output.
703
3352110b
PA
7042011-04-01 Pedro Alves <pedro@codesourcery.com>
705
706 * arm-tdep.h (struct address_space): Add forward declaration.
707
18819fa6
UW
7082011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
709
710 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
711 * arm-tdep.c (arm_override_mode): New global.
712 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
713 execution mode heuristics.
714 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
715 second single-step breakpoint if needed, using
716 arm_insert_single_step_breakpoint.
717 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
718 ARM execution mode, do not call thumb_get_next_pc_raw.
719 (arm_get_next_pc): Encode execution mode in return value. Call
720 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
721 (arm_insert_single_step_breakpoint): New function.
722 (arm_software_single_step): Call it.
723 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
724 argument to return execution mode of sigreturn target.
725 (arm_linux_syscall_next_pc): Use it.
726 (arm_linux_copy_svc): Update call.
727 (arm_linux_software_single_step): Call
728 arm_insert_single_step_breakpoint.
729
a6e293d1
JK
7302011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
731
732 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
733 the comment.
734
a4c8e806
TT
7352011-03-31 Tom Tromey <tromey@redhat.com>
736
737 * varobj.c (update_dynamic_varobj_children): Properly handle
738 errors from iterator.
739
df5c6c50
JK
7402011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
741
742 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
743 struct linkage name twice.
744
1dae3efc
TT
7452011-03-31 Tom Tromey <tromey@redhat.com>
746
747 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
748 missing ">" to message.
749
f4f7ab05
TT
7502011-03-31 Tom Tromey <tromey@redhat.com>
751
752 * varobj.c (instantiate_pretty_printer): Remove duplicate
753 'return'.
754
fcf250e2
UW
7552011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
756
757 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
758 if neither saved value nor register available (e.g. signal frame).
759
ee6436e3
TJB
7602011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
761
762 * macroexp.c (expand): Avoid uninitialized variable
763 compiler warning.
764
423f41a5
TJB
7652011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
766
767 * breakpoint.c (break_range_command): Fix typo in comment.
768
f1310107
TJB
7692011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
770 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
771
772 Implement support for PowerPC BookE ranged breakpoints.
773 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
774 * breakpoint.h (struct bp_target_info) <length>: New member
775 variable.
776 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
777 instead of struct breakpoint as argument, and also add ASPACE
778 and BP_ADDR arguments. Update all callers.
779 (struct breakpoint_ops) <print_one_detail>: New method.
780 (struct breakpoint) <addr_string_range_end>: New member variable.
781 * breakpoint.c (breakpoint_location_address_match): Add function
782 prototype.
783 (insert_bp_location): Set bl->target_info.length.
784 (breakpoint_here_p): Call breakpoint_location_address_match.
785 (moribund_breakpoint_here_p): Likewise.
786 (regular_breakpoint_inserted_here_p): Likewise.
787 (breakpoint_thread_match): Likewise.
788 (bpstat_stop_status): Likewise.
789 (bpstat_check_location): Move call to
790 breakpoint_ops.breakpoint_hit to the top.
791 (print_one_breakpoint_location): Call
792 breakpoint_ops.print_one_detail if available.
793 (breakpoint_address_match_range): New function.
794 (breakpoint_location_address_match): Likewise.
795 (breakpoint_locations_match): Compare the length field of the
796 locations too.
797 (hw_breakpoint_used_count): Count resources used by all locations
798 in a breakpoint, and use breakpoint_ops.resources_needed if
799 available.
800 (breakpoint_hit_ranged_breakpoint): New function.
801 (resources_needed_ranged_breakpoint): Likewise.
802 (print_it_ranged_breakpoint): Likewise.
803 (print_one_ranged_breakpoint): Likewise.
804 (print_one_detail_ranged_breakpoint): Likewise.
805 (print_mention_ranged_breakpoint): Likewise.
806 (print_recreate_ranged_breakpoint): Likewise.
807 (ranged_breakpoint_ops): New structure.
808 (find_breakpoint_range_end): New function.
809 (break_range_command): Likewise.
810 (delete_breakpoint): Free addr_string_range_end.
811 (update_breakpoint_locations): Add SALS_END argument. Update
812 all callers. Calculate breakpoint length if a non-zero SALS_END
813 is given. Call breakpoint_locations_match instead of
814 breakpoint_address_match.
815 (reset_breakpoint): Find SaL of the end of the range if B is a
816 ranged breakpoint.
817 (_initialize_breakpoint): Register break-range command.
818 * defs.h (print_core_address): Add function prototype.
819 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
820 function.
821 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
822 (ppc_linux_remove_hw_breakpoint): Likewise.
823 (_initialize_ppc_linux_nat): Initialize
824 to_ranged_break_num_registers.
825 * target.c (update_current_target): Add comment about
826 to_ranged_break_num_registers.
827 (target_ranged_break_num_registers): New function.
828 * target.h (struct target_ops) <to_ranged_break_num_registers>:
829 New method.
830 (target_ranged_break_num_registers): Add function prototype.
831 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
832 * utils.c (print_core_address): ... here.
833
02d20e4a
UW
8342011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
835
836 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
837 variable compiler warning.
838
ef23e705
TJB
8392011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
840
841 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
842 code from here ...
843 (re_set_breakpoint): ... to here ...
844 (addr_string_to_sals): ... and here.
845
311e6ab3
PM
8462011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
847
848 * Makefile.in (SFILES): Add missing C sources.
849 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
850 Add missing headers.
851
acd1d99c
MF
8522011-03-29 Mike Frysinger <vapier@gentoo.org>
853
854 * .gitignore: New file.
855
66ee2731
MF
8562011-03-29 Mike Frysinger <vapier@gentoo.org>
857
858 * NEWS: Mention new cfi device simulation.
859
53832f31
TT
8602011-03-29 Tom Tromey <tromey@redhat.com>
861
862 * dwarf2read.c (fixup_partial_die): Handle linkage name on
863 otherwise anonymous types.
864 (dwarf2_name): Likewise.
865 * valops.c (value_struct_elt_for_reference): Refine artificial
866 type logic. Call error if j==-1.
867
09b58708
JK
8682011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
869
870 Fix false GCC warning.
871 * infcall.c (find_function_addr): Initialize funaddr.
872
6023c606
PM
8732011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
874
875 Fix mingw compilation with --enable-targets=all.
876 * remote-mips.c (gdb_usleep.h): Include header.
877 (mips_enter_debug): Use gdb_usleep instead of sleep.
878
0e30163f
JK
8792011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
880
881 Support resolution of STT_GNU_IFUNC via breakpoints.
882 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
883 bp_gnu_ifunc_resolver_return.
884 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
885 the loop. Support bp_gnu_ifunc_resolver and
886 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
887 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
888 breakpoints.
889 (bptype_string, print_one_breakpoint_location): Support
890 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
891 (user_settable_breakpoint): Return true also for
892 bp_gnu_ifunc_resolver.
893 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
894 bp_gnu_ifunc_resolver_return.
895 (set_breakpoint_location_function): New parameter explicit_loc,
896 describe it. Call find_pc_partial_function_gnu_ifunc with new
897 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
898 EXPLICIT_LOC is not set.
899 (set_raw_breakpoint): Set EXPLICIT_LOC for
900 set_breakpoint_location_function.
901 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
902 set_breakpoint_location_function.
903 (mention): Support bp_gnu_ifunc_resolver and
904 bp_gnu_ifunc_resolver_return.
905 (add_location_to_breakpoint): Set EXPLICIT_LOC for
906 set_breakpoint_location_function.
907 (update_breakpoint_locations): Remove static.
908 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
909 bp_gnu_ifunc_resolver_return.
910 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
911 bp_gnu_ifunc_resolver_return.
912 (update_breakpoint_locations): New declaration.
913 * elfread.c: Include gdbthread.h and regcache.h.
914 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
915 functions.
916 (elf_gnu_ifunc_fns): Install them.
917 * minsyms.c (stub_gnu_ifunc_resolver_stop)
918 (stub_gnu_ifunc_resolver_return_stop): New functions.
919 (stub_gnu_ifunc_fns): Install them.
920 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
921 and gnu_ifunc_resolver_return_stop.
922 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
923
07be84bf
JK
9242011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
925
926 STT_GNU_IFUNC reader implementation.
927 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
928 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
929 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
930 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
931 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
932 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
933 (elf_gnu_ifunc_resolve_addr): New.
934 (elf_symfile_read): Call elf_rel_plt_read.
935 (elf_gnu_ifunc_fns): New.
936 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
937 Install elf_gnu_ifunc_fns.
938 * infcall.c (find_function_return_type): New function.
939 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
940 * minsyms.c (stub_gnu_ifunc_resolve_addr)
941 (stub_gnu_ifunc_resolve_name): New functions.
942 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
943 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
944 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
945
300f8e10
JK
9462011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
947
948 Code cleanup for later STT_GNU_IFUNC support.
949 * infcall.c (find_function_addr): Remove variable code, use explicit
950 dereferences for it. Move VALUE_TYPE initialization later.
951
11c81455
JK
9522011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
953
954 GDB find_pc_partial_function support for STT_GNU_IFUNC.
955 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
956 (clear_pc_function_cache): Clear it.
957 (find_pc_partial_function): Rename to ...
958 (find_pc_partial_function_gnu_ifunc): ... this function. New
959 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
960 (find_pc_partial_function): New wrapper for this function.
961 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
962
0875794a
JK
9632011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
964
965 GDB internal type support for STT_GNU_IFUNC.
966 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
967 (elf_symtab_read): Set mst_text_gnu_ifunc for
968 BSF_GNU_INDIRECT_FUNCTION.
969 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
970 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
971 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
972 nodebug_got_plt_symbol.
973 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
974 (TYPE_GNU_IFUNC): New.
975 (struct main_type): New field flag_gnu_ifunc.
976 (struct builtin_type): New field builtin_func_func.
977 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
978 nodebug_got_plt_symbol.
979 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
980 (in_gnu_ifunc_stub): New.
981 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
982 mst_text_gnu_ifunc.
983 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
984 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
985 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
986 in_gnu_ifunc_stub.
987 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
988 * symtab.c (search_symbols): Likewise.
989 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
990 and mst_slot_got_plt.
991 (in_gnu_ifunc_stub): New declaration.
992
d0fb5eae
JK
9932011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
994
995 Support a ring of related breakpoints.
996 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
997 other functions, add gdb_assert.
998 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
999 watchpoint_del_at_next_stop.
1000 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
1001 (bpstat_stop_status): Handle ring in related_breakpoint.
1002 (set_raw_breakpoint_without_location): Initialize ring in
1003 related_breakpoint.
1004 (delete_breakpoint): Handle ring in related_breakpoint, use
1005 watchpoint_del_at_next_stop.
1006 (map_breakpoint_numbers): Handle ring in related_breakpoint.
1007
9cded63f
TT
10082011-03-28 Tom Tromey <tromey@redhat.com>
1009
1010 PR symtab/12441:
1011 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
1012 with `language_minimal'.
1013
467d42c4
UW
10142011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
1015
1016 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
1017 instead of checking for STT_ARM_TFUNC symbol type.
1018
62853458
TT
10192011-03-25 Tom Tromey <tromey@redhat.com>
1020
1021 * linespec.c (symbol_found): Restore line-based result for
1022 non-LOC_LABEL symbols.
1023
a7417d46
KT
10242011-03-25 Kai Tietz <ktietz@redhat.com>
1025
1026 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
1027 instead of strcmp for comparison.
1028 (tui_source_is_displayed): Likewise.
1029 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
1030
55f1336d
TT
10312011-03-24 Mark Wielaard <mjw@redhat.com>
1032
1033 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
1034 complaint.
1035 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
1036 (find_partial_die_in_comp_unit): Likewise in comment.
1037 (read_attribute_value): Likewise.
1038 (lookup_die_type): Likewise.
1039 (dwarf_form_name): Likewise.
1040 (dump_die_shallow): Likewise.
1041 (follow_die_ref_or_sig): Likewise.
1042
9ef07c8c
TT
10432011-03-24 Tom Tromey <tromey@redhat.com>
1044
1045 PR breakpoints/11816:
1046 * linespec.c (decode_line_1): Parse `function:label' linespecs.
1047 (decode_compound): Update.
1048 (find_function_symbol): New function.
1049 (decode_dollar): Update.
1050 (decode_label): Add 'function_symbol' parameter. Handle
1051 function-relative labels.
1052 (decode_variable): Update.
1053 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
1054 not its line. Set `special_display' and canonical name for
1055 labels.
1056
56435ebe
TT
10572011-03-24 Tom Tromey <tromey@redhat.com>
1058
1059 * linespec.h (struct linespec_result) <special_display>: New
1060 field.
1061 * breakpoint.h (struct breakpoint) <display_canonical>: New
1062 field.
1063 * breakpoint.c (print_breakpoint_location): Respect
1064 display_canonical.
1065 (create_breakpoint_sal): Add 'display_canonical' parameter.
1066 (create_breakpoints_sal): Update.
1067 (create_breakpoint): Update.
1068
7efd8fc2
TT
10692011-03-24 Tom Tromey <tromey@redhat.com>
1070
1071 * symtab.c (decode_line_spec): Update.
1072 * linespec.c (build_canonical_line_spec): Change type of
1073 'canonical'.
1074 (decode_line_2, decode_line_1, decode_objc, decode_compound)
1075 (find_method, decode_all_digits, decode_dollar, decode_label)
1076 (symbol_found): Likewise.
1077 (init_linespec_result): New function.
1078 * breakpoint.c (struct captured_parse_breakpoint_args)
1079 <canonical_p>: New field, replaces addr_string_p.
1080 (create_breakpoints_sal): Add 'canonical' parameter, replacing
1081 'addr_string'.
1082 (parse_breakpoint_sals): Likewise.
1083 (do_captured_parse_breakpoint): Update.
1084 (create_breakpoint): Use struct linespec_result.
1085 (until_break_command): Update.
1086 (breakpoint_re_set_one): Update.
1087 (decode_line_spec_1): Update.
1088 * linespec.h (struct linespec_result): New.
1089 (init_linespec_result): Declare.
1090
788c8b10
PA
10912011-03-23 Pedro Alves <pedro@codesourcery.com>
1092
1093 * regcache.c (regcache_raw_read): If the target didn't supply a
1094 given raw register, mark it as unavailable.
1095
0ba1096a
KT
10962011-03-23 Kai Tietz <ktietz@redhat.com>
1097
1098 * breakpoint.c (clear_command): Use filename_cmp
1099 instead of strcmp for comparison.
1100 * buildsym.c (watch_main_source_file_lossage): Likewise.
1101 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
1102 checking just for slash.
1103 * dbxread.c (read_dbx_symtab): Use lbasename instead of
1104 strrchr and filename_cmp instead of strcmp for filenames.
1105 (add_old_header_file): Use filename_cmp
1106 instead of strcmp for comparison.
1107 * exec.c (exec_set_section_address): Likewise.
1108 * macrotab.c (macro_lookup_inclusion): Likewise.
1109 (macro_lookup_inclusion): Likewise.
1110 * elfread.c (_initialize_elfread): Likewise.
1111 (elfstab_offset_sections): Likewise.
1112 (elfstab_offset_sections): Use lbasename instead of
1113 strrchr.
1114 * mdebugread.c (parse_partial_symbols): Likewise.
1115 (arse_partial_symbols): Use filename_(n)cmp instead of
1116 str(n)cmp for comparison.
1117 * minsyms.c (lookup_minimal_symbol): Likewise.
1118 * psymtab.c (read_psymtabs_with_filename): Likewise.
1119 * solib.c (solib_read_symbols): Likewise.
1120 (reload_shared_libraries_1): Likewise.
1121 * symmisc.c (maintenance_print_symbols): Likewise.
1122 * symfile.c (separate_debug_file_exists): Likewise.
1123 (reread_symbols): Likewise.
1124 (find_separate_debug_file_by_debuglink): Likewise.
1125 * remote-fileio.c (remote_fileio_func_rename): Likewise.
1126 * source.c (add_path): Likewise.
1127 * symtab.c (filename_seen): Likewise.
1128 (file_matches): Likewise.
1129 (print_symbol_info): Likewise.
1130 (maybe_add_partial_symtab_filename): Likewise.
1131 (make_source_files_completion_list): Likewise.
1132 * xml-syscall.c (init_sysinfo): Likewise.
1133 * windows-nat.c (_initialize_check_for_gdb_ini): Use
1134 IS_DIR_SEPARATOR for checking for trailing path separator.
1135
dd90784c
JK
11362011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
1139 label abort_expression.
1140 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
1141 DWARF_VALUE_OPTIMIZED_OUT.
1142
3167638f
JK
11432011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1144
1145 Code cleanup.
1146 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
1147 to linkage_name. Invert its value. Update the function comment.
1148 (c_type_print_varspec_suffix): Invert it at the caller.
1149 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
1150
ce406537
PA
11512011-03-22 Pedro Alves <pedro@codesourcery.com>
1152
1153 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
1154 errors when reading the `stop_pc'.
1155 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
1156 get_frame_pc.
1157
da5d4055
PM
11582011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1159
1160 * NEWS: Document gdb.Write stream keyword.
1161
29e0eb9c
JK
11622011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1163
1164 Revert:
1165 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1166 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1167 (dwarf2_add_field): Fix new_field->accessibility for
1168 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1169
05775840
PM
11702011-03-22 Phil Muldoon <pmuldoon@redhat.com>
1171
1172 PR python/12183
1173
1174 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
1175 other error classes. Do not print stack trace.
1176
a0cb7835
JK
11772011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1178
1179 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
1180 (dwarf2_add_field): Fix new_field->accessibility for
1181 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
1182
d19f7eee
UW
11832011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
1184
1185 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
1186 encountering a load via a non-SP register.
1187
4a2fbb50
UW
11882011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1189
1190 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
1191 field in returned unwinder.
1192
3489610d
JB
11932012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1194
1195 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
1196
8c1a34e7
JB
11972012-03-21 Joel Brobecker <brobecker@adacore.com>
1198
1199 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
1200 of xmalloc.
1201
8fbca658
PA
12022012-03-18 Pedro Alves <pedro@codesourcery.com>
1203
1204 * frame.c (frame_unwind_register): Throw an error if unwinding the
1205 register failed.
1206 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
1207 an unwind stop reason.
1208 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
1209 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
1210 UNWIND_UNAVAILABLE>: New.
1211 * inline-frame.c (inline_frame_unwind): Install
1212 default_frame_unwind_stop_reason.
1213 * frame-unwind.c: Include "exceptions.h".
1214 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
1215 (default_frame_unwind_stop_reason): New.
1216 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
1217 (default_frame_unwind_stop_reason): Declare.
1218 (struct frame_unwind) <stop_reason>: New function pointer.
1219
1220 * dummy-frame.c: Install default_frame_unwind_stop_reason.
1221 * dwarf2-frame.c: Include exceptions.h.
1222 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
1223 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
1224 computing the CFA. If such an error was thrown, set
1225 unavailable_retaddr.
1226 (dwarf2_frame_unwind_stop_reason): New.
1227 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
1228 unavailable.
1229 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
1230 (dwarf2_signal_frame_unwind): Ditto.
1231
1232 * amd64-tdep.c: Include "exceptions.h".
1233 (struct amd64_frame_cache): New field "base_p".
1234 (amd64_init_frame_cache): Clear it.
1235 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
1236 Avoid reading registers with functions that throw if the register
1237 is not necessary to compute the frame base.
1238 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1239 swallowing NOT_AVAILABLE_ERROR.
1240 (amd64_frame_unwind_stop_reason): New.
1241 (amd64_frame_this_id): Don't build a frame id if the frame base
1242 was unavailable.
1243 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
1244 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1245 base_p if the frame base was computable.
1246 (amd64_sigtramp_frame_unwind_stop_reason): New.
1247 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
1248 frame base was unavailable.
1249 (amd64_sigtramp_frame_unwind): Install
1250 amd64_sigtramp_frame_unwind_stop_reason.
1251 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1252 base_p if the frame base was computable.
1253 (amd64_epilogue_frame_unwind_stop_reason): New.
1254 (amd64_epilogue_frame_this_id): Don't build a frame id if the
1255 frame base was unavailable.
1256 (amd64_epilogue_frame_unwind): Install
1257 amd64_epilogue_frame_unwind_stop_reason.
1258 * i386-tdep.c: Include "exceptions.h".
1259 (struct i386_frame_cache): New field "base_p".
1260 (i386_init_frame_cache): Clear it.
1261 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
1262 Avoid reading registers with functions that throw if the register
1263 is not necessary to compute the frame base.
1264 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
1265 swallowing NOT_AVAILABLE_ERROR.
1266 (i386_frame_unwind_stop_reason): New.
1267 (i386_frame_this_id): Don't build a frame id if the frame base was
1268 unavailable.
1269 (i386_frame_prev_register): Handle unavailable SP.
1270 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
1271 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1272 base_p if the frame base was computable.
1273 (i386_epilogue_frame_unwind_stop_reason): New.
1274 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
1275 base was unavailable.
1276 (i386_epilogue_frame_unwind): Install
1277 i386_epilogue_frame_unwind_stop_reason.
1278 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
1279 base_p if the frame base was computable.
1280 (i386_sigtramp_frame_unwind_stop_reason): New.
1281 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
1282 base was unavailable.
1283 (i386_sigtramp_frame_unwind): Install
1284 i386_sigtramp_frame_unwind_stop_reason.
1285 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
1286 type's size, not the register's.
1287 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
1288
1289 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
1290 default_frame_unwind_stop_reason.
1291 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
1292 (alpha_heuristic_frame_unwind): Ditto.
1293 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
1294 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
1295 * avr-tdep.c (avr_frame_unwind): Ditto.
1296 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
1297 Ditto.
1298 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
1299 * frv-tdep.c (frv_frame_unwind): Ditto.
1300 * h8300-tdep.c (h8300_frame_unwind): Ditto.
1301 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
1302 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
1303 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
1304 (hppa_stub_frame_unwind): Ditto.
1305 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
1306 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
1307 (ia64_libunwind_frame_unwind)
1308 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
1309 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
1310 * lm32-tdep.c (lm32_frame_unwind): Ditto.
1311 * m32c-tdep.c (m32c_unwind): Ditto.
1312 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
1313 * m32r-tdep.c (m32r_frame_unwind): Ditto.
1314 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
1315 * m68k-tdep.c (m68k_frame_unwind): Ditto.
1316 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
1317 * m88k-tdep.c (m88k_frame_unwind): Ditto.
1318 * mep-tdep.c (mep_frame_unwind): Ditto.
1319 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
1320 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
1321 (mips_stub_frame_unwind): Ditto.
1322 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
1323 * moxie-tdep.c (moxie_frame_unwind): Ditto.
1324 * mt-tdep.c (mt_frame_unwind): Ditto.
1325 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
1326 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
1327 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
1328 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
1329 (s390_sigtramp_frame_unwind): Ditto.
1330 * score-tdep.c (score_prologue_unwind): Ditto.
1331 * sh-tdep.c (sh_frame_unwind): Ditto.
1332 * sh64-tdep.c (sh64_frame_unwind): Ditto.
1333 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
1334 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
1335 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
1336 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
1337 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
1338 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
1339 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
1340 (sparc64obsd_trapframe_unwind): Ditto.
1341 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
1342 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
1343 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
1344 * v850-tdep.c (v850_frame_unwind): Ditto.
1345 * vax-tdep.c (vax_frame_unwind): Ditto.
1346 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
1347 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
1348 * xtensa-tdep.c (xtensa_unwind): Ditto.
1349
f23d1b92
PA
13502011-03-18 Pedro Alves <pedro@codesourcery.com>
1351
1352 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
1353 there's always a frame. Use get_frame_pc_if_available instead of
1354 get_frame_pc, and if there's no PC available, don't look up a
1355 symtab.
1356
1d4f5741
PA
13572011-03-18 Pedro Alves <pedro@codesourcery.com>
1358
1359 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
1360 unavailable PC.
1361
dba09041
PA
13622011-03-18 Pedro Alves <pedro@codesourcery.com>
1363
1364 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1365 gracefully.
1366
9a26e44c
PA
13672011-03-18 Pedro Alves <pedro@codesourcery.com>
1368
1369 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1370 * frame.c (frame_unwind_caller_pc_if_available): New.
1371 * stack.c (frame_info): Handle unavailable PC.
1372
13732011-03-18 Pedro Alves <pedro@codesourcery.com>
1374
1375 * frame.c (frame_unwind_pc): Rename to ...
1376 (frame_unwind_pc_if_available): ... this. New `pc' output
1377 parameter. Change return type to int. Gracefully handle
1378 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1379 happened, or 1 otherwise.
1380 (frame_unwind_pc): Reimplement on top of
1381 frame_unwind_pc_if_available.
1382 (get_frame_func): Rename to ...
1383 (get_frame_func_if_available): New `pc' output parameter. Change
1384 return type to int. Gracefully handle the PC not being available.
1385 (get_frame_func): Reimplement on top of
1386 get_frame_func_if_available.
1387 (select_frame): Handle the PC being unavailable.
1388 (get_prev_frame): Handle the PC being unavailable.
1389 (get_frame_pc_if_available): New.
1390 (get_frame_address_in_block_if_available): New.
1391 (find_frame_sal): Handle the frame PC not being available.
1392 * frame.h (get_frame_pc_if_available): Declare.
1393 (get_frame_address_in_block_if_available): Declare.
1394 (get_frame_func_if_available): Declare.
1395 * stack.c (print_frame_info): Handle the PC being unavailable.
1396 (find_frame_funname): Ditto.
1397 (print_frame): Handle the PC being unavailable.
1398 (get_frame_language): Ditto.
1399 * blockframe.c (get_frame_block): Ditto.
1400 * macroscope.c (default_macro_scope): Ditto.
1401 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1402
14032011-03-18 Pedro Alves <pedro@codesourcery.com>
1404
1405 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1406 NOT_AVAILABLE_ERROR when evaluating the location expression.
1407
14082011-03-18 Pedro Alves <pedro@codesourcery.com>
1409
1410 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1411 returning that the register piece is unavailable/optimized out.
1412 (write_pieced_value): Handle get_frame_register_bytes returning
1413 that the register piece is unavailable/optimized out when doing a
1414 read-modify write of a bitfield.
1415 * findvar.c (value_from_register): Handle get_frame_register_bytes
1416 returning that the register piece is unavailable/optimized out.
1417 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1418 and `unavailablep'. Throw error on bad debug info. Use
1419 frame_register instead of frame_register_read, to fill in the new
1420 arguments.
1421 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1422 and `unavailablep'.
1423 * valops.c: (value_assign): Adjust, and handle
1424 get_frame_register_bytes failing.
1425 * spu-tdep.c: Include exceptions.h.
1426 (spu_software_single_step): Adjust, and handle
1427 get_frame_register_bytes failing.
1428 (spu_get_longjmp_target): Ditto.
1429 * gdbarch.sh (register_to_value): Change to return int. New
1430 parameters `optimizedp' and `unavailablep'.
1431 * gdbarch.h, gdbarch.c: Regenerate.
1432 * i386-tdep.c (i386_register_to_value): Adjust to new
1433 gdbarch_register_to_value interface.
1434 * i387-tdep.c (i387_register_to_value): Ditto.
1435 * i387-tdep.h (i387_register_to_value): Ditto.
1436 * alpha-tdep.c (alpha_register_to_value): Ditto.
1437 * ia64-tdep.c (ia64_register_to_value): Ditto.
1438 * m68k-tdep.c (m68k_register_to_value): Ditto.
1439 * mips-tdep.c (mips_register_to_value): Ditto.
1440 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1441
0fdb4f18
PA
14422011-03-18 Pedro Alves <pedro@codesourcery.com>
1443
1444 * findvar.c (value_of_register): Mark the value as unavailable, if
1445 the register is unavailable.
1446 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1447 (frame_register): New `unavailablep' parameter.
1448 (frame_register_read): Update comment.
1449 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1450 Set it if the register is unavailable. If the register is
1451 unavailable, clear the output buffer.
1452 (frame_register): New `unavailablep' parameter. Pass it down.
1453 (frame_unwind_register): Adjust.
1454 (put_frame_register): Adjust.
1455 (frame_register_read): Adjust. Also return false if the register
1456 is not available.
1457 (frame_register_unwind_location): Adjust.
1458 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1459 is unavailable, mark the value accordingly.
1460 * stack.c (frame_info): Handle unavailable registers.
1461
e69aa73e
PA
14622011-03-18 Pedro Alves <pedro@codesourcery.com>
1463
1464 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1465 simplify, using regcache_cooked_read.
1466
05d1431c
PA
14672011-03-18 Pedro Alves <pedro@codesourcery.com>
1468
1469 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1470 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1471 (regcache_raw_read_unsigned, regcache_raw_read_part)
1472 (regcache_cooked_read, regcache_cooked_read_signed)
1473 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1474 (regcache_cooked_read_ftype): Change return to enum
1475 register_status.
1476 * regcache.c: Include exceptions.h
1477 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1478 (do_cooked_read): Change return to enum register_status. Always
1479 forward to regcache_cooked_read.
1480 (regcache_raw_read): Change return to enum register_status. If
1481 the register is not REG_VALID, memset the buffer. Return the
1482 register's status.
1483 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1484 return the register's status.
1485 (regcache_raw_read_unsigned): Ditto.
1486 (regcache_cooked_read): Change return to enum register_status.
1487 Assert that with read-only regcaches, the register's status must
1488 be known. If the regcache is read-only, and the register is not
1489 REG_VALID, memset the buffer. Return the register's status.
1490 (regcache_cooked_read_signed): Change return to enum
1491 register_status. Handle non-REG_VALID registers and return the
1492 register's status.
1493 (regcache_cooked_read_unsigned): Change return to enum
1494 register_status. Handle non-REG_VALID registers and return the
1495 register's status.
1496 (regcache_xfer_part, regcache_raw_read_part)
1497 (regcache_cooked_read_part): Change return to enum
1498 register_status. Return the register's status.
1499 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1500 unavailable.
1501 (regcache_dump): Handle unavailable cooked registers.
1502 * frame.c (do_frame_register_read): Adjust interface to match
1503 regcache_cooked_read_ftype.
1504 * gdbarch.sh (pseudo_register_read): Change return to enum
1505 register_status.
1506 * gdbarch.h, gdbarch.c: Regenerate.
1507
1508 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1509 register_status.
1510 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1511 register_status. If reading a raw register indicates the raw
1512 register is not valid, return the raw register's status,
1513 otherwise, return REG_VALID.
1514 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1515 register_status. Handle non-REG_VALID raw registers and return
1516 the register's status.
1517 * arm-tdep.c (arm_neon_quad_read)
1518 (arm_pseudo_read): Change return to enum register_status. Handle
1519 non-REG_VALID raw registers and return the register's status.
1520 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1521 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1522 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1523 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1524 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1525 register_status.
1526 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1527 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1528 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1529 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1530 (m32c_pseudo_register_read): Change return to enum
1531 register_status. Adjust.
1532 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1533 enum register_status. Return the register's status.
1534 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1535 register_status. Return the register's status.
1536 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1537 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1538 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1539 * rs6000-tdep.c (move_ev_register_func): New typedef.
1540 (e500_move_ev_register): Use it. Change return to enum
1541 register_status. Return the register's status.
1542 (do_regcache_raw_read): New function.
1543 (do_regcache_raw_write): New function.
1544 (e500_pseudo_register_read): Change return to enum
1545 register_status. Return the register's status. Use
1546 do_regcache_raw_read.
1547 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1548 (dfp_pseudo_register_read): Change return to enum register_status.
1549 Return the register's status.
1550 (vsx_pseudo_register_read): Ditto.
1551 (efpr_pseudo_register_read): Ditto.
1552 (rs6000_pseudo_register_read): Ditto.
1553 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1554 register_status. Return the register's status.
1555 * sh64-tdep.c (pseudo_register_read_portions): New function.
1556 (sh64_pseudo_register_read): Change return to enum
1557 register_status. Use pseudo_register_read_portions. Return the
1558 register's status.
1559 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1560 register_status. Return the register's status.
1561 * sh-tdep.c (pseudo_register_read_portions): New function.
1562 (sh_pseudo_register_read): Change return to enum register_status.
1563 Use pseudo_register_read_portions. Return the register's status.
1564 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1565 enum register_status. Return the register's status.
1566 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1567 * spu-tdep.c (spu_pseudo_register_read_spu)
1568 (spu_pseudo_register_read): Ditto.
1569 * xtensa-tdep.c (xtensa_register_read_masked)
1570 (xtensa_pseudo_register_read): Ditto.
1571 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1572
e10abd8f
PM
15732011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1574
1575 * python/py-value.c (valpy_getitem): Fix formatting of error function
1576 call.
1577
7ea6d463
PM
15782011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1579
1580 ARI fixes: Add missing internationalization markups throughout
1581 C source files.
1582 * darwin-nat-info.c: Ditto.
1583 * record.c: Ditto.
1584 * remote.c: Ditto.
1585 * mi/mi-main.c: Ditto.
1586
001083c6
PM
15872011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1588
1589 ARI fixes: Add missing internationalization markups throughout
1590 yacc files.
1591 * c-exp.y: Ditto.
1592 * cp-name-parser.y: Ditto.
1593 * f-exp.y: Ditto.
1594 * m2-exp.y: Ditto.
1595 * objc-exp.y: Ditto.
1596 * p-exp.y: Ditto.
1597
4f1cdeec
PM
15982011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1599
1600 ARI fixes: Messages should have no trailing new lines.
1601 * darwin-nat.c (mach_check_error): Remove trailing new line from
1602 warning function call message.
1603 * record.c (bfdcore_read): Idem for error call.
1604
28e698f1
PM
16052011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1606
1607 * common/signals.c (target_signal_from_host): Add _ markup to error
1608 function call message.
1609 (target_signal_to_host): Add _ markup and remove trailing new line
1610 from warning call message.
1611 (target_signal_from_command): Add _ markup to error function call
1612 message.
1613
99c3dc11
PM
16142011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1615
1616 PR python/12149
1617
1618 * python/python.c (gdbpy_write): Accept a stream argument and
1619 operate to the appropriate stream.
1620 (gdbpy_flush): Likewise.
1621 (_initialize_python): Add stream constants.
1622 (finish_python_initialization): Add GdbOutputErrorFile class.
1623
c20800be
KY
16242011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1625
1626 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1627
f4a1794a
KY
16282011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1629
1630 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1631 to store_signed_integer. Add debug message when relocating CALL
1632 instructions. Fix formatting of debug message.
1633 * i386-tdep.c (i386_relocate_instruction): Ditto.
1634
d4862372
JB
16352011-03-17 Joel Brobecker <brobecker@gnat.com>
1636
1637 * target.h (struct target_ops): Remove to_lookup_symbol field.
1638 (target_lookup_symbol): Delete macro.
1639 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1640 (update_current_target, setup_target_debug): Remove handling
1641 of to_lookup_symbol target_ops field.
1642 * ada-tasks.c (get_known_tasks_addr): Remove use of
1643 target_lookup_symbol.
1644 * coffread.c (coff_symtab_read): Likewise.
1645 * dbxread.c (read_dbx_symtab): Ditto.
1646
d645e32e
JB
16472011-03-17 Joel Brobecker <brobecker@gnat.com>
1648
1649 PR gdb/12116:
1650 * configure.ac: Add getthrds declaration check.
1651 * configure, config.in: Regenerate.
1652 * aix-thread.c (getthrds): Declare only if not already declared
1653 in procinfo.h. More declaration out of get_signaled_thread to
1654 global scope.
1655
29703da4
PM
16562011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1657
1658 * python/py-symtab.c: Populate symtab_object_methods,
1659 sal_object_methods.
1660 (stpy_is_valid): New function.
1661 (salpy_is_valid): Ditto.
1662 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1663 (sympy_is_valid): New function.
1664 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1665 (objfpy_is_valid): New function.
1666 * python/py-inferior.c: Populate inferior_object_methods.
1667 (infpy_is_valid): New function.
1668 * python/py-infthread.c: Populate thread_object_methods.
1669 (thpy_is_valid): New function.
1670 * python/py-block.c: Declare block_object_methods. Populate. Declare
1671 block_iterator_object_methods. Populate.
1672 (blpy_is_valid): New function.
1673 (blpy_iter_is_valid): Ditto.
1674
c00f8484
KS
16752011-03-16 Keith Seitz <keiths@redhat.com>
1676
1677 * linespec.c (find_methods): Canonicalize NAME before looking
1678 up the symbol.
1679 (name_end): New function.
1680 (keep_name_info): New function.
1681 (decode_line_1): Use keep_name_info.
1682 (decode_compound): Likewise.
1683 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1684 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1685
1686 PR c++/12273
1687 * linespec.c (locate_first_half): Keep overload information, too.
1688 (decode_compound): Use a string to represent break characters
1689 to escape the loop.
1690 If P points to a break character, do not increment it.
1691 For C++ and Java, keep overload information and relevant keywords.
1692 If we cannot find a symbol, search the minimal symbols.
1693
1694 PR c++/11734
1695 * linespec.c (decode_compound): Rename SAVED_ARG to
1696 THE_REAL_SAVED_ARG.
1697 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1698 single-quotes.
1699 Pass a valid block to lookup_symbol.
1700 (lookup_prefix_sym): Likewise.
1701 (find_method): Construct search name based on SYM_CLASS instead
1702 of SAVED_ARG.
1703 * psymtab.c (lookup_partial_symbol): Add language parameter.
1704 (lookup_symbol_aux_psymtabs): Likewise.
1705 Don't assume that the psymtab we found was the right one. Search
1706 for the desired symbol in the symtab to be certain.
1707 (psymtab_search_name): New function.
1708 (lookup_partial_symbol): Use psymtab_search_name.
1709 Add language parameter.
1710 (read_symtabs_for_function): Add language parameter and pass to
1711 lookup_partial_symbol.
1712 (find_symbol_file_from_partial): Likewise.
1713
c91513d8
PP
17142011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1715
1716 PR gdb/12528
1717 * dwarf2read.c (noop_record_line): New function.
1718 (dwarf_decode_lines): Ignore line tables for GCd functions.
1719
b37520b6
PM
17202011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1721
1722 Fix ARI warnings about new lines at the end of messages, which
1723 are unneeded as there is a new line added at the end of the message
1724 automatically.
1725 * darwin-nat.c (darwin_stop_inferior): Ditto.
1726 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1727 * dfp.c (decimal_to_number): Ditto.
1728 * exec.c (print_section_info): Ditto.
1729 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1730 * osdata.c (get_osdata): Ditto.
1731 * record.c (bfdcore_write): Ditto.
1732 * remote-mips.c (mips_readchar): Ditto.
1733 * remote.c (read_ptid): Ditto.
1734 * ser-mingw.c (ser_windows_raw): Ditto.
1735 * tracepoint.c (add_local_symbols): Ditto.
1736 * windows-nat.c (fake_create_process): Ditto.
1737
b08ee6a2
TT
17382011-03-16 Tom Tromey <tromey@redhat.com>
1739
1740 * tracepoint.c (stop_tracing): Don't declare.
1741 * event-top.c (after_char_processing_hook): Add `(void)'.
1742
9a6f1302
PM
17432011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1744
1745 * NEWS: Add Parameter sub-classing description.
1746
7ceb86b1
KT
17472011-03-16 Kai Tietz <ktietz@redhat.com>
1748
1749 * MAINTAINERS: Update my e-mail address.
1750
efeff6cf
AT
17512011-03-15 Andreas Tobler <andreast@fgznet.ch>
1752
1753 * MAINTAINERS: Add myself for write after approval privileges.
1754
681c238c
MS
17552011-03-15 Michael Snyder <msnyder@vmware.com>
1756
f3df5b08
MS
1757 * frame.c (find_frame_sal): Assert sym is not null.
1758
13f6513c
MS
1759 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1760
50412521
MS
1761 * objc-lang.c (selectors_info): Check strchr for null result.
1762
681c238c
MS
1763 * stabsread.c (define_symbol): Guard against bad stabstring input.
1764
6ced1581
PM
17652011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1766
1767 Remove trailing spaces and tabulations from pascal language
1768 support sources.
1769 p-exp.y: Ditto.
1770 p-lang.c: Ditto.
1771 p-lang.h: Ditto.
1772 p-valprint.c: Ditto.
1773
9373cf26
JK
17742011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1775
1776 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1777 than LOW. Comment it.
1778 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1779 HIGHPC not strictly higher than LOWPC.
1780
9a1edae6
PM
17812011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1782
1783 Fix formatting of function declarations returning a pointer in
1784 previous commit.
1785 * varobj.c (varobj_add_child): Ditto.
1786 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1787 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1788
24e9cda0
UW
17892011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1790
1791 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1792 for the "generic" vector ABI used with GCC 4.3 and later.
1793 (ppc64_sysv_abi_return_value): Likewise.
1794
17952011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
1796
1797 * infcall.c (call_function_by_hand): Function return value is
1798 always a non_lval, even when using struct_return.
1799
c9174737
PA
18002011-03-15 Pedro Alves <pedro@codesourcery.com>
1801
1802 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1803 (map_display_numbers): New.
1804 (do_delete_display): New.
1805 (undisplay_command): Use map_display_numbers.
1806 (do_enable_disable_display): New.
1807 (enable_disable_display_command): New function.
1808 (enable_display): Delete.
1809 (enable_display_command): New.
1810 (disable_display_command): Reimplement.
1811 (_initialize_printcmd): Adjust "enable display" command to use
1812 `enable_display_command' as callback.
1813
350c6c65
PM
18142011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1815
1816 * NEWS: Add Python breakpoint 'stop' operation.
1817
824446ad
PM
18182011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1819
1820 * NEWS: Delete duplicate entry. Fix typo.
1821
2021ad3a
PM
18222011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1823
1824 Fix ARI warning about function names in first column.
1825 Put prototype declaration on same line as return type.
1826 * objc-exp.y: Ditto.
1827 * p-exp.y: Ditto.
1828 * python/py-stopevent.h: Ditto.
1829 For long function names, split parameters to
1830 allow function name on same line as return type.
1831 * solib-pa64.c: Ditto.
1832 * varobj.c: Ditto.
1833 * varobj.h: Ditto.
1834 For long function declaration, use single line.
1835 * hppa-tdep.h: Ditto.
1836 * inferior.h: Ditto.
1837
7371cf6d
PM
18382011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1839
1840 * python/python.h: Declare gdbpy_should_stop and
1841 gdbpy_breakpoint_has_py_cond.
1842 * python/python.c: Add python.h to includes. Remove python.h from
1843 HAVE_PYTHON definition
1844 (gdbpy_should_stop): New dummy function.
1845 (gdbpy_breakpoint_has_py_cond): New dummy function.
1846 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1847 sub-classing capabilities.
1848 (gdbpy_should_stop): New function.
1849 (gdbpy_breakpoint_has_py_cond): New function.
1850 (local_setattro): New function.
1851 * breakpoint.c (condition_command): Add check for Python 'stop'
1852 operation.
1853 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1854 operation function as part of stop/continue tests.
1855
37b50a69
TT
18562011-03-14 Tom Tromey <tromey@redhat.com>
1857
1858 PR gdb/12576:
1859 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1860 (needs_frame_dwarf_call): Likewise.
1861
eeae04df
PM
18622011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1863
1864 Fix ARI warning about functions without parameters that do not
1865 use (void).
1866 * breakpoint.c (all_tracepoints): Replace () by (void).
1867 * f-exp.y (match_string_literal): Ditto.
1868 (yylex): Ditto.
1869 * m2-exp.y (yylex): Ditto.
1870 * mep-tdep.c (current_me_module): Ditto.
1871 (current_options): Ditto.
1872 (current_cop_data_bus_width): Ditto.
1873 (current_cr_names): Ditto.
1874 (current_cr_is_float): Ditto.
1875 (current_ccr_names): Ditto.
1876 * objc-exp.y (yylex): Ditto.
1877 * p-exp.y (yylex): Ditto.
1878 * remote.c (send_interrupt_sequence): Ditto.
1879 * tracepoint.c (current_trace_status): Ditto.
1880 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1881 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1882
6dc3565d
MS
18832011-03-11 Michael Snyder <msnyder@vmware.com>
1884
1427fe5e
MS
1885 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1886 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1887 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1888 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1889 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1890
60bc018f
MS
1891 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1892 (delete_async_event_handler): Ditto.
1893
f3be5b64
MS
1894 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1895
4c2d5724
MS
1896 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1897
6dc3565d
MS
1898 * top.c (set_verbose): Assert showcmd was found.
1899
4e6ca6d5
MG
19002011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1901
1902 * xtensa-tdep.c (warning_once): Correct style issues.
1903
815a83e4
YQ
19042011-03-11 Yao Qi <yao@codesourcery.com>
1905
1906 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1907
f2eb0bc8
AS
19082011-03-11 Andreas Schwab <schwab@redhat.com>
1909
1910 * common/aclocal.m4: Remove.
1911
b801de47
MG
19122011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1913
1914 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1915 (xtensa_write_register, xtensa_read_register): Likewise.
1916 (xtensa_hextochar): Removed.
1917 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1918
dbab50de
MG
19192011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1920
1921 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 1922 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
1923 (xtensa_alloc_frame_cache): Add initialization for new fields.
1924 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1925 (warning_once): New function.
1926 (xtensa_insn_kind): New item c0opc_and.
1927 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
1928 (call0_track_op): Change arguments. New local variable litbase.
1929 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1930 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1931 in the prologue.
dbab50de 1932 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 1933 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
1934 Add the variety of updates to handle extended prologues, which now can
1935 conduct dynamic stack adjustments.
1936 (call0_frame_cache): Likewise.
1937 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1938 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1939
b2c04452
MS
19402011-03-10 Michael Snyder <msnyder@vmware.com>
1941
f8f67713
MS
1942 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1943 (cmd_qtframe): Ditto.
1944 (cmd_qtbuffer): Ditto.
1945 (cmd_bigqtbuffer): Ditto.
1946
197f0a60
TT
19472011-03-10 Tom Tromey <tromey@redhat.com>
1948
1949 * tracepoint.c (trace_actions_command): Update.
1950 * thread.c (thread_apply_command): Update.
1951 * reverse.c (delete_bookmark_command): Update.
1952 (bookmarks_info): Update.
1953 * printcmd.c (undisplay_command): Update.
1954 * memattr.c (mem_enable_command): Update.
1955 (mem_disable_command): Update.
1956 (mem_delete_command): Update.
1957 * inferior.c (detach_inferior_command): Update.
1958 (kill_inferior_command): Update.
1959 (remove_inferior_command): Update.
1960 * cli/cli-utils.h (struct get_number_or_range_state): New.
1961 (init_number_or_range): Declare.
1962 (get_number_or_range): Update.
1963 * cli/cli-utils.c (init_number_or_range): New function.
1964 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1965 static variables.
1966 (number_is_in_list): Update.
1967 * breakpoint.h (get_tracepoint_by_number): Update.
1968 * breakpoint.c (map_breakpoint_numbers): Update for change to
1969 get_number_or_range.
1970 (find_location_by_number): Use get_number, not
1971 get_number_or_range.
1972 (trace_pass_set_count): New function.
1973 (trace_pass_command): Update for change to get_number_or_range.
1974 Rework loop logic.
1975 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1976 'state' parameter.
1977
ecec24e6
PM
19782011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1979
1980 * python/py-param.c (add_setshow_generic): Add set/show callback
1981 parameters. Register Python object context.
1982 (get_show_value): New function.
1983 (get_set_value): New function.
1984 (call_doc_function): New function.
1985 (get_doc_string): Move behind get_show_value/get_set_value.
1986
6d6c6b1f
JK
19872011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1988
1989 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1990
68d6df83
MG
19912011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1992
dbab50de 1993 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
1994 (xtensa_write_register): Likewise.
1995 (xtensa_hextochar): Add comment and update to match coding conventions.
1996 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1997 (execute_l32e, execute_s32e, execute_code): Update comments.
1998 (xtensa_exception_handler_t): Update to match coding conventions.
1999 (xtensa_insn_kind): Likewise.
2000
85c9d6a6
MS
20012011-03-09 Michael Snyder <msnyder@vmware.com>
2002
2003 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
2004
91495617
PA
20052011-03-09 Pedro Alves <pedro@codesourcery.com>
2006
2007 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
2008
eb8c0621
TT
20092011-03-09 Tom Tromey <tromey@redhat.com>
2010
2011 * thread.c (restore_selected_frame): Handle frame_level == -1.
2012 (make_cleanup_restore_current_thread): Use
2013 get_selected_frame_if_set.
2014 * frame.h (get_selected_frame_if_set): Declare.
2015 * frame.c (get_selected_frame_if_set): New function.
2016
9f37bbcc
PA
20172011-03-09 Pedro Alves <pedro@codesourcery.com>
2018
2019 * cli/cli-cmds.c (shell_escape): Use lbasename.
2020 * coffread.c (coff_start_symtab): Constify parameter.
2021 (complete_symtab): Constify `name' parameter.
2022 (coff_symtab_read): Constify `filestring' local.
2023 (coff_getfilename): Constify return and `result' local.
2024 Use lbasename.
2025 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
2026 * linux-fork.c (info_checkpoints_command): Use lbasename.
2027 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
2028 * minsyms.c (lookup_minimal_symbol): Use lbasename.
2029 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
2030 * procfs.c (procfs_make_note_section): Use lbasename.
2031 * tui/tui-io.c (printable_part): Constity return and parameter.
2032 Use lbasename.
2033 (print_filename): Constify parameters, and local `s'.
2034 (tui_rl_display_match_list): Constify local `temp'.
2035
f8de3c55
JK
20362011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2037
2038 Revert:
2039 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2040 Fix DWARF-3+ DW_AT_accessibility default assumption.
2041 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2042 cu->header.version >= 3.
2043
d9837b00
YQ
20442011-03-09 Yao Qi <yao@codesourcery.com>
2045
2046 * common/Makefile.in: Remove.
2047 * common/configure: Remove.
2048 * common/configure.ac: Remove.
2049
e637a4f5
YQ
20502011-03-09 Yao Qi <yao@codesourcery.com>
2051
2052 Revert:
2053 2011-02-11 Yao Qi <yao@codesourcery.com>
2054
2055 * common/Makefile.in: Add copyright header.
2056
2057 2011-02-11 Yao Qi <yao@codesourcery.com>
2058
2059 * Makefile.in: Remove signals.o from COMMON_OBS. Link
2060 libcommon.a.
2061 * configure.ac: Add common to sub dir.
2062 * configure: Regenerate.
2063
f976a05d
MG
20642011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2065
2066 * xtensa-tdep.c (call0_ret): New function.
2067 (xtensa_skip_prologue): Speed up analysis.
2068
57041825
MG
20692011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2070
2071 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
2072 while executing MI command -data-list-changed-registers.
2073
08b9c608
MG
20742011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2075
2076 * xtensa-tdep.c (xtensa_read_register): New function.
2077 (xtensa_write_register): New function.
2078 (xtensa_find_register_by_name): New function.
2079 (xtensa_windowed_frame_cache): Update comments in type description.
2080 (xtensa_frame_cache): Likewise.
2081 (xtensa_window_interrupt_insn): New function.
2082 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
2083 (xtensa_insn_kind): Add new instructions.
2084 (rwx_special_register): New function.
2085 (call0_classify_opcode): Add new instructions to the analysis.
2086 (a0_saved, a7_saved, a11_saved): New variables.
2087 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
2088 (execute_l32e): New function.
2089 (execute_s32e): New function.
2090 (xtensa_exception_handler_t): New type.
2091 (execute_code): New function.
2092 (xtensa_window_interrupt_frame_cache): New function to conduct frame
2093 analysis for Xtensa Window Exception handlers.
2094
4d1acb11
MG
20952011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2096
98689b25
MG
2097 * xtensa-tdep.c (TX_PS): New.
2098 (windowing_enabled): Update to count for Call0 ABI.
2099 (xtensa_hextochar): New.
2100 (xtensa_init_reggroups): Make algorithm generic.
2101 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
2102
21032011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
2104
2105 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 2106
d3f323f3
MS
21072011-03-08 Michael Snyder <msnyder@vmware.com>
2108
3dcabaa8
MS
2109 * i386-tdep.c (i386_follow_jump): Check return value of
2110 target_read_memory.
2111 (i386_analyze_struct_return): Ditto.
2112 (i386_skip_probe): Ditto.
2113 (i386_match_insn): Ditto.
2114 (i386_skip_noop): Ditto.
2115 (i386_analyze_frame_setup): Ditto.
2116 (i386_analyze_register_saves): Ditto.
2117 (i386_skip_prologue): Ditto.
2118 (i386_skip_main_prologue): Ditto.
2119
13b3fd9b
MS
2120 * target.c (read_whatever_is_readable): Fix memory leak.
2121
d3f323f3
MS
2122 * i386-tdep.c (i386_process_record): Document fall through.
2123
421d5c74
JK
21242011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2125
2126 Fix DWARF-3+ DW_AT_accessibility default assumption.
2127 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
2128 cu->header.version >= 3.
2129
63154eca
PA
21302011-03-08 Pedro Alves <pedro@codesourcery.com>
2131
2132 * remote.c (remote_check_symbols): Skip if the target has no
2133 execution.
2134
f1a507a1
JB
21352011-03-08 Joel Brobecker <brobecker@adacore.com>
2136
2137 * target.c (read_whatever_is_readable): Reformat comment,
2138 with a minor typo fix. Minor reformatting of the code.
2139
36073a92
YQ
21402011-03-08 Yao Qi <yao@codesourcery.com>
2141
2142 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
2143 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
2144 Use cached result instead of calling displaced_in_arm_mode again.
2145 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
2146 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
2147 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
2148 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
2149 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
2150 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
2151 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
2152 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
2153 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2154 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
2155 (arm_catch_kernel_helper_return): Likewise.
2156 * gdb/arm-tdep.h : Update function declarations.
2157
d3f323f3 21582011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 2159
e0e40094
MS
2160 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
2161
0b2381f5
MS
2162 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
2163
0350914a
MS
2164 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
2165
69feea6f
MS
2166 * elfread.c (elf_symtab_read): Stop memory leak.
2167
e6040cbd
MS
2168 * main.c (captured_main): Fix memory leak.
2169
052874e8
AS
21702011-03-07 Andreas Schwab <schwab@linux-m68k.org>
2171
2172 * ada-lang.c (compare_names): Call is_name_suffix with string1
2173 instead of string2.
2174
b11896a5
TT
21752011-03-07 Tom Tromey <tromey@redhat.com>
2176
2177 * xcoffread.c (xcoff_sym_fns): Update.
2178 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
2179 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
2180 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
2181 (symbol_file_add_with_addrs_or_offsets): Likewise.
2182 (reread_symbols): Handle OBJF_PSYMTABS_READ.
2183 * somread.c (som_sym_fns): Update.
2184 * psymtab.h (require_partial_symbols): Declare.
2185 * psymtab.c (require_partial_symbols): New function.
2186 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
2187 (ALL_OBJFILE_PSYMTABS): Undef.
2188 (ALL_PSYMTABS): Move from psympriv.h.
2189 (lookup_partial_symtab, find_pc_sect_psymtab)
2190 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
2191 (find_last_source_symtab_from_partial)
2192 (forget_cached_source_info_partial)
2193 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
2194 (expand_partial_symbol_tables, read_psymtabs_with_filename)
2195 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
2196 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
2197 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
2198 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
2199 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
2200 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
2201 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
2202 psymtabs.
2203 * mipsread.c (ecoff_sym_fns): Update.
2204 * machoread.c (macho_sym_fns): Update.
2205 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
2206 (read_psyms): New function.
2207 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
2208 (elf_sym_fns_lazy_psyms): New global.
2209 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
2210 dwarf2_build_psymtabs.
2211 * dbxread.c (aout_sym_fns): Update.
2212 * coffread.c (coff_sym_fns): Update.
2213
fda326dd
TT
22142011-03-07 Tom Tromey <tromey@redhat.com>
2215
2216 * infrun.c (print_exited_reason): Include inferior id and pid in
2217 message.
2218
aeaec162
TT
22192011-03-07 Tom Tromey <tromey@redhat.com>
2220
2221 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
2222 parameter.
2223 (target_has_execution_1): Update.
2224 (target_has_execution_current): Declare.
2225 (target_has_execution): Call target_has_execution_current.
2226 (default_child_has_execution): Update.
2227 * target.c (default_child_has_execution): Add 'the_ptid'
2228 parameter.
2229 (target_has_execution_1): Likewise.
2230 (target_has_execution_current): New function.
2231 (add_target): Update.
2232 (init_dummy_target): Update.
2233 * remote-m32r-sdi.c (m32r_has_execution): New function.
2234 (init_m32r_ops): Use it.
2235 * record.c (record_core_has_execution): Now static. Add
2236 'the_ptid' parameter.
2237 * inferior.c (have_live_inferiors): Don't save current thread.
2238 Use target_has_execution_1.
2239
08e14083
YQ
22402011-03-07 Yao Qi <yao@codesourcery.com>
2241
2242 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
2243
c05d19c5
JB
22442011-03-07 Joel Brobecker <brobecker@adacore.com>
2245
2246 * elfread.c (elf_symtab_read): Minor reformatting.
2247
3e6ef9e4
JB
22482011-03-07 Joel Brobecker <brobecker@adacore.com>
2249
2250 * objc-lang.c (selectors_info): Minor reformatting.
2251
dbb8534f
JB
22522011-03-07 Joel Brobecker <brobecker@adacore.com>
2253
2254 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
2255
dd70cc93
JB
22562011-03-07 Joel Brobecker <brobecker@adacore.com>
2257 Michael Snyder <msnyder@vmware.com>
2258
2259 * ada-valprint.c (ada_val_print_array): Move the declaration of
2260 "byte_order" and "elttype" inside the block where these variables
2261 are actually used. Remove some special handling for the case
2262 where "elttype" and "eltlen" are null. Replace by a comment
2263 and a couple of assertion checks.
2264
b27cf2b3
MS
22652011-03-05 Michael Snyder <msnyder@vmware.com>
2266
2267 * source.c (add_path): Replace semicolon at end of block.
2268 * dwarf2expr.c (execute_stack_op): Ditto.
2269
5387a0c6
MF
22702011-03-05 Mike Frysinger <vapier@gentoo.org>
2271
2272 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
2273 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
2274 (bfin-*-*): Likewise.
2275
e3aa49af
MS
22762011-03-05 Michael Snyder <msnyder@vmware.com>
2277
82ae4854
MS
2278 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
2279 * mdebugread.c (parse_symbol): Ditto.
2280 * parse.c (parse_exp_in_context): Ditto.
2281 * source.c (add_path): Ditto.
2282 * utils.c (gnu_debuglink_crc32): Ditto.
2283 * varobj.c (variable_language): Ditto.
2284
e3aa49af
MS
2285 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
2286
154f592e
MS
22872011-03-04 Michael Snyder <msnyder@vmware.com>
2288
da3ecdc6
MS
2289 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
2290
9cc89665
MS
2291 * symfile.c (simple_overlay_update): Check for null return value
2292 from lookup_minimal_symbol.
2293
154f592e
MS
2294 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
2295
63ffa6ee
TJB
22962011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2297
2298 * eval.c (parse_and_eval_address_1): Remove function.
2299 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
2300 instead of parse_and_eval_address_1.
2301 * value.h (parse_and_eval_address_1): Remove prototype.
2302
a17d146e
MS
23032011-03-04 Michael Snyder <msnyder@vmware.com>
2304
2305 * remote.c (putpkt_binary): Document that case stmt falls through.
2306
1a6a67de
TJB
23072011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
2308
2309 * breakpointc (print_it_typical): Move NULL check from here...
2310 (print_bp_stop_message): ... to here.
2311
488919c4
MS
23122011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
2313
2314 * breakpoint.c (enable_command): Use break instead of continue,
2315 and fill in a missing break.
2316 (disable_command): Ditto.
2317
1e182ce8
UW
23182011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
2319
2320 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
2321 (terminal_save_ours): Remove misleading comment.
2322 (inflow_inferior_data_cleanup): Free ttystate.
2323 (inflow_inferior_exit): Likewise.
2324 (copy_terminal_info): Copy ttystate.
2325
2326 * serial.c (serial_copy_tty_state): New function.
2327 * serial.h (serial_copy_tty_state): Add prototype.
2328 (struct serial_ops): Add copy_tty_state callback.
2329 * ser-base.c (ser_base_copy_tty_state): New function.
2330 * ser-base.h (ser_base_copy_tty_state): Add prototype.
2331 * ser-go32.c (dos_copy_tty_state): New function.
2332 (dos_ops): Install copy_tty_state callback.
2333 * ser-mingw.c (_initialize_ser_windows): Likewise.
2334 * ser-pipe.c (_initialize_ser_pipe): Likewise.
2335 * ser-unix.c (hardwire_copy_tty_state): New function.
2336 (_initialize_ser_hardwire): Install it.
2337
b2c5f112
MS
23382011-03-04 Michael Snyder <msnyder@vmware.com>
2339
2abae994
MS
2340 * breakpoint.c (create_breakpoint): Add missing break statement.
2341
7f5936f9
MS
2342 Reverting this patch:
2343 * infcall.c (call_function_by_hand): Add break statements for lint.
2344
b2c5f112
MS
2345 Reverting this patch:
2346 * cli/cli-script.c (script_from_file): Add break for lint.
2347
42b1321c
MS
23482011-03-04 Michael Snyder <msnyder@vmware.com>
2349
2350 * solib.c (reload_shared_libraries_1): Close memory leak.
2351
3e2a0cee
TT
23522011-03-03 Tom Tromey <tromey@redhat.com>
2353
2354 PR gdb/12538:
2355 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
2356 DW_STRING is NULL.
2357
58397cb7
MS
23582011-03-03 Michael Snyder <msnyder@vmware.com>
2359
2e3fd767
MS
2360 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
2361 fields of struct 'st' to zero.
2362
58397cb7
MS
2363 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
2364 sal.pspace before calling set_current_source_symtab_and_line.
2365
ced54c8f
YQ
23662011-03-03 Yao Qi <yao@codesourcery.com>
2367
2368 * Makefile.in (configure-common): Remove. Let Makefile
2369 in dir common to rebuild itself.
2370 (common/Makefile): Likewise.
2371
3351ea09
JB
23722011-03-03 Joel Brobecker <brobecker@adacore.com>
2373
2374 * utils.c (parse_escape): Add i18n markup in error message.
2375
bf9f652a
YQ
23762011-03-03 Yao Qi <yao@codesourcery.com>
2377
2378 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2379 ARM_PC_REGNUM.
2380 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2381 (displaced_write_reg, displaced_read_reg): Likewise.
2382 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2383 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2384 (cleanup_branch): Replace magic number 14 and 15 with
2385 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2386
d42de051
MS
23872011-03-02 Michael Snyder <msnyder@vmware.com>
2388
240f9570
MS
2389 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2390
10dd8b54
MS
2391 * cli/cli-script.c (script_from_file): Add break for lint.
2392
b98bd911
MS
2393 * mdebugread.c (parse_partial_symbols): Fix indent.
2394
3494b66d
MS
2395 * target-descriptions.c (tdesc_gdb_type): No need to call
2396 xstrdup, callee saves a copy.
2397
daac021a
MS
2398 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2399
c38d16a7
MS
2400 * infcall.c (call_function_by_hand): Add break statements for lint.
2401
905b671b
MS
2402 * utils.c (parse_escape): Escape the escape char.
2403
f2eb0bc8 2404 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
2405 PyList_Append fails.
2406 (gdbpy_inferiors): Error out if build_inferior_list fails.
2407
8c6a60d1
MS
2408 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2409 a function call.
2410
d42de051
MS
2411 * record.c (record_restore): Move printf to before error return.
2412
4db71c0b
YQ
24132011-03-02 Yao Qi <yao@codesourcery.com>
2414
2415 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2416 is_thumb and insn_size.
2417 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2418 on both ARM and Thumb mode.
2419 (arm_process_displaced_insn): Set is_thumb and insn_size.
2420 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2421 (arm_displaced_step_fixup): Likewise.
2422
a9dc8dcc
MS
24232011-03-01 Michael Snyder <msnyder@vmware.com>
2424
53624a93
MS
2425 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2426
77766669
MS
2427 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2428
62d5b8da
MS
2429 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2430
5e9e105f
MS
2431 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2432
dc19db01
MS
2433 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2434 with xmalloc.
2435
5ce64950
MS
2436 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2437 which shadows function parameter.
2438
a0aa2878
MS
2439 * tracepoint.c (create_tsv_from_upload): Superfluous call
2440 to xstrdup. Callee already calls xstrdup.
2441
e325fb69
MS
2442 * linespec.c (decode_line_1): Remove unnecessary null check.
2443
21cbba77
MS
2444 * tracepoint.c (scope_info): Fix mem leak, remove underused
2445 variable.
2446
63360adc
MS
2447 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2448 superfluous null check.
2449
18ea20ac 2450 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 2451 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 2452
d014929c
MS
2453 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2454
6e9130cf
MS
2455 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2456 be null.
2457
5f01dbc0
MS
2458 * linespec.c (decode_line_1): Check for null before dereference.
2459
d684ab85
MS
2460 * reverse.c (record_restore): Move null-check to before pointer
2461 dereference.
2462
bfffb7e3
MS
2463 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2464
a9dc8dcc
MS
2465 * objc-lang.c (selectors_info): Add explanitory comment.
2466 (classes_info): Ditto.
2467
478fd957
UW
24682011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2469
2470 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2471 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2472 versions of the trampoline. Handle Thumb vs. ARM addresses.
2473 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2474 (arm_linux_init_abi): Install it.
2475 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2476 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2477
0480cefa
MS
24782011-02-28 Michael Snyder <msnyder@vmware.com>
2479
ac50ab3b
MS
2480 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2481 a little bigger, to avoid possibility of an overflow.
2482
f63fbe86
MS
2483 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2484 buffers a little bigger, to avoid possibility of an overflow.
2485
9e91a352
MS
2486 * coffread.c (coff_getfilename): Add check to avoid overflow.
2487
f2eb0bc8 2488 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
2489 avoid overflow.
2490 (classes_info): Error out on too long REGEXP.
2491
098ab512
MS
2492 * infrun.c (handle_inferior_event): Remove unused function call.
2493
bcbd1de9
MS
2494 * fork-child.c (fork_inferior): Remove ifdef'd code and
2495 unused variable.
2496
2e456570
MS
2497 * linux-thread-db.c (attach_thread): Discard unused value.
2498
14571dad
MS
2499 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2500
a9cbf802
MS
2501 * remote.c (remote_get_noisy_reply): Discard unused value.
2502 (remote_vcont_resume): Ditto.
2503 (remote_stop_ns): Ditto.
2504
5715d26e
MS
2505 * linespec.c (decode_objc): Delete unused variable.
2506
4a9bca80
MS
2507 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2508
f47fb265
MS
2509 * dwarf2read.c (add_partial_symbol): Discard unused values.
2510 (read_base_type): Delete unused variable.
2511
e81cff30
MS
2512 * dbxread.c (read_dbx_symtab): Discard unused value.
2513
262acaeb
MS
2514 * eval.c (evaluate_subexp_standard): Delete unused variable,
2515 and discard unused values.
2516
df983543
MS
2517 * infcmd.c (_initialize_infcmd): Discard unused values.
2518
89acf84d
MS
2519 * stabsread.c (rs6000_builtin_type): Missing break statement.
2520
ab8b8aca
MS
2521 * dbxread.c (process_one_symbol): Discard unused value.
2522
6b4511ab
MS
2523 * coffread.c (coff_end_symtab): Delete unused variable.
2524
e8e80198
MS
2525 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2526 (dwarf2_add_typedef): Delete unused variable.
2527 (read_namespace): Ditto.
2528 (dwarf_decode_macros): Ditto.
2529
976aa66e
MS
2530 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2531
5b92b49f
MS
2532 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2533
91e8df85
MS
2534 * p-valprint.c (pascal_val_print): Discard unused value.
2535
899500d6
MS
2536 * utils.c (nquery): Call va_end before return;
2537 (yquery): Ditto.
2538 (query): Ditto.
2539
0480cefa
MS
2540 * proc-service.c (ps_plog): Call va_end before return.
2541
fb6a3ed3
TT
25422011-02-28 Tom Tromey <tromey@redhat.com>
2543
2544 * python/python.c (gdbpy_value_cst): New global.
2545 (_initialize_python): Initialize it.
2546 * python/python-internal.h (gdbpy_value_cst): Declare.
2547 * python/py-value.c (convert_value_from_python): Use
2548 gdbpy_value_cst.
2549
c05202a1
MS
25502011-02-28 Michael Snyder <msnyder@vmware.com>
2551
e463f587
MS
2552 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2553
c38eea1a
MS
2554 * breakpoint.c (catch_syscall_completer): Free malloced list.
2555
3ef09ab5
MS
2556 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2557
8f9a01ee
MS
2558 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2559 (lval_func_check_synthetic_pointer): Ditto.
2560 (lval_func_free_closure): Fix use-after-free.
c05202a1 2561
477d0d57
TT
25622011-02-28 Tom Tromey <tromey@redhat.com>
2563
2564 * psymtab.c (expand_partial_symbol_tables): Use
2565 ALL_OBJFILE_PSYMTABS.
2566
20937029
JK
25672011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2568
2569 * objc-lang.c (selectors_info): Error on too long REGEXP.
2570
907b7f4f
MS
25712011-02-28 Michael Snyder <msnyder@vmware.com>
2572
92e96192
MS
2573 * python/py-param.c (set_parameter_value): Add missing
2574 break statement.
2575
907b7f4f
MS
2576 * linux-record.c (record_linux_system_call): Add missing
2577 break statement.
2578
12c5a436
UW
25792011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2580
2581 * breakpoint.c (print_one_breakpoint_location): Remove unused
2582 argument PRINT_ADDRESS_BITS. Update callers.
2583 (print_one_breakpoint): Likewise.
2584
170b53b2
UW
25852011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2586
2587 * breakpoint.c (wrap_indent_at_field): New function.
2588 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2589 Allocate ui_stream locally instead of using STB argument.
2590 (print_one_breakpoint_location): Update call.
2591 * ui-out.c (ui_out_query_field): New function.
2592 * ui-out.h (ui_out_query_field): Add prototype.
2593
8ab1f94d
JB
25942011-02-28 Joel Brobecker <brobecker@adacore.com>
2595
2596 From Michael Snyder <msnyder@vmware.com>
2597 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2598
7d488639
MS
25992011-02-27 Michael Snyder <msnyder@vmware.com>
2600
ae179fba
MS
2601 * objc-lang.c (selectors_info): Prevent string overrun.
2602
086dbf66
MS
2603 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2604 error in strncpy.
2605
f2eb0bc8 2606 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
2607 outer scope.
2608
7d488639
MS
2609 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2610 param with a local variable of the same name.
2611
3bd0f5ef
MS
26122011-02-27 Michael Snyder <msnyder@vmware.com>
2613
2614 * value.c (value_from_history_ref): New function.
2615 * value.h (value_from_history_ref): Export.
2616 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2617 to parse value history references.
2618 * cli/cli-utils.h (get_number_trailer): Update comment.
2619
26202011-02-27 Michael Snyder <msnyder@vmware.com>
2621
2622 * inferior.c (detach_inferior_command): Use get_number_or_range.
2623 (kill_inferior_command): Ditto.
2624 (remove_inferior_command): Ditto.
2625 (initialize_inferiors): Make command names plural.
2626 Update help strings.
2627
766062f6
MS
26282011-02-27 Michael Snyder <msnyder@vmware.com>
2629
2630 * darwin-nat-info.c: Fix comment typo.
2631 * dwarf2expr.h: Ditto.
2632 * fbsd-nat.c: Ditto.
2633 * fbsd-nat.h: Ditto.
2634 * frame-unwind.h: Ditto.
2635 * frame.h: Ditto.
2636 * hppa-hpux-tdep.c: Ditto.
2637 * i386-linux-nat.c: Ditto.
2638 * linux-nat.c: Ditto.
2639 * nbsd-nat.c: Ditto.
2640 * nbsd-nat.h: Ditto.
2641 * ppc-linux-tdep.c: Ditto.
2642 * serial.c: Ditto.
2643 * ui-file.h: Ditto.
2644 * tui/tui-winsource.c: Ditto.
2645
f2c4ead5
MS
26462011-02-26 Michael Snyder <msnyder@vmware.com>
2647
86b887df
MS
2648 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2649
66fd3b1e
MS
2650 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2651
8c814cdd
MS
2652 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2653 with a local variable of the same name.
2654
6d5e094a 2655 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 2656 param with a local variable of the same name.
6d5e094a 2657 (i387_supply_xsave): Ditto.
e5b3d7d6 2658
5eee517d
MS
2659 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2660 that it does not shadow a function parameter.
2661
8fbf6b93
MS
2662 * i386-nat.c (i386_length_and_rw_bits): Document that case
2663 statement is meant to fall through.
2664
cb969d61
MS
2665 * expprint.c (dump_subexp_body_standard): Document that case
2666 statement is meant to fall through.
2667
f2c4ead5
MS
2668 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2669 dead if statement. Condition can't be false.
2670
b021a221
MS
26712011-02-25 Michael Snyder <msnyder@vmware.com>
2672
2673 * arm-tdep.c: Fix typos in comments.
2674 * bsd-uthread.c: Ditto.
2675 * completer.c: Ditto.
2676 * corelow.c: Ditto.
2677 * cp-namespace.c: Ditto.
2678 * cp-support.c: Ditto.
2679 * cris-tdep.c: Ditto.
2680 * dbxread.c: Ditto.
2681 * dwarf2read.c: Ditto.
2682 * frame.h: Ditto.
2683 * gdbtypes.h: Ditto.
2684 * inferior.h: Ditto.
2685 * mdebugread.c: Ditto.
2686 * mips-tdep.c: Ditto.
2687 * ppc-linux-nat.c: Ditto.
2688 * ppc-linux-tdep.c: Ditto.
2689 * printcmd.c: Ditto.
2690 * sol-thread.c: Ditto.
2691 * solib-frv.c: Ditto.
2692 * solist.h: Ditto.
2693 * sparc64-tdep.c: Ditto.
2694 * spu-tdep.c: Ditto.
2695 * stabsread.c: Ditto.
2696 * symfile.c: Ditto.
2697 * valops.c: Ditto.
2698 * varobj.c: Ditto.
2699 * vax-nat.c: Ditto.
2700 * python/py-block.c: Ditto.
2701 * python/py-symbol.c: Ditto.
2702 * python/py-symtab.c: Ditto.
2703 * python/py-value.c: Ditto.
2704 * tui/tui-win.c: Ditto.
2705
c82c0b55
MS
27062011-02-25 Michael Snyder <msnyder@vmware.com>
2707
2708 * inferior.c (print_inferior): Accept a string instead of an int
2709 for requested_inferiors, and use get_number_or_range to parse it.
2710 (info_inferiors_command): Pass args string to print_inferior.
2711 (initialize_inferiors): Change help string for info inferiors.
2712 * inferior.h (print_inferior): Export prototype change.
2713
ee00cd23
TT
27142011-02-25 Tom Tromey <tromey@redhat.com>
2715
2716 * common/ax.def (invalid2): Set to 0x31.
2717
0502ed8c
JK
27182011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2719
2720 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2721 L and plongest.
2722 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2723 use L and plongest.
2724 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2725
2c9de912
MS
27262011-02-24 Michael Snyder <msnyder@vmware.com>
2727
2728 * Makefile.in (clean): Make clean should remove generated files
2729 observer.h and observer.inc.
2730
a04b0428
JB
27312011-02-24 Joel Brobecker <brobecker@adacore.com>
2732
2733 Revert the following patch (not approved yet):
2734 2011-02-21 Hui Zhu <teawater@gmail.com>
2735 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2736 * ax-gdb.c (gen_printf_expr_callback): New function.
2737 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2738 * ax-general.c (ax_memcpy): New function.
2739 (ax_print): Handle "printf".
2740 (ax_reqs): Ditto.
2741 * ax.h (ax_memcpy): Forward declare.
2742 * common/ax.def (invalid2): Removed.
2743 (printf): New entry.
2744 * printcmd.c (printcmd.h): New include.
2745 (string_printf): New function.
2746 (ui_printf): Removed.
2747 (printf_command): Remove static. Call string_printf.
2748 (eval_command): Call string_printf.
2749 * printcmd.h: New file.
2750 * tracepoint.c (validate_actionline,
2751 encode_actions_1): handle printf_command.
2752
2b52013f
TT
27532011-02-23 Tom Tromey <tromey@redhat.com>
2754
2755 * ax-general.c (ax_pick): Add missing newline.
2756
e5a67952
MS
27572011-02-23 Michael Snyder <msnyder@vmware.com>
2758
2759 * breakpoint.c (breakpoint_1): Change first argument from an int
2760 to a char pointer, so that the function now accepts a list of
f2eb0bc8 2761 breakpoints rather than just one. Use new function
e5a67952
MS
2762 'number_is_in_list' to implement.
2763 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2764 (watchpoints_info): Ditto.
2765 (tracepoints_info): Ditto.
2766 (maintenance_info_breakpoints): Ditto.
2767 (_initialize_breakpoint): Update help strings to reflect the fact
2768 that these functions can now take more than one argument.
2769 * cli/cli-utils.c (number_is_in_list): New function.
2770 * cli/cli-utils.h (number_is_in_list): Export.
2771
27722011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
2773
2774 * memattr.c (mem_enable_command): Use get_number_or_range.
2775 (mem_disable_command): Ditto.
2776 (mem_delete_command): Ditto.
2777 (_initialize_mem): Tweak usage message to reflect multiple
2778 arguments.
2779
6e6fbe60
DE
27802011-02-22 Doug Evans <dje@google.com>
2781
2782 Add gdb.lookup_global_symbol python function.
2783 * NEWS: Add entry.
2784 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2785 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2786 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2787
79b97fa8
TT
27882011-02-22 Tom Tromey <tromey@redhat.com>
2789
2790 * language.c (language_class_name_from_physname): Rename
2791 'curr_language' argument to 'lang'; use in body.
2792
298f437a
MS
27932011-02-22 Michael Snyder <msnyder@vmware.com>
2794
2795 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2796
b7ea3126
PA
27972011-02-22 Pedro Alves <pedro@codesourcery.com>
2798
2799 * frame-unwind.h: Fix comment to mention the this frame, not the
2800 next.
2801
58ee6d60
TT
28022011-02-22 Tom Tromey <tromey@redhat.com>
2803
2804 * symfile.c (auto_solib_limit): Remove.
2805 * symfile.h (auto_solib_limit): Remove.
2806
36238dbc
JB
28072011-02-22 Joel Brobecker <brobecker@adacore.com>
2808
2809 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2810
aea5b279
MS
28112011-02-21 Michael Snyder <msnyder@vmware.com>
2812
2813 * gdbthread.h (print_thread_info): Change prototype.
2814 * thread.c (print_thread_info): Accept char* instead of int for
2815 requested_threads argument. Use new function number_is_in_list
2816 to determine which threads to list.
2817 (info_threads_command): Pass char* to print_thread_info.
2818 * cli/cli-utils.c (number_is_in_list): New function.
2819 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 2820 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
2821 print_thread_info.
2822 (print_one_inferior): Ditto.
2823 (mi_cmd_list_thread_groups): Ditto.
2824
8caa75ee
JK
28252011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2826
2827 * common/Makefile.in (CFLAGS): New.
2828 (COMPILE): Add $(CFLAGS).
2829
ea666128
TT
28302011-02-21 Tom Tromey <tromey@redhat.com>
2831
2832 * breakpoint.c (catch_syscall_command_1): Fix typo.
2833
e9cafbcc
TT
28342011-02-21 Tom Tromey <tromey@redhat.com>
2835
2836 * reverse.c: Include cli-utils.h.
2837 * printcmd.c: Include cli-utils.h.
2838 (string_printf): Use skip_spaces.
2839 * cli/cli-utils.h: New file.
2840 * cli/cli-utils.c: New file.
2841 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2842 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2843 * breakpoint.h (get_number, get_number_or_range): Move to
2844 cli-utils.h.
2845 * breakpoint.c: Include cli-utils.h.
2846 (get_number_trailer, get_number, get_number_or_range)
2847 (ep_skip_leading_whitespace): Move to cli-utils.c.
2848 (create_breakpoint_sal, find_condition_and_thread)
2849 (decode_static_tracepoint_spec, watch_command_1)
2850 (watch_maybe_just_location, ep_parse_optional_if_clause)
2851 (catch_fork_command_1, catch_exec_command_1)
2852 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2853 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2854 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2855 (HFILES_NO_SRCDIR): Add cli-utils.h.
2856 (cli-utils.o): New target.
2857
f67fd822
PM
28582011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2859
2860 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2861 before calling discard_all_inferiors.
2862
c9def01d
UW
28632011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2864
2865 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2866 (struct builtin_opencl_type): Remove.
2867 (builtin_opencl_type): Change return type to "struct type **".
2868 (lookup_opencl_vector_type): Update caller.
2869 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2870 (build_opencl_types): Install plain array of "struct type *"
2871 instead of "struct builtin_opencl_type".
2872
e3039479
UW
28732011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2874 Ulrich Weigand <uweigand@de.ibm.com>
2875
2876 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2877 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2878 (struct arm_linux_hwbp_cap): New type.
2879 (arm_linux_get_hwbp_cap): New function.
2880 (arm_linux_get_hw_breakpoint_count): Likewise.
2881 (arm_linux_get_hw_watchpoint_count): Likewise.
2882 (arm_linux_can_use_hw_breakpoint): Likewise.
2883 (arm_hwbp_type): New type.
2884 (arm_hwbp_control_t): Likewise.
2885 (struct arm_linux_hw_breakpoint): Likewise.
2886 (struct arm_linux_thread_points): Likewise.
2887 (arm_threads): New global variable.
2888 (arm_linux_find_breakpoints_by_tid): New function.
2889 (arm_hwbp_control_initialize): Likewise.
2890 (arm_hwbp_control_is_enabled): Likewise.
2891 (arm_hwbp_control_disable): Likewise.
2892 (arm_linux_hw_breakpoint_initialize): Likewise.
2893 (arm_linux_get_hwbp_type): Likewise.
2894 (arm_linux_hw_watchpoint_initialize): Likewise.
2895 (arm_linux_hw_breakpoint_equal): Likewise.
2896 (arm_linux_insert_hw_breakpoint1): Likewise.
2897 (arm_linux_remove_hw_breakpoint1): Likewise.
2898 (arm_linux_insert_hw_breakpoint): Likewise.
2899 (arm_linux_remove_hw_breakpoint): Likewise.
2900 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2901 (arm_linux_insert_watchpoint): Likewise.
2902 (arm_linux_remove_watchpoint): Likewise.
2903 (arm_linux_stopped_data_address): Likewise.
2904 (arm_linux_stopped_by_watchpoint): Likewise.
2905 (arm_linux_watchpoint_addr_within_range): Likewise.
2906 (arm_linux_new_thread): Likewise.
2907 (arm_linux_thread_exit): Likewise.
2908 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2909 related target callbacks. Register arm_linux_new_thread and
2910 arm_linux_thread_exit.
2911 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2912 * arm-tdep.c (arm_pc_is_thumb): Make global.
2913 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2914
b5db5dfc
UW
29152011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2916
2917 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2918 per-frame locations while within a function epilogue.
2919
e25b2cfa
PM
29202011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2921
2922 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2923 to GNU coding standards.
2924
4af53f97
PM
29252011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2926
2927 Allow use of mingw native on Windows 95 OS.
e25b2cfa 2928 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
2929 (ser_windows_close): Only call CancelIo if function exists.
2930 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2931 to check for existence of CancelIo function in kernel32 DLL.
2932
d0e92d82
HZ
29332011-02-21 Hui Zhu <teawater@gmail.com>
2934
2935 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2936 * ax-gdb.c (gen_printf_expr_callback): New function.
2937 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2938 * ax-general.c (ax_memcpy): New function.
2939 (ax_print): Handle "printf".
2940 (ax_reqs): Ditto.
2941 * ax.h (ax_memcpy): Forward declare.
2942 * common/ax.def (invalid2): Removed.
2943 (printf): New entry.
2944 * printcmd.c (printcmd.h): New include.
2945 (string_printf): New function.
2946 (ui_printf): Removed.
2947 (printf_command): Remove static. Call string_printf.
2948 (eval_command): Call string_printf.
2949 * printcmd.h: New file.
2950 * tracepoint.c (validate_actionline,
2951 encode_actions_1): handle printf_command.
2952
7d357efd
MS
29532011-02-19 Michael Snyder <msnyder@vmware.com>
2954
2955 * reverse.c (delete_one_bookmark): Argument is now bookmark
2956 id rather than pointer to bookmark struct.
2957 (delete_bookmark_command): Use get_number_or_range.
2958 (goto_bookmark_command): Parse with get_number instead of strtoul.
2959 (bookmark_1): New function. Print info for one bookmark.
2960 (bookmarks_info): Use get_number_or_range and bookmark_1.
2961
7a45ebd7
MS
29622011-02-18 Michael Snyder <msnyder@vmware.com>
2963
f2eb0bc8 2964 * thread.c (info_threads_command): Re-implement using
7a45ebd7 2965 get_number_or_range.
65ebfb52 2966 (thread_apply_command): Ditto.
7a45ebd7 2967
94d5e490
TT
29682011-02-18 Tom Tromey <tromey@redhat.com>
2969
2970 * common/ax.def: New file.
2971 * ax.h (enum agent_op): Use ax.def.
2972 * ax-general.c (aop_map): Use ax.def.
2973
c7f96d2b
TT
29742011-02-18 Tom Tromey <tromey@redhat.com>
2975
2976 * ax-general.c (aop_map): Add pick and rot.
2977 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2978 <DW_OP_rot>: Implement.
2979 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2980 (ax_pick): Declare.
2981 * ax-general.c (ax_pick): New function.
2982
66694b75
TT
29832011-02-18 Tom Tromey <tromey@redhat.com>
2984
2985 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2986
eeaafae2
JK
29872011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2988 Tom Tromey <tromey@redhat.com>
2989
2990 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2991 make_symbol_overload_list_block with NULL BLOCK.
2992 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2993
3c3fe74c
PA
29942011-02-18 Pedro Alves <pedro@codesourcery.com>
2995
2996 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2997 * breakpoint.h (get_number_or_range): Declare.
2998 * printcmd.c (ALL_DISPLAYS): Declare.
2999 (delete_display): Reimplement taking a display pointer.
3000 (undisplay_command): Accept a range of displays to delete, using
3001 get_number_or_range.
3002
13163d80
PM
30032011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3004
3005 * c-valprint.c (c_val_print): Add embedded_offset to address
3006 for arrays of unspecified length.
3007 * p-valprint.c (pascal_val_print): Likewise.
3008
b434a28f
YQ
30092011-02-18 Yao Qi <yao@codesourcery.com>
3010
3011 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
3012 (arm_process_displaced_insn): .. here. Remove parameter INSN.
3013 (thumb_process_displaced_insn): New.
3014 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
3015 call to arm_process_displaced_insn.
3016 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
3017
9f6f94ff
TT
30182011-02-17 Tom Tromey <tromey@redhat.com>
3019
3020 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
3021 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
3022 compile_dwarf_to_ax. No longer static. Call
3023 dwarf2_compile_cfa_to_ax.
3024 (locexpr_tracepoint_var_ref): Update.
3025 (loclist_tracepoint_var_ref): Update.
3026 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
3027 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
3028 argument; add 'gdbarch' and 'pc'.
3029 (dwarf2_compile_cfa_to_ax): New function.
3030 (dwarf2_frame_cache): Update.
3031
e67ad678
JB
30322011-02-17 Joel Brobecker <brobecker@adacore.com>
3033
3034 * ada-lang.c (ada_type_of_array): Fix the size of the array
3035 in the case of an unconstrained packed array.
3036
946ebb0d
YQ
30372011-02-17 Yao Qi <yao@codesourcery.com>
3038
3039 * common/Makefile.in: Add more targets for make.
3040
1ba1b353
TT
30412011-02-16 Tom Tromey <tromey@redhat.com>
3042
3043 * dwarf2loc.c (unimplemented): Fix typo.
3044
b1bfef65
TT
30452011-02-16 Tom Tromey <tromey@redhat.com>
3046
3047 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
3048 (compile_dwarf_to_ax) <default>: Use unimplemented.
3049 <DW_OP_deref>: Update.
3050 (disassemble_dwarf_expression): Update.
3051 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
3052 (decode_locdesc): Update.
3053 * dwarf2expr.h (dwarf_stack_op_name): Update.
3054
5f1e6f19
TT
30552011-02-16 Tom Tromey <tromey@redhat.com>
3056
3057 * ax.h (struct aop_map) <name>: Now const.
3058
a0c78a73
PA
30592011-02-16 Tom Tromey <tromey@redhat.com>
3060
3061 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
3062 than axs_rvalue.
3063
946ebb0d 30642011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
3065
3066 * infrun.c (get_displaced_step_closure_by_addr): New.
3067 * inferior.h: Declare it.
3068 * arm-tdep.c: (arm_pc_is_thumb): Call
3069 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
3070 returns non-NULL.
3071
08807d5a
PA
30722011-02-16 Pedro Alves <pedro@codesourcery.com>
3073 Jan Kratochvil <jan.kratochvil@redhat.com>
3074
3075 gdb/
3076 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
3077
29976f3f
PA
30782011-02-16 Pedro Alves <pedro@codesourcery.com>
3079 Jan Kratochvil <jan.kratochvil@redhat.com>
3080
3081 * value.c (value_contents_copy_raw): Extend describing comment.
3082 Assert that the destination contents we're overwriting are wholly
3083 available.
fb68ae73 3084 (value_contents_copy): Extend describing comment.
29976f3f 3085
cd24cfaa
PA
30862011-02-16 Pedro Alves <pedro@codesourcery.com>
3087 Jan Kratochvil <jan.kratochvil@redhat.com>
3088
3089 * value.c (value_available_contents_eq): Remove redundant local
3090 variables. Fix available contents comparision.
3091 * value.h (value_available_contents_eq): Extend describing
3092 comment.
3093
60bbf338
YQ
30942011-02-16 Yao Qi <yao@codesourcery.com>
3095
3096 * thread.c (info_threads_command): Add missing i18n markup and remove
3097 trailing newline.
3098
17450429
PP
30992011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3100
3101 * breakpoint.c (longjmp_names): New variable.
3102 (struct breakpoint_objfile_data): New type.
3103 (breakpoint_objfile_key): New variable.
3104 (msym_not_found): New variable.
3105 (msym_not_found_p): New predicate.
3106 (get_breakpoint_objfile_data): New function.
3107 (create_overlay_event_breakpoint): Check per-objfile cache for
3108 symbols first.
3109 (create_longjmp_master_breakpoint): Likewise.
3110 (create_std_terminate_master_breakpoint): Likewise.
3111 (create_exception_master_breakpoint): Likewise.
3112 (_initialize_breakpoint): Register per-objfile data key.
3113
af02033e
PP
31142011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
3115
3116 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
3117 parameter value.
3118 (create_longjmp_master_breakpoint): Loop over longjmp names.
3119 (create_std_terminate_master_breakpoint): Const-propagate parameter
3120 value.
3121 (update_breakpoints_after_exec): Adjust.
3122 (breakpoint_re_set): Adjust.
3123
60f98dde
MS
31242011-02-15 Michael Snyder <msnyder@vmware.com>
3125
cdf99611
MS
3126 * thread.c (info_threads_command): Process arg as thread id,
3127 or list of thread ids.
3128 (thread_find_command): New command.
3129 (_initialize_thread): Document argument for info threads.
3130 Document 'thread find' command.
3131 * NEWS: Document new command "thread find".
60f98dde 3132
0feedb2c
JK
31332011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3134
3135 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
3136 * aclocal.m4: Regenerated with aclocal-1.11.1.
3137 * common/configure: Regenerate with autoconf-2.64.
3138
648cd113
KW
31392011-02-15 Ken Werner <ken.werner@de.ibm.com>
3140
3141 * opencl-lang.c (build_opencl_types): Set the size of the built-in
3142 bool data type to a size of one byte.
3143
5657161f
PA
31442011-02-15 Pedro Alves <pedro@codesourcery.com>
3145 Jan Kratochvil <jan.kratochvil@redhat.com>
3146
3147 * target.c (memory_xfer_live_readonly_partial): Document where to
3148 look for interface description.
3149
494e194e
YQ
31502011-02-15 Yao Qi <yao@codesourcery.com>
3151
3152 PR tdep/12352
3153 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
3154 order to store PC value on stack instead of text section.
3155
d9492458
TJB
31562011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
3157
3158 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
3159 the EFP register set size.
3160 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
3161 data from the VMX register.
3162 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
3163 and write data from/to the VMX register.
3164
cdf99611
MS
31652011-02-14 Michael Snyder <msnyder@vmware.com>
3166
3167 * command.h (enum command_class): New class 'no_set_class', for
3168 "show" commands without a corresponding "set" command.
3169 * value.c (_initialize_values): Use 'no_set_class' for "show values".
3170 * copying.c (_initialize_copying): Ditto for "show copying" and
3171 "show warranty".
3172 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
3173 "show version".
3174 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
3175 which there is no corresponding "set" command (eg. "show copying").
3176
424447ee
PA
31772011-02-14 Pedro Alves <pedro@codesourcery.com>
3178 Jan Kratochvil <jan.kratochvil@redhat.com>
3179
3180 * exec.c (section_table_available_memory): Change `len' parameter
3181 type to ULONGEST.
3182 * exec.h (section_table_available_memory): Ditto.
3183 * value.h (read_value_memory): Rename the `offset' parameter to
3184 `embedded_offset'.
3185
c0f61f9c 31862011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 3187 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
3188
3189 * memrange.c (compare_mem_ranges): Mention sort order in
3190 describing comment.
3191 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
3192 * tracepoint.c (traceframe_available_memory): Extend comment to
3193 mention what happens to RESULT when the target does not support
3194 the query.
3195
6bfc80c7
PA
31962011-02-14 Pedro Alves <pedro@codesourcery.com>
3197 Jan Kratochvil <jan.kratochvil@redhat.com>
3198
3199 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
3200 range.
3201
e7303042
PA
32022011-02-14 Pedro Alves <pedro@codesourcery.com>
3203
3204 * value.c (value_bits_valid, value_bits_synthetic_pointer):
3205 No longer handle NULL values.
3206
8af8e3bc
PA
32072011-02-14 Pedro Alves <pedro@codesourcery.com>
3208
3209 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
3210 * value.c: Include "exceptions.h".
3211 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
3212 generic error.
3213 * cp-abi.c: Include gdb_assert.h.
3214 (baseclass_offset): Add `embedded_offset' and `val' parameters.
3215 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
3216 errors.
3217 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
3218 parameters. No longer returns -1 on error.
3219 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
3220 `val' parameters.
3221 * cp-valprint.c: Include exceptions.h.
3222 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
3223 the baseclass_offset. Handle unavailable base classes. Use
3224 val_print_invalid_address.
3225 * p-valprint.c: Include exceptions.h.
3226 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
3227 when fetching the baseclass_offset. No longer expect
3228 baseclass_offset returning -1. Handle unavailable base classes.
3229 Use val_print_invalid_address.
3230 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
3231 `valaddr' parameter, and change its type to gdb_byte pointer. Add
3232 `embedded_offset' and `val' parameters. Adjust.
3233 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
3234 parameter, and change its type to gdb_byte pointer. Add
3235 `embedded_offset' and `val' parameters. Adjust. No longer expect
3236 baseclass_offset returning -1.
3237 (value_dynamic_cast): Use value_contents_for_printing rather than
3238 value_contents. Adjust.
3239 (search_struct_field): No longer expect baseclass_offset returning
3240 -1.
3241 (search_struct_method): If reading memory from the target is
3242 necessary, wrap it in a new value to pass to baseclass_offset. No
3243 longer expect baseclass_offset returning -1.
3244 (find_method_list): No longer expect baseclass_offset returning
3245 -1. Use value_contents_for_printing rather than value_contents.
3246 * valprint.c (val_print_invalid_address): New function.
3247 * valprint.h (val_print_invalid_address): Declare.
3248 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
3249 and `val' parameters. No longer expect baseclass_offset returning
3250 -1. Adjust.
3251 * gnu-v2-abi.c: Include "exceptions.h".
3252 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
3253 parameters. Handle unavailable memory. Recurse through
3254 gnuv2_baseclass_offset directly, rather than through
3255 baseclass_offset. No longer returns -1 on not found, instead
3256 throw an error.
3257 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
3258 `val' parameters. Adjust.
3259
1b28d0b3
PA
32602011-02-14 Pedro Alves <pedro@codesourcery.com>
3261
3262 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
3263 almost but not quite adjacent.
3264
ec0a52e1
PA
32652011-02-14 Pedro Alves <pedro@codesourcery.com>
3266
3267 * value.h (value_entirely_available): Declare.
3268 * value.c (value_entirely_available): New function.
3269 * c-valprint.c (c_value_print): Don't try fetching the pointer's
3270 real type if the pointer is unavailable.
3271
24e6bcee
PA
32722011-02-14 Pedro Alves <pedro@codesourcery.com>
3273
3274 * valops.c (value_repeat): Use read_value_memory instead of
3275 read_memory.
3276
39d37385
PA
32772011-02-14 Pedro Alves <pedro@codesourcery.com>
3278
3279 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
3280 * value.c (value_contents_copy_raw, value_contents_copy): New
3281 functions.
3282 (value_primitive_field): Use value_contents_copy_raw instead of
3283 memcpy.
3284 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
3285 memcpy.
3286 (value_array, value_slice): Ditto.
3287 * valarith.c (value_subscripted_rvalue): Use
3288 value_contents_copy_raw instead of memcpy.
3289
a3d34bf4
PA
32902011-02-14 Pedro Alves <pedro@codesourcery.com>
3291
3292 <unavailable> references.
3293
3294 * valops.c (get_value_at): Use value_from_contents_and_address,
3295 avoiding read_memory.
3296
9fc6d940
PA
32972011-02-14 Pedro Alves <pedro@codesourcery.com>
3298
3299 * c-valprint.c (c_val_print): Print a string with unavailable
3300 contents as an array.
3301
5467c6c8
PA
33022011-02-14 Pedro Alves <pedro@codesourcery.com>
3303
3304 * value.h (unpack_bits_as_long): Delete declaration.
3305 (unpack_value_bits_as_long): Declare.
3306 (unpack_value_field_as_long): Declare.
3307 (value_field_bitfield): Declare.
3308 * value.c (unpack_bits_as_long): Rename to...
3309 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
3310 value parameters. Return the extracted result in a new output
3311 parameter. If the value contents are unavailable, return false,
3312 otherwise return true.
3313 (unpack_value_bits_as_long): New.
3314 (unpack_field_as_long): Rename to...
3315 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
3316 Add embedded_offset and value parameters. Return the extracted
3317 result in a new output parameter. If the value contents are
3318 unavailable, return false, otherwise return true.
3319 (unpack_value_field_as_long): New.
3320 (unpack_field_as_long_1): New.
3321 (unpack_field_as_long): Reimplement as wrapper around
3322 unpack_value_field_as_long_1.
3323 (value_field_bitfield): New function.
3324 * valops.c (value_fetch_lazy): When fetching a bitfield, use
3325 unpack_value_bits_as_long. Mark the value as unavailable, if it
3326 is unavailable.
3327 * jv-valprint.c (java_print_value_fields): Use
3328 value_field_bitfield.
3329 * p-valprint.c (pascal_object_print_value_fields): Use
3330 value_field_bitfield.
3331 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
3332
3158c6ed
PA
33332011-02-14 Pedro Alves <pedro@codesourcery.com>
3334
3335 * value.c (get_internalvar_integer): Also return the int value of
3336 TYPE_CODE_INT INTERNALVAR_VALUE values.
3337 (set_internalvar): Don't special case TYPE_CODE_INT.
3338
9fbdca0d
PA
33392011-02-14 Pedro Alves <pedro@codesourcery.com>
3340
3341 * value.c (struct internalvar) <enum internalvar_kind>: Remove
3342 INTERNALVAR_POINTER.
3343 <pointer>: Delete.
3344 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
3345 (set_internalvar): Remove special TYPE_CODE_PTR handling.
3346 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
3347
c8c1c22f
PA
33482011-02-14 Pedro Alves <pedro@codesourcery.com>
3349
3350 * value.h (value_available_contents_eq): Declare.
3351 * value.c (find_first_range_overlap): New function.
3352 (value_available_contents_eq): New function.
3353 * valprint.c (val_print_array_elements): Use
3354 value_available_contents_eq.
3355 * ada-valprint.c (val_print_packed_array_elements): Use
3356 value_available_contents_eq.
3357 * jv-valprint.c (java_value_print): Use
3358 value_available_contents_eq.
3359
e6e4e701
PA
33602011-02-14 Pedro Alves <pedro@codesourcery.com>
3361
3362 * target.c (target_read_live_memory): New function.
3363 (memory_xfer_live_readonly_partial): New.
3364 (memory_xfer_partial): If reading from a traceframe, fallback to
3365 reading unavailable read-only memory from read-only regions of
3366 live target memory.
3367 * tracepoint.c (disconnect_tracing): Adjust.
3368 (set_current_traceframe): New, factored out from
3369 set_traceframe_number.
3370 (set_traceframe_number): Reimplement to only change the traceframe
3371 number on the GDB side.
3372 (do_restore_current_traceframe_cleanup): Adjust.
3373 (make_cleanup_restore_traceframe_number): New.
3374 (cur_traceframe_number): New global.
3375 (tfile_open): Set cur_traceframe_number to no traceframe.
3376 (set_tfile_traceframe): New function.
3377 (tfile_trace_find): If looking up a traceframe using any method
3378 other than by number, make sure the current tfile traceframe
3379 matches gdb's current traceframe. Update the current tfile
3380 traceframe if the lookup succeeded.
3381 (tfile_fetch_registers, tfile_xfer_partial)
3382 (tfile_get_trace_state_variable_value): Make sure the remote
3383 traceframe matches gdb's current traceframe.
3384 * remote.c (remote_traceframe_number): New global.
3385 (remote_open_1): Set it to -1.
3386 (set_remote_traceframe): New function.
3387 (remote_fetch_registers, remote_store_registers)
3388 (remote_xfer_memory, remote_xfer_partial)
3389 (remote_get_trace_state_variable_value): Make sure the remote
3390 traceframe matches gdb's current traceframe.
3391 (remote_trace_find): If looking up a traceframe using any method
3392 other than by number, make sure the current remote traceframe
3393 matches gdb's current traceframe. Update the current remote
3394 traceframe if the lookup succeeded.
3395 * infrun.c (fetch_inferior_event): Adjust.
3396 * tracepoint.h (set_current_traceframe): Declare.
3397 (get_traceframe_number, set_traceframe_number): Add describing
3398 comments.
3399
e6ca34fc
PA
34002011-02-14 Pedro Alves <pedro@codesourcery.com>
3401
3402 Mark pieces of values as unavailable if the corresponding memory
3403 is unavailable.
3404
3405 * valops.c: Include tracepoint.h.
3406 (value_fetch_lazy): Use read_value_memory.
3407 (read_value_memory): New.
3408 * value.h (read_value_memory): Declare.
3409 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3410 * exec.c (section_table_available_memory): New function.
3411 * exec.h (section_table_available_memory): Declare.
3412
2a7498d8
PA
34132011-02-14 Pedro Alves <pedro@codesourcery.com>
3414
3415 * Makefile.in (SFILES): Add memrange.c.
3416 (HFILES_NO_SRCDIR): Add memrange.h.
3417 (COMMON_OBS): Add memrange.o.
3418 * memrange.c: New file.
3419 * memrange.h: New file.
3420 * tracepoint.c: Include memrange.h.
3421 (struct mem_range): Delete.
3422 (mem_range_s): Delete.
3423 (traceframe_available_memory): New function.
3424 * tracepoint.h (traceframe_available_memory): Declare.
3425
b3b9301e
PA
34262011-02-14 Pedro Alves <pedro@codesourcery.com>
3427
3428 * target.h (struct traceframe_info): Forward declare.
3429 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3430 (struct target_ops) <to_traceframe_info>: New field.
3431 (target_traceframe_info): New.
3432 * target.c (update_current_target): Inherit and default
3433 to_traceframe_info.
3434 * remote.c (PACKET_qXfer_traceframe_info): New.
3435 (remote_protocol_features): Register qXfer:traceframe-info:read.
3436 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3437 (remote_traceframe_info): New.
3438 (init_remote_ops): Install it.
3439 (_initialize_remote): Install "set/show remote traceframe-info"
3440 commands.
3441 * tracepoint.h (parse_traceframe_info): Declare.
3442 * tracepoint.c (struct mem_range): New.
3443 (mem_range_s): New typedef.
3444 (struct traceframe_info): New.
3445 (traceframe_info): New global.
3446 (free_traceframe_info): New function.
3447 (clear_traceframe_info): New function.
3448 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3449 info.
3450 (build_traceframe_info): New function.
3451 (tfile_traceframe_info): New function.
3452 (init_tfile_ops): Install tfile_traceframe_info.
3453 (traceframe_info_start_memory, free_result): New functions.
3454 (memory_attributes, traceframe_info_elements): New globals.
3455 (parse_traceframe_info, get_traceframe_info): New functions.
3456 * features/traceframe-info.dtd: New file.
3457 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3458
4e07d55f
PA
34592011-02-14 Pedro Alves <pedro@codesourcery.com>
3460
3461 Base support for <unavailable> value contents.
3462
4e07d55f
PA
3463 * value.h (value_bytes_available): Declare.
3464 (mark_value_bytes_unavailable): Declare.
3465 * value.c (struct range): New struct.
3466 (range_s): New typedef.
3467 (ranges_overlap): New function.
3468 (range_lessthan): New function.
3469 (ranges_contain_p): New function.
3470 (struct value) <unavailable>: New field.
3471 (value_bytes_available): New function.
3472 (mark_value_bytes_unavailable): New function.
3473 (require_not_optimized_out): Constify parameter.
3474 (require_available): New function.
3475 (value_contents_all, value_contents): Require all bytes be
3476 available.
3477 (value_free): Free `unavailable'.
3478 (value_copy): Copy `unavailable'.
3479 * valprint.h (val_print_unavailable): Declare.
3480 * valprint.c (valprint_check_validity): Rename `offset' parameter
3481 to `embedded_offset'. If printing a scalar, check whether the
3482 value chunk is available.
3483 (val_print_unavailable): New.
3484 (val_print_scalar_formatted): Check whether the value is
3485 available.
3486 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3487 pretty-printing unavailable values.
3488
bc9a5551
JK
34892011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3490
3491 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3492 * c-typeprint.c (c_type_print_args): Update the function comment. New
3493 variable param_type, initialize it. Remove const/volatile qualifiers
3494 for language_cplus and !show_artificial. Use param_type.
3495
93b55aa1
JK
34962011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3497
3498 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3499 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3500 * symtab.h (struct symtab) <next>: Comment extension.
3501
181d9476
YQ
35022011-02-12 Yao Qi <yao@codesourcery.com>
3503
3504 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3505
b708a5c7
JK
35062011-02-11 Yao Qi <yao@codesourcery.com>
3507
3508 * common/Makefile.in: Add copyright header.
3509
c5187ac6
PA
35102011-02-11 Pedro Alves <pedro@codesourcery.com>
3511
3512 * infrun.c (proceed): Move switching out and in of tfind mode from
3513 here ...
3514 (fetch_inferior_event): ... to here.
3515
4f3e6fb7
YQ
35162011-02-11 Yao Qi <yao@codesourcery.com>
3517
3518 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3519 libcommon.a.
3520 * configure.ac: Add common to sub dir.
3521 * configure: Regenerate.
3522
b708a5c7
JK
35232011-02-11 Yao Qi <yao@codesourcery.com>
3524
3525 Build libcommon.a.
3526
3527 * common/Makefile.in: New.
3528 * common/configure.ac: New.
3529 * common/aclocal.m4: New.
3530 * common/configure: Generate.
3531
2287cc7e
PA
35322011-02-10 Pedro Alves <pedro@codesourcery.com>
3533
3534 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3535 side of the parenthesis.
3536
3537 Merge from GCC:
3538 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 3539 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 3540
fd62cb89
MS
35412011-02-08 Michael Snyder <msnyder@vmware.com>
3542
3543 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3544
56d2815c
JK
35452011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3546
3547 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3548 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3549 psubd and paddd.
3550
4f7d61a8
JK
35512011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3552
3553 PR 12361.
3554 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3555 phsubsw.
3556 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3557 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3558
54fcddd0
UW
35592011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3560
3561 * dwarf2read.c (read_subroutine_type): Set special calling
3562 convention flag for functions compiled by IBM XL C for OpenCL.
3563 * ppc-sysv-tdep.c: Include "dwarf2.h"
3564 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3565 calling convention.
3566 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3567 IBM OpenCL vector types calling convention.
3568 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3569 (ppc_sysv_abi_broken_return_value): Likewise.
3570 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3571 types calling convention.
3572 (ppc64_sysv_abi_return_value): Likewise.
3573 * spu-tdep.c: Include "dwarf2.h"
3574 (spu_return_value): Implement IBM OpenCL vector types calling
3575 convention.
3576
d6dafb7c
UW
35772011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3578
3579 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3580 correct ABI for AltiVec vector arguments.
3581
32b72a42
PA
35822011-02-07 Pedro Alves <pedro@codesourcery.com>
3583
3584 * valprint.c (val_print): Extend comment.
3585 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3586 interface explanation to val_print.
3587 (ada_val_print_array): Adjust comment to current interface.
3588 (print_field_values): Adjust comment to current interface.
3589 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3590 explanation to val_print.
3591 * f-valprint.c (f_val_print): Ditto.
3592 * jv-valprint.c (java_val_print): Ditto.
3593 * m2-valprint.c (m2_val_print): Ditto.
3594 * p-valprint.c (pascal_val_print): Ditto.
3595
9998af43
TJB
35962011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3597
3598 * breakpoint.c (parse_breakpoint_sals): Fix description.
3599
505500db 36002011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 3601 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
3602
3603 * python/py-inferior.c (python_on_normal_stop): New function.
3604 (python_on_resume): New function.
3605 (python_inferior_exit): New function.
3606 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3607 inferior_exit observers.
3608 * python/py-evtregistry.c: New file.
3609 * python/py-threadevent.c : New file.
3610 * python/py-event.c: New file.
3611 * python/py-evts.c: New file.
3612 * python/py-continueevent.c: New file.
3613 * python/py-bpevent.c: New file.
3614 * python/py-signalevent.c: New file.
3615 * python/py-exetiedevent.c: New file.
3616 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3617 Move struct breakpoint_object from here...
3618 * python/python-internal.h: ... to here.
3619 * python/py-event.h: New file.
3620 * python/py-events.h: New file.
3621 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3622 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3623 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3624 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3625 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3626 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3627 Add build rules for all the above.
3628
9e0ac564
TT
36292011-02-04 Tom Tromey <tromey@redhat.com>
3630
3631 * dwarf2read.c (dwarf2_section_empty_p): New function.
3632 (dwarf2_read_section): Use dwarf2_section_empty_p.
3633 (dwarf2_section_size): New function.
3634 (dwarf2_get_section_info): Unconditionally read section.
3635 (dwarf2_read_index): Use dwarf2_section_empty_p.
3636 (partial_read_comp_unit_head): Use dwarf2_section_size.
3637 (dwarf2_symbol_mark_computed): Likewise.
3638
eee5b35e
DD
36392011-02-04 David Daney <ddaney@caviumnetworks.com>
3640
3641 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3642
385203ed
DD
36432011-02-04 David Daney <ddaney@caviumnetworks.com>
3644
3645 * mips-linux-tdep.c: Include xml-syscall.h.
3646 (mips_linux_get_syscall_number): New function.
3647 (mips_linux_init_abi): Add calls to
3648 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3649 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3650 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3651 * syscalls/mips-n32-linux.xml: New file.
3652 * syscalls/mips-n64-linux.xml: New file.
3653 * syscalls/mips-o32-linux.xml: New file.
3654
9277c30c
UW
36552011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3656
3657 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3658 Complain about inverted range entries.
3659 (dwarf2_record_block_ranges): Likewise.
3660
a3be7890
TJB
36612011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3662
3663 Fix some typos.
3664 * breakpoint.c (update_watchpoint): Fix name of the
3665 update_global_location_list function.
3666 (print_one_breakpoint): Fix typo.
3667 (_initialize_breakpoint): Remove extra space in hbreak help
3668 string.
3669 * breakpoint.h (struct bp_location) <length>: Fix field
3670 description.
3671
041274d8
PA
36722011-02-04 Pedro Alves <pedro@codesourcery.com>
3673
3674 * regcache.c (registers_changed_ptid): Don't explictly always
3675 clear `current_regcache'. Only clear current_thread_ptid and
3676 current_thread_arch when PTID matches. Only reinit the frame
3677 cache if PTID matches the current inferior_ptid. Move alloca(0)
3678 call to ...
3679 (registers_changed): ... here.
3680
c1c2ab58
UW
36812011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3682
3683 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3684 starts with __stack_chk_guard as stack guard symbol.
3685
9011945e
AB
36862011-02-03 Andrew Burgess <aburgess@broadcom.com>
3687
3688 * disasm.c (compare_lines): Handle the end of sequence markers
3689 within the line table to better support disassembling over
3690 compilation unit boundaries.
3691
e0634ccf
UW
36922011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3693
3694 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3695 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3696 implementation even if no symbols are available.
3697 (thumb_analyze_prologue): Update call to skip_prologue_function.
3698 (arm_analyze_prologue): Likewise.
3699
0e9e9abd
UW
37002011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3701
3702 * arm-tdep.c: Include "observer.h".
3703 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3704 (arm_exidx_data_key): New static variable.
3705 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3706 (struct arm_exidx_data): Likewise.
3707 (arm_exidx_data_free): New function.
3708 (arm_compare_exidx_entries): Likewise.
3709 (arm_obj_section_from_vma): Likewise.
3710 (arm_exidx_new_objfile): Likewise.
3711 (arm_find_exidx_entry): Likewise.
3712 (arm_exidx_fill_cache): Likewise.
3713 (arm_exidx_unwind_sniffer): Likewise.
3714 (arm_exidx_unwind): New global variable.
3715 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3716 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3717 observer. Register arm_exidx_data_key as objfile data.
3718
2e9e421f
UW
37192011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3720
3721 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3722 due to accessing uninitialized variable. Fix indentation.
3723
580688f3
PA
37242011-02-02 Pedro Alves <pedro@codesourcery.com>
3725
3726 * c-valprint.c (c_value_print): When doing virtual base pointer
3727 adjustment, create a new value with adjusted contents rather than
3728 changing the contents of the value being printed (and getting it
3729 wrong).
3730
3d2c1d41
PA
37312011-02-02 Pedro Alves <pedro@codesourcery.com>
3732
3733 * xml-support.c (xml_find_attribute): New.
3734 (xinclude_start_include): Use it.
3735 * xml-support.h (xml_find_attribute): Declare.
3736 * memory-map.c (memory_map_start_memory)
3737 (memory_map_start_property): Use xml_find_attribute.
3738 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3739 xml_find_attribute.
3740 * remote.c (start_thread): Use xml_find_attribute.
3741 * solib-target.c (library_list_start_segment)
3742 (library_list_start_section, library_list_start_library)
3743 (library_list_start_list): Use xml_find_attribute.
3744 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3745 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3746 (tdesc_start_field): Use xml_find_attribute.
3747
0af3e2db
UW
37482011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3749
3750 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3751 (BUILD_OCL_VTYPES): Update.
3752
c1039e3c
JB
37532011-02-02 Joel Brobecker <brobecker@adacore.com>
3754
3755 * configure.ac: Work around non-GNU sed limitation when computing
3756 python version number.
3757 * configure: Regenerate.
3758
600ea1be
JK
37592011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3760
3761 Fix debug printing of TYPE_INSTANCE.
3762 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3763 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3764
56c12414
JK
37652011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3766
3767 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3768 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3769 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3770 * ada-operator.inc: Rename the file to ...
3771 * ada-operator.def: ... here, wrap all the entries by macro OP.
3772 * expprint.c (op_name_standard): Remove all the entries. Include
3773 "std-operator.def" instead.
3774 * expression.h (enum exp_opcode): Include "std-operator.def" and
3775 "ada-operator.def". Move all the entries ...
3776 * std-operator.def: ... here, wrap all the entries by macro OP.
3777
c52b559d
PP
37782011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3779
3780 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3781 * breakpoint.c (remove_jit_event_breakpoints): New function.
3782 * jit.c (jit_descriptor_addr): Delete.
3783 (registering_code): Delete.
3784 (clear_int): Delete.
3785 (jit_inferior_data): New variable.
3786 (struct jit_inferior_data): New type.
3787 (get_jit_inferior_data): New function.
3788 (jit_inferior_data_cleanup): New function.
3789 (jit_read_descriptor): Adjust.
3790 (jit_register_code): Adjust.
3791 (jit_breakpoint_re_set_internal): New function; move code here ...
3792 (jit_inferior_init): ... from here.
3793 (jit_breakpoint_re_set): Adjust.
3794 (jit_reset_inferior_data_and_breakpoints): New function.
3795 (jit_inferior_created_observer): Adjust.
3796 (jit_inferior_exit_hook): Adjust.
3797 (jit_executable_changed_observer): New function.
3798 (jit_event_handler): Adjust.
3799 (_initialize_jit): Adjust.
3800
e839132d
MS
38012011-01-31 Michael Snyder <msnyder@vmware.com>
3802
3803 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3804 line.
3805
47a80e90
TT
38062011-01-31 Tom Tromey <tromey@redhat.com>
3807
3808 PR python/12216:
3809 * python/python.c (execute_gdb_command): Call
3810 prevent_dont_repeat.
3811 * top.c (suppress_dont_repeat): New global.
3812 (dont_repeat): Use it.
3813 (prevent_dont_repeat): New function.
3814 * command.h (prevent_dont_repeat): Declare.
3815
45a43567
TT
38162011-01-31 Tom Tromey <tromey@redhat.com>
3817
3818 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3819 * python/py-breakpoint.c (bppy_set_silent): Use
3820 breakpoint_set_silent.
3821 (bppy_set_thread): Use breakpoint_set_thread.
3822 (bppy_set_task): Use breakpoint_set_task.
3823 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3824 (breakpoint_set_task): Declare.
3825 (make_breakpoint_silent): Remove.
3826 * breakpoint.c (breakpoint_set_silent): New function.
3827 (breakpoint_set_thread): Likewise.
3828 (breakpoint_set_task): Likewise.
3829 (make_breakpoint_silent): Remove.
3830
09d682a4
TT
38312011-01-31 Tom Tromey <tromey@redhat.com>
3832
3833 * breakpoint.h (user_breakpoint_p): Declare.
3834 * breakpoint.c (user_breakpoint_p): New function.
3835 (breakpoint_1): Use it.
3836 (save_breakpoints): Likewise.
3837
9c4ea6c5
JB
38382011-01-31 Joel Brobecker <brobecker@adacore.com>
3839
3840 * configure.ac: Add handling of Python distribution on Windows.
3841 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3842 sysconfig variables are not defined, then do not use them.
3843 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3844 instead. On Windows, return all paths using forward-slashes
3845 rather than backslashes.
3846
ac534cba
JB
38472011-01-31 Joel Brobecker <brobecker@adacore.com>
3848
3849 * configure.ac: Remove fallback behavior for building
3850 against Python. Remove tweaking of Python include path.
3851 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3852 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3853 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3854 Always restore CPPFLAGS and LIBS after linking test.
3855 * configure: Regenerated.
3856 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3857 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3858 * python/python-internal.h: Adjust includes of Python .h files.
3859
c2f0d045
JB
38602011-01-31 Joel Brobecker <brobecker@adacore.com>
3861
3862 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3863 in error message.
3864
6b0c4c1f
JB
38652011-01-31 Joel Brobecker <brobecker@adacore.com>
3866
3867 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3868 value test.
3869
672c9795
YQ
38702011-01-31 Yao Qi <yao@codesourcery.com>
3871
3872 * arm-linux-nat.c: Update calls to regcache_register_status
3873 instead of regcache_valid_p.
3874 * aix-thread.c: Likewise.
3875 * i386gnu-nat.c: Likewise.
3876
80b23b6a
JK
38772011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3878
3879 Fix crash.
3880 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3881 touching TYPE_FIELD_ARTIFICIAL.
3882
4cd712bd
RE
38832011-01-28 Richard Earnshaw <rearnsha@arm.com>
3884
3885 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3886 Committers.
3887
ffd5ec24
PA
38882011-01-28 Pedro Alves <pedro@codesourcery.com>
3889
3890 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3891 selected, don't try iterating over the traceframe's blocks.
3892 (tfile_has_stack): If there's no traceframe selected, then there's
3893 no stack.
3894 (tfile_has_registers): If there's no traceframe selected, then
3895 there's no registers.
3896
e8c9e0a1
PA
38972011-01-28 Pedro Alves <pedro@codesourcery.com>
3898
3899 * target.c (memory_xfer_partial): No need to restore shadows if we
3900 haven't read anything.
3901
de15c4ab
PA
39022011-01-28 Pedro Alves <pedro@codesourcery.com>
3903
3904 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3905 and val_print_scalar_formatted.
3906
9f41c731
PA
39072011-01-27 Pedro Alves <pedro@codesourcery.com>
3908
3909 * tracepoint.c (tfile_read): New.
3910 (tfile_open): Use it.
3911 (tfile_get_traceframe_address): Use it.
3912 (tfile_trace_find): Use it.
3913 (walk_blocks_callback_func): New typedef.
3914 (match_blocktype): New function.
3915 (traceframe_walk_blocks): New function.
3916 (traceframe_find_block_type): New function.
3917 (tfile_fetch_registers, tfile_xfer_partial)
3918 (tfile_get_trace_state_variable_value): Use
3919 traceframe_find_block_type and tfile_read.
3920
cdefc55d
KB
39212011-01-26 Kevin Buettner <kevinb@redhat.com>
3922
3923 * remote-mips.c: Add internationalization mark ups. Remove
3924 trailing \n from already marked up strings.
3925
a81766d8
TT
39262011-01-26 Tom Tromey <tromey@redhat.com>
3927
3928 * python/py-prettyprint.c (print_string_repr): Clear
3929 'addressprint' option when calling val_print_string.
3930 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3931 option when calling val_print_string.
3932
74aedc46
TT
39332011-01-26 Tom Tromey <tromey@redhat.com>
3934
3935 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3936 GDB_PY_LL_ARG.
3937 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3938 macros.
3939 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3940 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3941 (gdb_py_long_as_ulongest): New defines.
3942 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3943 (gdb_py_int_as_long): Declare.
3944 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3945 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3946 (valpy_long): Add comment.
3947 * python/py-utils.c (get_addr_from_python): Use
3948 gdb_py_long_as_ulongest. Handle overflow properly.
3949 (gdb_py_object_from_longest): New function.
3950 (gdb_py_object_from_ulongest): Likewise.
3951 (gdb_py_int_as_long): Likewise.
3952 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3953 * python/py-symtab.c (salpy_get_pc): Use
3954 gdb_py_long_from_ulongest.
3955 (salpy_get_line): Use PyInt_FromLong.
3956 * python/py-param.c (set_parameter_value): Use
3957 gdb_py_int_as_long.
3958 * python/py-lazy-string.c (stpy_get_address): Use
3959 gdb_py_long_from_ulongest.
3960 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3961 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3962 * python/py-breakpoint.c (bppy_set_thread): Use
3963 gdb_py_int_as_long.
3964 (bppy_set_task): Likewise.
3965 (bppy_set_ignore_count): Likewise.
3966 (bppy_set_hit_count): Likewise.
3967 * python/py-block.c (blpy_get_start): Use
3968 gdb_py_object_from_ulongest.
3969 (blpy_get_end): Likewise.
3970 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3971
e4f6d2ec
TJB
39722011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3973
3974 PR/symtab 11766:
3975 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3976 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3977 equality test for objfile, initialize addr_low if needed.
3978
b30aa278
PA
39792011-01-25 Pedro Alves <pedro@codesourcery.com>
3980
3981 * tui/tui-regs.c (tui_register_format): Remove dead code.
3982
ab2188aa
PA
39832011-01-25 Pedro Alves <pedro@codesourcery.com>
3984
3985 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3986 instead of print_scalar_formatted.
3987 (print_scalar_formatted): Don't handle 's' format strings here,
3988 and add an assertion that we never see such format here.
3989 * valprint.h (val_print_scalar_formatted): Declare.
3990 * valprint.c (val_print_scalar_formatted): New.
3991 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3992 instead of print_scalar_formatted.
3993 * jv-valprint.c (java_val_print): Ditto.
3994 * p-valprint.c (pascal_val_print): Ditto.
3995 * ada-valprint.c (ada_val_print_1): Ditto.
3996 * f-valprint.c (f_val_print): Ditto.
3997 * infcmd.c (registers_info): Ditto.
3998 * m2-valprint.c (m2_val_print): Ditto.
3999
66d61a4c
PA
40002011-01-25 Pedro Alves <pedro@codesourcery.com>
4001
4002 * m2-valprint.c (print_unbounded_array): Pass
4003 value_contents_for_printing rather than value_contents, to
4004 m2_print_array_contents. Also pass in the value.
4005
831adc1f
JK
40062011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4007
4008 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
4009 (save_gdb_index_command): Switch to .gdb_index version 4.
4010
20622269
PA
40112011-01-25 Pedro Alves <pedro@codesourcery.com>
4012
4013 * mi/mi-main.c (get_register): Use get_frame_register_value rather
4014 than frame_register, and always pass a valid value to val_print.
4015
585fdaa1
PA
40162011-01-25 Pedro Alves <pedro@codesourcery.com>
4017
4018 Centralize printing "<optimized out>".
4019
4020 * valprint.h (val_print_optimized_out): Declare.
4021 * cp-valprint.c (cp_print_value_fields): Use
4022 val_print_optimized_out.
4023 * jv-valprint.c (java_print_value_fields): Ditto.
4024 * p-valprint.c (pascal_object_print_value_fields): Ditto.
4025 * printcmd.c (print_formatted): Ditto.
4026 * valprint.c (valprint_check_validity): Ditto.
4027 (value_check_printable): Ditto.
4028 (val_print_optimized_out): New.
4029
29ec5263
PA
40302011-01-25 Pedro Alves <pedro@codesourcery.com>
4031
4032 * infcmd.c (default_print_registers_info): Allocate values so to
4033 never pass a NULL value to val_print.
4034
de4127a3
PA
40352011-01-25 Pedro Alves <pedro@codesourcery.com>
4036
4037 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
4038 boolean. Make sure to always pass a value that matches the
4039 contents buffer to callees. Preserve `address' for following
4040 iterations.
4041 * value.c (value_contents_for_printing_const): New.
4042 (value_address): Constify value argument.
4043 * value.h (value_contents_for_printing_const): Declare.
4044 (value_address): Constify value argument.
4045
ee99023e
PA
40462011-01-25 Pedro Alves <pedro@codesourcery.com>
4047
4048 * regcache.c (struct regcache_descr): Rename
4049 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
4050 and sizeof_cooked_register_valid_p to
4051 sizeof_cooked_register_status.
4052 (init_regcache_descr): Adjust.
4053 (struct regcache): Rename register_valid_p field to
4054 register_status.
4055 (regcache_xmalloc_1, regcache_xfree, regcache_save)
4056 (do_cooked_read): Adjust.
4057 (regcache_valid_p): Rename to ...
4058 (regcache_register_status): ... this. Adjust.
4059 (regcache_invalidate): Adjust.
4060 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
4061 Adjust.
4062 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
4063 as unavailable, not valid.
4064 (regcache_dump): Adjust.
4065 * regcache.h (enum register_status): New.
4066 (regcache_register_status): Declare.
4067 (regcache_invalidate): Delete declaration.
4068 * corelow.c (get_core_registers): Adjust.
4069 * tracepoint.c (tfile_fetch_registers): Adjust.
4070 * trad-frame.c (REG_VALUE): Rename to ...
4071 (TF_REG_VALUE): ... this.
4072 (REG_UNKNOWN): Rename to ...
4073 (TF_REG_UNKNOWN): ... this.
4074 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
4075 * mi/mi-main.c (register_changed_p): Adjust.
4076
99e42fd8
PA
40772011-01-25 Pedro Alves <pedro@codesourcery.com>
4078
4079 * regcache.c (struct regcache_descr): Remove outdated comment.
4080 (init_regcache_descr): Remove sizeof_raw_register_valid_p
4081 overallocate hack.
4082 (regcache_xmalloc): Rename to ...
4083 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
4084 Allocate the regcache type accordingly.
4085 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
4086 (regcache_xfree): Asser the source is also readonly. Copy sizeof
4087 cooked registers, not raw.
4088 (regcache_dup_no_passthrough): Delete.
4089 (get_thread_arch_regcache): Use regcache_xmalloc_1.
4090 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
4091 mention obsolete write_register_bytes.
4092 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
4093
f7605bc2
PA
40942011-01-25 Pedro Alves <pedro@codesourcery.com>
4095
4096 Stop remote_read_bytes from handling partial reads itself.
4097
4098 * remote-fileio.c: Include target.h.
4099 (remote_fileio_write_bytes): Delete.
4100 (remote_fileio_func_open, remote_fileio_func_write)
4101 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
4102 target_read_memory.
4103 (remote_fileio_func_stat): Use target_read_memory and
4104 target_write_memory.
4105 (remote_fileio_func_gettimeofday): Use target_write_memory.
4106 (remote_fileio_func_system): Use target_read_memory.
4107 * remote.c (remote_write_bytes): Make it static.
4108 (remote_read_bytes): Don't handle partial reads here.
4109 * remote.h (remote_read_bytes): Delete declaration.
4110
efc0eabd
PA
41112011-01-25 Pedro Alves <pedro@codesourcery.com>
4112
4113 Simplify XML parsing a bit.
4114
4115 * xml-support.h (gdb_xml_parse_quick): Declare.
4116 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
4117 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
4118 parameter.
4119 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
4120 gdb_xml_create_parser_and_cleanup_1.
4121 (gdb_xml_parse_quick): New.
4122 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
4123 * osdata.c (osdata_parse): Ditto.
4124 * remote.c (remote_threads_info): Ditto.
4125 * solib-target.c (solib_target_parse_libraries): Ditto.
4126 * xml-syscall.c (syscall_parse_xml): Ditto.
4127 * xml-tdesc.c (tdesc_parse_xml): Ditto.
4128
314d366a
KB
41292011-01-24 Kevin Buettner <kevinb@redhat.com>
4130
4131 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
4132 with remote-mips.o added to gdb_target_obs.
4133 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
4134
a491d753
PA
41352011-01-24 Pedro Alves <pedro@codesourcery.com>
4136
4137 * ada-valprint.c (val_print_packed_array_elements): Pass the
4138 correct struct value to val_print.
4139 (ada_val_print_1): Ditto.
4140
490f124f
PA
41412011-01-24 Pedro Alves <pedro@codesourcery.com>
4142
4143 Don't lose embedded_offset in printing routines throughout.
4144
4145 * valprint.h (val_print_array_elements): Change prototype.
4146 * valprint.c (val_print_array_elements): Add `embedded_offset'
4147 parameter, and adjust to pass it down to val_print, while passing
4148 `valaddr' or `address' unmodified. Take embedded_offset into
4149 account when checking repetitions.
4150 * c-valprint.c (c_val_print): Pass embedded_offset to
4151 val_print_array_elements instead of adjusting `valaddr' and
4152 `address'.
4153 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
4154 embedded_offset to val_print_array_elements instead of adjusting
4155 `valaddr'.
4156 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
4157 * p-valprint.c (pascal_val_print): Pass embedded_offset to
4158 val_print_array_elements and pascal_object_print_value_fields
4159 instead of adjusting `valaddr'.
4160 (pascal_object_print_value_fields): Add `offset' parameter, and
4161 adjust to use it.
4162 (pascal_object_print_value): Add `offset' parameter, and adjust to
4163 use it.
4164 (pascal_object_print_static_field): Use
4165 value_contents_for_printing/value_embedded_offset, rather than
4166 value_contents.
4167 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
4168 parameter, and adjust to use it. Use
4169 value_contents_for_printing/value_embedded_offset, rather than
4170 value_contents.
4171 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
4172 (ada_val_print_array): Add `offset' parameter, and adjust to use
4173 it.
4174 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
4175 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
4176 Instead work with offsets. Use
4177 value_contents_for_printing/value_embedded_offset, rather than
4178 value_contents. Change `defer_val_int' local type to CORE_ADDR,
4179 and use value_from_pointer to extract a target pointer, rather
4180 than value_from_longest.
4181 (print_variant_part): Add `offset' parameter. Replace
4182 `outer_valaddr' parameter by a new `outer_offset' parameter.
4183 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4184 (ada_value_print): Use
4185 value_contents_for_printing/value_embedded_offset, rather than
4186 value_contents.
4187 (print_record): Add `offset' parameter, and adjust to pass it
4188 down.
4189 (print_field_values): Add `offset' parameter. Replace
4190 `outer_valaddr' parameter by a new `outer_offset' parameter.
4191 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4192 Use value_contents_for_printing/value_embedded_offset, rather than
4193 value_contents.
4194 * d-valprint.c (dynamic_array_type): Use
4195 value_contents_for_printing/value_embedded_offset, rather than
4196 value_contents.
4197 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
4198 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
4199 (java_print_value_fields): Take `offset' into account. Don't
4200 re-adjust `valaddr'. Instead pass down adjusted offsets.
4201 (java_val_print): Take `embedded_offset' into account. Pass it to
4202 java_print_value_fields.
4203 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
4204 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
4205 down adjusted offsets.
4206 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
4207 (f_val_print): Take `embedded_offset' into account.
4208
7bfc9434
JB
42092011-01-21 Joel Brobecker <brobecker@adacore.com>
4210
4211 * inflow.c: Include "gdbcmd.h".
4212 (interactive_mode): New static global, moved here from top.c.
4213 (show_interactive_mode): New function, moved here from top.c.
4214 use gdb_has_a_terminal instead of input_from_terminal_p to
4215 determine the current mode.
4216 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
4217 setting.
4218 (_initialize_inflow): Add the "set/show interactive-mode"
4219 commands. Moved here from top.c, after having adjusted slightly
4220 the help text.
4221 * top.c (interactive_mode, show_interactive_mode): Delete, moved
4222 to inflow.c.
4223 (input_from_terminal_p): Remove handling of "interactive-mode"
4224 setting, moved to infow.c.
4225 (init_main): Remove creation of the "set/show interactive-mode"
4226 commands, moved to inflow.c.
4227
44603653
JB
42282011-01-19 Joel Brobecker <brobecker@adacore.com>
4229
4230 * NEWS: Add entry for native ia64-hpux support.
4231
4694da01
TT
42322011-01-19 Tom Tromey <tromey@redhat.com>
4233
4234 PR mi/8618:
4235 * thread.c (free_thread): Free 'name'.
4236 (print_thread_info): Emit thread name. Change CLI output.
4237 (thread_name_command): New function.
4238 (do_captured_thread_select): Emit newline.
4239 (_initialize_thread): Register 'thread name' command.
4240 * target.h (struct target_ops) <to_thread_name>: New field.
4241 (target_thread_name): New macro.
4242 * target.c (update_current_target): Handle to_thread_name.
4243 * python/py-infthread.c (thpy_get_name): New function.
4244 (thpy_set_name): Likewise.
4245 (thread_object_getset): Add "name".
4246 * linux-nat.c (linux_nat_thread_name): New function.
4247 (linux_nat_add_target): Set to_thread_name.
4248 * gdbthread.h (struct thread_info) <name>: New field.
4249
10d44370
JB
42502011-01-18 Joel Brobecker <brobecker@adacore.com>
4251
4252 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
4253 (ada_val_print_1): Likewise.
4254
e3acb115
JB
42552011-01-18 Joel Brobecker <brobecker@adacore.com>
4256
4257 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
4258 upper limit address is not greater than the function end address
4259 when the upper limit could not be computed using the debugging
4260 info.
4261
dc92e161
TT
42622011-01-17 Tom Tromey <tromey@redhat.com>
4263
4264 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
4265 get_regcomp_error.
4266 * utils.c: Include gdb_regex.h.
4267 (do_regfree_cleanup): New function.
4268 (make_regfree_cleanup): Likewise.
4269 (get_regcomp_error): Likewise.
4270 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
4271
f55af66d
TT
42722011-01-17 Tom Tromey <tromey@redhat.com>
4273
4274 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
4275 re_compile_fastmap.
4276
a5a44b53
PM
42772011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
4278
4279 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
4280 for internal variables.
4281 (last_was_structop): New static variable.
4282 (COMPLETE): New token.
4283 (field_exp): New rule to group all '.' suffix handling.
4284 Add mark_struct_expression calls when approriate to be able
4285 to correctly find fields for completion.
4286 (yylex): Adapt to handle field completion and set INTVAR when
4287 required.
4288
2c291032
YQ
42892011-01-14 Yao Qi <yao@codesourcery.com>
4290
4291 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
4292 save_reggroup, restore_reggroup and all_reggroup.
4293
447b483c
JB
42942011-01-14 Joel Brobecker <brobecker@adacore.com>
4295
4296 * ada-valprint. (ada_printchar): Use the correct type length
4297 in call to ada_emit_char.
4298 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
4299
7b64a93b
PM
43002011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
4301
4302 * solib-som.h (hpux_major_release): Declare variable here.
4303 * solib-som.c: Remove <sys/utsname.h> header.
4304 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
4305 (hpux_major_release): Make global, change default value to
4306 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 4307 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
4308 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
4309 Add "solib-som.h" header.
4310 (set_hpux_major_release): New function.
4311 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
4312
4e18c053
MF
43132011-01-14 Mike Frysinger <vapier@gentoo.org>
4314
4315 * configure.tgt (*-*-uclinux*): Match more Linux os targets
4316
a9df6b22
JB
43172011-01-14 Joel Brobecker <brobecker@adacore.com>
4318
4319 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
4320 new-line at end of warning message.
4321 (ia64_hpux_store_register): Remove trailing new-line at end of
4322 error message.
4323 * ia64-hpux-tdep.c: Rephrase comment.
4324 * solib-ia64-hpux.c (struct dld_info): Change type of field
4325 dld_flags from "long long" to ULONGEST.
4326
ecb956dd
PA
43272011-01-14 Pedro Alves <pedro@codesourcery.com>
4328
4329 * target.h (deprecated_child_ops): Delete declaration.
4330 * target.c (deprecated_child_ops): Delete definition.
4331
76adfcae
PA
43322011-01-14 Pedro Alves <pedro@codesourcery.com>
4333
4334 * Makefile.in (hpux-thread.o): Delete rule.
4335 * configure.ac: Don't check for HPUX DCE threads support.
4336 * configure, config.in: Regenerate.
4337 * hppa-hpux-nat.c (child_suppress_run): Delete.
4338 (hppa_hpux_child_can_run): Delete.
4339 (_initialize_hppa_hpux_nat): Don't override to_can_run.
4340 * hpux-thread.c: Delete.
4341
042e866e
JB
43422011-01-13 Joel Brobecker <brobecker@adacore.com>
4343
4344 * hpux-thread.c (hpux_pid_to_str): Delete.
4345
4ffa5a33
JB
43462011-01-13 Joel Brobecker <brobecker@adacore.com>
4347
4348 * ada-valprint.c (ada_emit_char): Remove strange code.
4349 Check that c is <= UCHAR_MAX before passing it to isascii.
4350 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
4351
de8fa76c
JB
43522011-01-13 Joel Brobecker <brobecker@adacore.com>
4353
4354 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
4355 to the case where instream is stdin.
4356
c4de7027
JB
43572011-01-13 Joel Brobecker <brobecker@adacore.com>
4358
4359 * ia64-tdep.h (struct regcache): Forward declare.
4360 (struct ia64_infcall_ops): New struct type.
4361 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
4362 and "infcall_ops".
4363 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
4364 Renames ia64_find_global_pointer.
4365 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4366 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4367 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4368 methods.
4369 (ia64_infcall_ops): New static global constant.
4370 (ia64_gdbarch_init): Set tdep->infcall_ops.
4371 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4372 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4373 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4374 (ia64_hpux_dummy_code): New static global constant.
4375 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4376 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4377 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4378 New function.
4379 (ia64_hpux_infcall_ops): New static global constant.
4380 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4381 for inferior function calls to work properly on ia64-hpux.
4382
77ca787b
JB
43832011-01-13 Joel Brobecker <brobecker@adacore.com>
4384
4385 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4386 * ia64-tdep.h (struct frame_info): forward declaration.
4387 (struct gdbarch_tdep): Add field size_of_register_frame.
4388 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4389 to determine the size of the register frame.
4390 (ia64_size_of_register_frame): New function.
4391 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4392 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4393 (IA64_HPUX_UREG_REASON): New macro.
4394 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4395 New functions.
4396 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4397 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4398 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4399 objects.
4400
92c9a463
JB
44012011-01-13 Joel Brobecker <brobecker@adacore.com>
4402
4403 Add support for ia64-hpux.
4404 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4405 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4406
4407 * configure.host: Add handling for ia64-hpux hosts. Add associated
4408 floatformats.
4409 * configure.tgt: Add handling for ia64-hpux targets.
4410 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4411 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4412 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4413
f688d93f
JB
44142011-01-13 Joel Brobecker <brobecker@adacore.com>
4415
4416 [ttrace] Compute thread list immediately after attach.
4417 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4418 New subprogram.
4419 (inf_ttrace_attach): Use it.
4420
1b89e62f
JB
44212011-01-13 Joel Brobecker <brobecker@adacore.com>
4422
4423 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4424 if we could not determine the frame's function address. Instead,
4425 use the frame's PC, and then continue.
4426
3e5e6e2a
JB
44272011-01-13 Joel Brobecker <brobecker@adacore.com>
4428
4429 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4430 not already defined.
4431
825d6d8a
JB
44322011-01-13 Joel Brobecker <brobecker@adacore.com>
4433
4434 * ia64-tdep.c (ia64_struct_type_p): New function.
4435 (ia64_extract_return_value): Handle integral values that are
4436 less than 8 bytes long.
4437 (ia64_push_dummy_call): Likewise.
4438
7458e667
JB
44392011-01-13 Joel Brobecker <brobecker@adacore.com>
4440
4441 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4442 floatformat_ia64_ext.
4443 (floatformat_ia64_ext_big): New static const.
4444 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4445
1b05df00
TT
44462011-01-12 Tom Tromey <tromey@redhat.com>
4447
4448 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4449 messages.
4450 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4451 (mi_cmd_thread_list_ids): Likewise.
4452 (mi_cmd_data_list_changed_registers): Likewise.
4453 (mi_cmd_data_list_register_values): Likewise.
4454 (mi_cmd_data_write_register_values): Likewise.
4455 (mi_cmd_data_evaluate_expression): Likewise.
4456 (mi_cmd_data_read_memory): Likewise.
4457 (mi_cmd_data_read_memory_bytes): Likewise.
4458 (mi_cmd_data_write_memory): Likewise.
4459 (mi_cmd_enable_timings): Likewise.
4460 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4461 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4462 (mi_cmd_var_delete): Likewise.
4463 (mi_cmd_var_set_format): Likewise.
4464 (mi_cmd_var_show_format): Likewise.
4465 (mi_cmd_var_info_num_children): Likewise.
4466 (mi_cmd_var_list_children): Likewise.
4467 (mi_cmd_var_info_type): Likewise.
4468 (mi_cmd_var_info_expression): Likewise.
4469 (mi_cmd_var_show_attributes): Likewise.
4470 (mi_cmd_var_assign): Likewise.
4471 (mi_cmd_var_update): Likewise.
4472 (mi_cmd_enable_pretty_printing): Likewise.
4473 (mi_cmd_var_set_update_range): Likewise.
4474 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4475 messages.
4476 (mi_cmd_target_file_put): Likewise.
4477 (mi_cmd_target_file_delete): Likewise.
4478 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4479 messages.
4480 (mi_cmd_stack_info_depth): Likewise.
4481 (mi_cmd_stack_list_locals): Likewise.
4482 (mi_cmd_stack_list_args): Likewise.
4483 (mi_cmd_stack_select_frame): Likewise.
4484 (mi_cmd_stack_select_frame): Likewise.
4485 (mi_cmd_stack_info_frame): Likewise.
4486 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4487 messages.
4488 (mi_cmd_file_list_exec_source_files): Likewise.
4489 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4490 (mi_cmd_env_cd): Likewise.
4491 (mi_cmd_env_path): Likewise.
4492 (mi_cmd_env_dir): Likewise.
4493 (mi_cmd_inferior_tty_show): Likewise.
4494 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4495 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4496 (mi_cmd_break_watch): Likewise.
4497
ad422571
TJB
44982011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4499
4500 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4501 (ppc_linux_insert_hw_breakpoint): Likewise.
4502 (ppc_linux_remove_hw_breakpoint): Likewise.
4503 (ppc_linux_insert_watchpoint): Likewise.
4504
c2ff108b
JK
45052011-01-12 Andrew Burgess <aburgess@broadcom.com>
4506 Jan Kratochvil <jan.kratochvil@redhat.com>
4507
4508 PR fortran/11104 and DWARF unbound arrays detection.
4509 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4510 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4511 unspecified upper bound.
4512 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4513 variables array_size_array, tmp_type and offset_item. New variable
4514 array. Remove call to f77_get_upperbound. New variables array_type
4515 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4516 the final call to deprecated_set_value_type.
4517
41e8491f
JK
45182011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4519
4520 Make value allocations more lazy.
4521 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4522 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 4523 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
4524 instead of allocate_value and set_value_lazy.
4525 * findvar.c (value_of_register_lazy): Likewise.
4526 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 4527 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
4528 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4529 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4530 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4531 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4532 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4533 the end, remove set_value_lazy there.
4534 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4535 instead of allocate_value and set_value_lazy when possible.
4536 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4537 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4538 of allocate_value and set_value_lazy.
4539 (value_from_contents_and_address): Use allocate_value_lazy instead of
4540 allocate_value and set_value_lazy when possible.
4541
b716877b
AB
45422011-01-12 Andrew Burgess <aburgess@broadcom.com>
4543
4544 * disasm.c (dump_insns): Support dumping opcodes for MI.
4545 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4546 dumping of instruction opcodes.
4547
d5ae309f
JB
45482011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4549
4550 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4551 appropiately.
4552
98871305
TT
45532011-01-11 Tom Tromey <tromey@redhat.com>
4554
4555 * thread.c (do_captured_thread_select): Emit newline before
4556 printing frame.
4557
c378eb4e
MS
45582011-01-11 Michael Snyder <msnyder@vmware.com>
4559
4560 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4561 * score-tdep.c: Ditto.
4562 * score-tdep.h: Ditto.
4563 * ser-base.c: Ditto.
4564 * ser-go32.c: Ditto.
4565 * serial.c: Ditto.
4566 * serial.h: Ditto.
4567 * ser-mingw.c: Ditto.
4568 * ser-pipe.c: Ditto.
4569 * ser-tcp.c: Ditto.
4570 * ser-unix.c: Ditto.
4571 * sh64-tdep.c: Ditto.
4572 * shnbsd-nat.c: Ditto.
4573 * sh-tdep.c: Ditto.
4574 * sh-tdep.h: Ditto.
4575 * solib.c: Ditto.
4576 * solib-darwin.c: Ditto.
4577 * solib-frv.c: Ditto.
4578 * solib.h: Ditto.
4579 * solib-irix.c: Ditto.
4580 * solib-osf.c: Ditto.
4581 * solib-pa64.c: Ditto.
4582 * solib-som.c: Ditto.
4583 * solib-spu.c: Ditto.
4584 * solib-sunos.c: Ditto.
4585 * solib-svr4.c: Ditto.
4586 * solist.h: Ditto.
4587 * sol-thread.c: Ditto.
4588 * somread.c: Ditto.
4589 * source.c: Ditto.
4590 * source.h: Ditto.
4591 * sparc64-linux-tdep.c: Ditto.
4592 * sparc64-tdep.c: Ditto.
4593 * sparc-linux-nat.c: Ditto.
4594 * sparc-linux-tdep.c: Ditto.
4595 * sparc-sol2-nat.c: Ditto.
4596 * sparc-sol2-tdep.c: Ditto.
4597 * sparc-tdep.c: Ditto.
4598 * sparc-tdep.h: Ditto.
4599 * spu-tdep.c: Ditto.
4600 * stabsread.c: Ditto.
4601 * stabsread.h: Ditto.
4602 * stack.c: Ditto.
4603 * symfile.c: Ditto.
4604 * symfile.h: Ditto.
4605 * symmisc.c: Ditto.
4606 * symtab.c: Ditto.
4607 * symtab.h: Ditto.
4608 * target.c: Ditto.
4609 * target-descriptions.c: Ditto.
4610 * target-descriptions.h: Ditto.
4611 * target.h: Ditto.
4612 * target-memory.c: Ditto.
4613 * terminal.h: Ditto.
4614 * thread.c: Ditto.
4615 * top.c: Ditto.
4616 * tracepoint.c: Ditto.
4617 * tracepoint.h: Ditto.
4618 * trad-frame.h: Ditto.
4619 * typeprint.c: Ditto.
4620
581e13c1
MS
46212011-01-11 Michael Snyder <msnyder@vmware.com>
4622
4623 * ui-file.c: Comment cleanup, mostly periods and spaces.
4624 * ui-file.h: Ditto.
4625 * ui-out.c: Ditto.
4626 * ui-out.h: Ditto.
4627 * utils.c: Ditto.
4628 * v850-tdep.c: Ditto.
4629 * valarith.c: Ditto.
4630 * valops.c: Ditto.
4631 * valprint.c: Ditto.
4632 * valprint.h: Ditto.
4633 * value.c: Ditto.
4634 * value.h: Ditto.
4635 * varobj.c: Ditto.
4636 * varobj.h: Ditto.
4637 * vax-tdep.c: Ditto.
4638 * vec.c: Ditto.
4639 * vec.h: Ditto.
4640 * version.h: Ditto.
4641 * windows-nat.c: Ditto.
4642 * windows-tdep.c: Ditto.
4643 * xcoffread.c: Ditto.
4644 * xcoffsolib.c: Ditto.
4645 * xml-support.c: Ditto.
4646 * xstormy16-tdep.c: Ditto.
4647 * xtensa-tdep.c: Ditto.
4648 * xtensa-tdep.h: Ditto.
4649
90e4670f
TJB
46502011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4651
4652 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4653 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4654
e09342b5
TJB
46552011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4656 Thiago Jung Bauermann <bauerman@br.ibm.com>
4657
4658 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 4659 * breakpoint.h
e09342b5
TJB
4660 (struct breakpoint_ops) <resources_needed>: New method.
4661 Initialize to NULL in all existing breakpoint_ops instances.
4662 (struct breakpoint) <exact>: New field.
4663 (target_exact_watchpoints): Declare external global.
4664 * breakpoint.c (target_exact_watchpoints): New global flag.
4665 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4666 b->enable_state to bp_enabled before calling
4667 hw_watchpoint_used_count.
4668 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4669 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4670 if available.
4671 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4672 if the watchpoint is exact.
4673 (resources_needed_watchpoint): New function.
4674 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4675 (watch_command_1): Set b->exact if the user asked for an exact
4676 watchpoint and one can be set.
4677 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4678 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4679 the user asks for an exact watchpoint and one can be set. Return
4680 number of needed debug registers to watch the expression.
4681 * gdbtypes.c (is_scalar_type): New function, based on
4682 valprint.c:scalar_type_p.
4683 (is_scalar_type_recursive): New function.
4684 * gdbtypes.h (is_scalar_type_recursive): Declare.
4685 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4686 handle regions when ranged watchpoints are available.
4687 (create_watchpoint_request): New function.
4688 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4689 create_watchpoint_request.
4690 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4691 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4692 `set powerpc' and `show powerpc' commands.
4693 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4694 Mention documentation comment in the target macro.
4695 (target_region_ok_for_hw_watchpoint): Document return value.
4696
9fa40276
TJB
46972011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4698
4699 * breakpoint.c (update_watchpoint): Decide on using a software or
4700 hardware watchpoint after the bp_locations are created.
4701
77b06cd7
TJB
47022010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4703
4704 Convert hardware watchpoints to use breakpoint_ops.
4705 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4706 <insert_location>: ... this. Return int instead of void.
4707 Accept pointer to struct bp_location instead of pointer to
4708 struct breakpoint. Adapt all implementations.
f2eb0bc8 4709 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
4710 <remove_location>: ... this. Accept pointer to struct bp_location
4711 instead of pointer to struct breakpoint. Adapt all implementations.
4712 * breakpoint.c (insert_catchpoint): Delete function.
4713 (insert_bp_location): Call the watchpoint or catchpoint's
4714 breakpoint_ops.insert method.
4715 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4716 breakpoint_ops.remove method.
4717 (insert_watchpoint, remove_watchpoint): New functions.
4718 (watchpoint_breakpoint_ops): New structure.
4719 (watch_command_1): Initialize the OPS field.
4720 * inf-child.c (inf_child_insert_fork_catchpoint)
4721 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4722 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4723 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4724 Delete functions.
4725 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4726 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4727 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4728 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4729 * target.c (update_current_target): Change default implementation of
4730 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4731 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4732 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4733 to_set_syscall_catchpoint to return_one.
4734 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4735 (debug_to_insert_exec_catchpoint): Report return value.
4736 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4737 (to_insert_exec_catchpoint): Change declaration to return int instead
4738 of void.
4739
9b20d036
MS
47402011-01-11 Michael Snyder <msnyder@vmware.com>
4741
4742 * arm-tdep.c: Internationalization.
4743 * c-lang.c: Ditto.
4744 * charset.c: Ditto.
4745 * fork-child.c: Ditto.
4746 * nto-procfs.c: Ditto.
4747 * ppc-sysv-tdep.c: Ditto.
4748 * procfs.c: Ditto.
4749 * remote-mips.c: Ditto.
4750 * remote.c: Ditto.
4751 * rs6000-nat.c: Ditto.
4752 * rs6000-tdep.c: Ditto.
4753 * target.c: Ditto.
4754 * valops.c: Ditto.
4755 * value.c: Ditto.
4756 * xml-support.c: Ditto.
4757 * mi/mi-cmd-break.c: Ditto.
4758 * mi/mi-cmd-var.c: Ditto.
4759 * mi/mi-interp.c: Ditto.
4760 * mi/mi-main.c: Ditto.
4761
dae477fe
AB
47622011-01-11 Andrew Burgess <aburgess@broadcom.com>
4763
4764 * remote-sim.c (gdbsim_store_register): Update API to
4765 sim_store_register to check more error conditions.
4766
0df8b418
MS
47672011-01-10 Michael Snyder <msnyder@vmware.com>
4768
4769 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4770 * nto-tdep.c: Ditto.
4771 * nto-tdep.h: Ditto.
4772 * objc-exp.y: Ditto.
4773 * objc-lang.c: Ditto.
4774 * objfiles.c: Ditto.
4775 * objfiles.h: Ditto.
4776 * observer.c: Ditto.
4777 * opencl-lang.c: Ditto.
4778 * osabi.c: Ditto.
4779 * parse.c: Ditto.
4780 * parser-defs.h: Ditto.
4781 * p-exp.y: Ditto.
4782 * p-lang.c: Ditto.
4783 * posix-hdep.c: Ditto.
4784 * ppcbug-rom.c: Ditto.
4785 * ppc-linux-nat.c: Ditto.
4786 * ppc-linux-tdep.c: Ditto.
4787 * ppc-linux-tdep.h: Ditto.
4788 * ppcnbsd-tdep.c: Ditto.
4789 * ppcobsd-tdep.c: Ditto.
4790 * ppcobsd-tdep.h: Ditto.
4791 * ppc-sysv-tdep.c: Ditto.
4792 * ppc-tdep.h: Ditto.
4793 * printcmd.c: Ditto.
4794 * proc-abi.c: Ditto.
4795 * proc-flags.c: Ditto.
4796 * procfs.c: Ditto.
4797 * proc-utils.h: Ditto.
4798 * progspace.h: Ditto.
4799 * prologue-value.c: Ditto.
4800 * prologue-value.h: Ditto.
4801 * psympriv.h: Ditto.
4802 * psymtab.c: Ditto.
4803 * p-typeprint.c: Ditto.
4804 * p-valprint.c: Ditto.
4805 * ravenscar-sparc-thread.c: Ditto.
4806 * ravenscar-thread.c: Ditto.
4807 * ravenscar-thread.h: Ditto.
4808 * record.c: Ditto.
4809 * regcache.c: Ditto.
4810 * regcache.h: Ditto.
4811 * remote.c: Ditto.
4812 * remote-fileio.c: Ditto.
4813 * remote-fileio.h: Ditto.
4814 * remote.h: Ditto.
4815 * remote-m32r-sdi.c: Ditto.
4816 * remote-mips.c: Ditto.
4817 * remote-sim.c: Ditto.
4818 * rs6000-aix-tdep.c: Ditto.
4819 * rs6000-nat.c: Ditto.
4820 * rs6000-tdep.c: Ditto.
4821
0d7a18f7
MS
48222011-01-10 Michael Snyder <msnyder@vmware.com>
4823
4824 * charset.c (validate): Internationalization.
4825 * coffread.c (read_one_sym): Ditto.
4826 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4827 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4828 * inflow.c (new_tty): Ditto.
4829 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4830 * m32c-tdep.c (m32c_return_value): Ditto.
4831 * mep-tdep.c (mep_store_return_value): Ditto.
4832 * score-tdep.c (score7_fetch_insn): Ditto.
4833 * ser-mingw.c (pipe_windows_open): Ditto.
4834 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4835 * spu-tdep.c (spu_register_type): Ditto.
4836 * tracepoint.c (trace_find_command): Ditto.
4837 * valarith.c (value_pos): Ditto.
4838
9a153e0b
JB
48392011-01-10 Joel Brobecker <brobecker@adacore.com>
4840
4841 * ada-valprint.c (printstr): Minor comment reformatting.
4842
35ecd2d6
MS
48432011-01-08 Michael Snyder <msnyder@vmware.com>
4844
4845 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4846 markup.
4847
1777feb0
MS
48482011-01-08 Michael Snyder <msnyder@vmware.com>
4849
4850 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4851 * hppa-hpux-tdep.c: Ditto.
4852 * hppa-linux-nat.c: Ditto.
4853 * hppa-linux-tdep.c: Ditto.
4854 * hppanbsd-tdep.c: Ditto.
4855 * hppa-tdep.c: Ditto.
4856 * hppa-tdep.h: Ditto.
4857 * hpux-thread.c: Ditto.
4858 * i386-cygwin-tdep.c: Ditto.
4859 * i386-darwin-nat.c: Ditto.
4860 * i386gnu-nat.c: Ditto.
4861 * i386-linux-nat.c: Ditto.
4862 * i386-linux-tdep.c: Ditto.
4863 * i386-nat.c: Ditto.
4864 * i386-nat.h: Ditto.
4865 * i386nbsd-tdep.c: Ditto.
4866 * i386-sol2-nat.c: Ditto.
4867 * i386-stub.c: Ditto.
4868 * i386-tdep.c: Ditto.
4869 * i386-tdep.h: Ditto.
4870 * i387-tdep.c: Ditto.
4871 * ia64-linux-nat.c: Ditto.
4872 * ia64-linux-tdep.c: Ditto.
4873 * ia64-tdep.c: Ditto.
4874 * infcall.c: Ditto.
4875 * infcall.h: Ditto.
4876 * infcmd.c: Ditto.
4877 * inferior.c: Ditto.
4878 * inferior.h: Ditto.
4879 * infloop.c: Ditto.
4880 * inflow.c: Ditto.
4881 * infrun.c: Ditto.
4882 * interps.c: Ditto.
4883 * interps.h: Ditto.
4884 * iq2000-tdep.c: Ditto.
4885 * irix5-nat.c: Ditto.
4886 * jit.c: Ditto.
4887 * jit.h: Ditto.
4888 * jv-exp.y: Ditto.
4889 * jv-lang.c: Ditto.
4890 * jv-lang.h: Ditto.
4891 * jv-typeprint.c: Ditto.
4892 * jv-valprint.c: Ditto.
4893 * language.c: Ditto.
4894 * language.h: Ditto.
4895 * linespec.c: Ditto.
4896 * linux-fork.c: Ditto.
4897 * linux-nat.c: Ditto.
4898 * linux-thread-db.c: Ditto.
4899 * lm32-tdep.c: Ditto.
4900
025bb325
MS
49012011-01-08 Michael Snyder <msnyder@vmware.com>
4902
4903 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4904 * m2-lang.c: Ditto.
4905 * m2-typeprint.c: Ditto.
4906 * m2-valprint.c: Ditto.
4907 * m32c-tdep.c: Ditto.
4908 * m32r-linux-nat.c: Ditto.
4909 * m32r-rom.c: Ditto.
4910 * m32r-tdep.c: Ditto.
4911 * m32r-tdep.h: Ditto.
4912 * m68hc11-tdep.c: Ditto.
4913 * m58klinux-nat.c: Ditto.
4914 * m68k-tdep.c: Ditto.
4915 * m88k-tdep.c: Ditto.
4916 * m88k-tdep.h: Ditto.
4917 * machoread.c: Ditto.
4918 * macrocmd.c: Ditto.
4919 * macroexp.c: Ditto.
4920 * macrotab.c: Ditto.
4921 * main.c: Ditto.
4922 * maint.c: Ditto.
4923 * mdebugread.c: Ditto.
4924 * mdebugread.h: Ditto.
4925 * memattr.c: Ditto.
4926 * memattr.h: Ditto.
4927 * memory-map.h: Ditto.
4928 * mep-tdep.c: Ditto.
4929 * microblaze-rom.c: Ditto.
4930 * microblaze-tdep.c: Ditto.
4931 * minsyms.c: Ditto.
4932 * mips-irix-tdep.c: Ditto.
4933 * mips-linux-nat.c: Ditto.
4934 * mips-linux-tdep.c: Ditto.
4935 * mips-linux-tdep.h: Ditto.
4936 * mipsnbsd-nat.c: Ditto.
4937 * mipsnbsd-tdep.c: Ditto.
4938 * mipsread.c: Ditto.
4939 * mips-tdep.c: Ditto.
4940 * mips-tdep.h: Ditto.
4941 * mn10300-linux-tdep.c: Ditto.
4942 * mn10300-tdep.c: Ditto.
4943 * mn10300-tdep.h: Ditto.
4944 * monitor.c: Ditto.
4945 * monitor.h: Ditto.
4946 * moxie-tdep.c: Ditto.
4947 * moxie-tdep.h: Ditto.
4948 * mt-tdep.c: Ditto.
4949
1642781b
MF
49502011-01-08 Mike Frysinger <vapier@gentoo.org>
4951
4952 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4953
394b0adb
JB
49542011-01-08 Robert Millan <rmh@gnu.org>
4955
4956 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4957
b670013c
MS
49582011-01-07 Michael Snyder <msnyder@vmware.com>
4959
4960 * charset.c (_initialize_charset): Fix typo in string.
4961
a743e542
MS
49622011-01-07 Michael Snyder <msnyder@vmware.com>
4963
4964 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4965 for i18n.
f2eb0bc8 4966 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
4967 Split line so that operator goes to beginning of line.
4968 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4969 assignment out of if statement.
4970
0963b4bd
MS
49712011-01-07 Michael Snyder <msnyder@vmware.com>
4972
4973 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4974 * ada-lang.h: Ditto.
4975 * ada-tasks.c: Ditto.
4976 * ada-valprint.c: Ditto.
4977 * aix-threads.c: Ditto.
4978 * alpha-linux-nat.c: Ditto.
4979 * alpha-linux-tdep.c: Ditto.
4980 * alpha-mdebug-tdep.c: Ditto.
4981 * alpha-nat.c: Ditto.
4982 * alpha-osf1-tdep.c: Ditto.
4983 * alpha-tdep.c: Ditto.
4984 * alphabsd-nat.c: Ditto.
4985 * alphabsd-tdep.c: Ditto.
4986 * amd64-darwin-tdep.c: Ditto.
4987 * amd64-linux-nat.c: Ditto.
4988 * amd64-linux-tdep.c: Ditto.
4989 * amd64-sol2-tdep.c: Ditto.
4990 * amd64-tdep.c: Ditto.
4991 * amd64-fbsd-tdep.c: Ditto.
4992 * amd64-nbsd-tdep.c: Ditto.
4993 * amd64-obsd-tdep.c: Ditto.
4994 * amd64-linux-nat.c: Ditto.
4995 * amd64-linux-tdep.c: Ditto.
4996 * arm-tdep.c: Ditto.
4997 * arm-tdep.h: Ditto.
4998 * armnbsd-nat.c: Ditto.
4999 * avr-tdep.c: Ditto.
5000 * bfin-tdep.c: Ditto.
5001 * bsd-kvm.c: Ditto.
5002 * c-typeprintc: Ditto.
5003 * c-valprint.c: Ditto.
5004 * coff-pe-read.h: Ditto.
5005 * coffreead.c: Ditto.
5006 * cris-tdep.c: Ditto.
5007 * d-lang.c: Ditto.
5008 * darwin-nat-info.c: Ditto.
5009 * darwin-nat.c: Ditto.
5010 * dbug-rom.c: Ditto.
5011 * dbxread.c: Ditto.
5012 * dcache.c: Ditto.
5013 * dcache.h: Ditto.
5014 * dec-thread.c: Ditto.
5015 * defs.h: Ditto.
5016 * demangle.c: Ditto.
5017 * dicos-tdep.c: Ditto.
5018 * dictionary.c: Ditto.
5019 * dictionary.h: Ditto.
5020 * dink32-rom.c: Ditto.
5021 * disasm.c: Ditto.
5022 * doublest.c: Ditto.
5023 * dsrec.c: Ditto.
5024 * dummy-frame.c: Ditto.
5025 * dwarf2-frame.c: Ditto.
5026 * dwarf2expr.c: Ditto.
5027 * dwarf2loc.c: Ditto.
5028 * dwarf2read.c: Ditto.
5029 * elfread.c: Ditto.
5030 * environ.c: Ditto.
5031 * eval.c: Ditto.
5032 * event-top.h: Ditto.
5033 * exceptions.c: Ditto.
5034 * exceptions.h: Ditto.
5035 * exec.c: Ditto.
5036 * expprint.c: Ditto.
5037 * expression.h: Ditto.
5038 * f-exp.y: Ditto.
5039 * f-lang.c: Ditto.
5040 * f-lang.h: Ditto.
5041 * f-typeprint.c: Ditto.
5042 * f-valprint.c: Ditto.
5043 * fbsd-nat.c: Ditto.
5044 * findvar.c: Ditto.
5045 * fork-child.c: Ditto.
5046 * frame.c: Ditto.
5047 * frame.h: Ditto.
5048 * frv-linux-tdep.c: Ditto.
5049 * frv-tdep.c: Ditto.
5050 * gcore.c: Ditto.
5051 * gdb-stabs.h: Ditto.
5052 * gdb_assert.h: Ditto.
5053 * gdb_string.h: Ditto.
5054 * gdb_thread_db.h: Ditto.
5055 * gdb_wait.h: Ditto.
5056 * gdbarch.sh: Ditto.
5057 * gdbcore.h: Ditto.
5058 * gdbthread.h: Ditto.
5059 * gdbtypes.c: Ditto.
5060 * gdbtypes.h: Ditto.
5061 * gnu-nat.c: Ditto.
5062 * gnu-nat.h: Ditto.
5063 * gnu-v2-abi.c: Ditto.
5064 * gnu-v3-abi.c: Ditto.
5065 * go32-nat.c: Ditto.
5066 * gdbarch.c: Regenerate.
5067 * gdbarch.h: Regenerate.
5068
ac74f770
MS
50692011-01-07 Michael Snyder <msnyder@vmware.com>
5070
5071 * ax-gdb.c: Adjust some long output strings.
5072 * breakpoint.c: Ditto.
5073 * charset.c: Ditto.
5074 * cp-abi.c: Ditto.
5075 * infcall.c: Ditto.
5076 * infrun.c: Ditto.
5077 * linux-nat.c: Ditto.
5078 * solib-pa64.c: Ditto.
5079 * solib-som.c: Ditto.
5080
d8e22779
TT
50812011-01-06 Tom Tromey <tromey@redhat.com>
5082
5083 PR python/12367:
5084 * NEWS: Add item.
5085 * python/python.c (GdbMethods): Add "newest_frame" method.
5086 * python/python-internal.h (gdbpy_newest_frame): Declare.
5087 * python/py-frame.c (gdbpy_newest_frame): New function.
5088
a255712f
PP
50892010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
5090
5091 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
5092 * jit.c (jit_debug): New variable.
5093 (show_jit_debug): New function.
5094 (struct target_buffer): Use ULONGEST.
5095 (bfd_open_from_target_memory): Likewise.
5096 (jit_register_code, jit_inferior_init): Add debug output.
5097 (_initialize_jit): Register "debug jit" command.
5098
ccfc3d6e
TT
50992011-01-06 Tom Tromey <tromey@redhat.com>
5100
5101 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
5102 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
5103 and ARCH_FRAME.
5104
57126e4a
TT
51052011-01-06 Tom Tromey <tromey@redhat.com>
5106
5107 * python/py-frame.c (frapy_block): Use get_frame_block.
5108
16dfc9ce
JB
51092011-01-06 Joel Brobecker <brobecker@adacore.com>
5110
5111 Do not stop on SIGPRIO signals by default
5112 * infrun.c (_initialize_infrun): Unset signal_stop and
5113 signal_print for TARGET_SIGNAL_PRIO.
5114
b1ce2347
JB
51152011-01-06 Joel Brobecker <brobecker@adacore.com>
5116
5117 * ada-tasks.c: Fix style violation in comment.
5118
8f7e195f
JB
51192011-01-06 Joel Brobecker <brobecker@adacore.com>
5120
5121 * linespec.c (decode_compound, find_method): Remove trailing \n
5122 at end of error string.
5123 * solib-irix.c (irix_current_sos): Likewise.
5124 * varobj.c (uninstall_variable): Likewise.
5125
e9bdf92c
JB
51262011-01-06 Joel Brobecker <brobecker@adacore.com>
5127
5128 * copyright.py: New script.
5129 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
5130 Launch emacs without exec'ing. Call copyright.py afterwards.
5131
3e43a32a
MS
51322011-01-05 Michael Snyder <msnyder@vmware.com>
5133
5134 * addrmap.c: Shorten lines of >= 80 columns.
5135 * arch-utils.c: Ditto.
5136 * arch-utils.h: Ditto.
5137 * ax-gdb.c: Ditto.
5138 * ax-general.c: Ditto.
5139 * bcache.c: Ditto.
5140 * blockframe.c: Ditto.
5141 * breakpoint.c: Ditto.
5142 * buildsym.c: Ditto.
5143 * c-lang.c: Ditto.
5144 * c-typeprint.c: Ditto.
5145 * charset.c: Ditto.
5146 * coffread.c: Ditto.
5147 * command.h: Ditto.
5148 * corelow.c: Ditto.
5149 * cp-abi.c: Ditto.
5150 * cp-namespace.c: Ditto.
5151 * cp-support.c: Ditto.
5152 * dbug-rom.c: Ditto.
5153 * dbxread.c: Ditto.
5154 * defs.h: Ditto.
5155 * dfp.c: Ditto.
5156 * dfp.h: Ditto.
5157 * dictionary.c: Ditto.
5158 * disasm.c: Ditto.
5159 * doublest.c: Ditto.
5160 * dwarf2-frame.c: Ditto.
5161 * dwarf2expr.c: Ditto.
5162 * dwarf2loc.c: Ditto.
5163 * dwarf2read.c: Ditto.
5164 * elfread.c: Ditto.
5165 * eval.c: Ditto.
5166 * event-loop.c: Ditto.
5167 * event-loop.h: Ditto.
5168 * exceptions.h: Ditto.
5169 * exec.c: Ditto.
5170 * expprint.c: Ditto.
5171 * expression.h: Ditto.
5172 * f-lang.c: Ditto.
5173 * f-valprint.c: Ditto.
5174 * findcmd.c: Ditto.
5175 * frame-base.c: Ditto.
5176 * frame-unwind.c: Ditto.
5177 * frame-unwind.h: Ditto.
5178 * frame.c: Ditto.
5179 * frame.h: Ditto.
5180 * gcore.c: Ditto.
5181 * gdb-stabs.h: Ditto.
5182 * gdb_assert.h: Ditto.
5183 * gdb_dirent.h: Ditto.
5184 * gdb_obstack.h: Ditto.
5185 * gdbcore.h: Ditto.
5186 * gdbtypes.c: Ditto.
5187 * gdbtypes.h: Ditto.
5188 * inf-ttrace.c: Ditto.
5189 * infcall.c: Ditto.
5190 * infcmd.c: Ditto.
5191 * inflow.c: Ditto.
5192 * infrun.c: Ditto.
5193 * inline-frame.h: Ditto.
5194 * language.c: Ditto.
5195 * language.h: Ditto.
5196 * libunwind-frame.c: Ditto.
5197 * libunwind-frame.h: Ditto.
5198 * linespec.c: Ditto.
5199 * linux-nat.c: Ditto.
5200 * linux-nat.h: Ditto.
5201 * linux-thread-db.c: Ditto.
5202 * machoread.c: Ditto.
5203 * macroexp.c: Ditto.
5204 * macrotab.c: Ditto.
5205 * main.c: Ditto.
5206 * maint.c: Ditto.
5207 * mdebugread.c: Ditto.
5208 * memattr.c: Ditto.
5209 * minsyms.c: Ditto.
5210 * monitor.c: Ditto.
5211 * monitor.h: Ditto.
5212 * objfiles.c: Ditto.
5213 * objfiles.h: Ditto.
5214 * osabi.c: Ditto.
5215 * p-typeprint.c: Ditto.
5216 * p-valprint.c: Ditto.
5217 * parse.c: Ditto.
5218 * printcmd.c: Ditto.
5219 * proc-events.c: Ditto.
5220 * procfs.c: Ditto.
5221 * progspace.c: Ditto.
5222 * progspace.h: Ditto.
5223 * psympriv.h: Ditto.
5224 * psymtab.c: Ditto.
5225 * record.c: Ditto.
5226 * regcache.c: Ditto.
5227 * regcache.h: Ditto.
5228 * remote-fileio.c: Ditto.
5229 * remote.c: Ditto.
5230 * ser-mingw.c: Ditto.
5231 * ser-tcp.c: Ditto.
5232 * ser-unix.c: Ditto.
5233 * serial.c: Ditto.
5234 * serial.h: Ditto.
5235 * solib-frv.c: Ditto.
5236 * solib-irix.c: Ditto.
5237 * solib-osf.c: Ditto.
5238 * solib-pa64.c: Ditto.
5239 * solib-som.c: Ditto.
5240 * solib-sunos.c: Ditto.
5241 * solib-svr4.c: Ditto.
5242 * solib-target.c: Ditto.
5243 * solib.c: Ditto.
5244 * somread.c: Ditto.
5245 * source.c: Ditto.
5246 * stabsread.c: Ditto.
5247 * stabsread.c: Ditto.
5248 * stack.c: Ditto.
5249 * stack.h: Ditto.
5250 * symfile-mem.c: Ditto.
5251 * symfile.c: Ditto.
5252 * symfile.h: Ditto.
5253 * symmisc.c: Ditto.
5254 * symtab.c: Ditto.
5255 * symtab.h: Ditto.
5256 * target-descriptions.c: Ditto.
5257 * target-memory.c: Ditto.
5258 * target.c: Ditto.
5259 * target.h: Ditto.
5260 * terminal.h: Ditto.
5261 * thread.c: Ditto.
5262 * top.c: Ditto.
5263 * tracepoint.c: Ditto.
5264 * tracepoint.h: Ditto.
5265 * ui-file.c: Ditto.
5266 * ui-file.h: Ditto.
5267 * ui-out.h: Ditto.
5268 * user-regs.c: Ditto.
5269 * user-regs.h: Ditto.
5270 * utils.c: Ditto.
5271 * valarith.c: Ditto.
5272 * valops.c: Ditto.
5273 * valprint.c: Ditto.
5274 * valprint.h: Ditto.
5275 * value.c: Ditto.
5276 * varobj.c: Ditto.
5277 * varobj.h: Ditto.
5278 * vec.h: Ditto.
5279 * xcoffread.c: Ditto.
5280 * xcoffsolib.c: Ditto.
5281 * xcoffsolib.h: Ditto.
5282 * xml-syscall.c: Ditto.
5283 * xml-tdesc.c: Ditto.
5284
9a2b4c1b
MS
52852011-01-05 Michael Snyder <msnyder@vmware.com>
5286
5287 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
5288 * cli/cli-decode.c: Ditto.
5289 * cli/cli-dump.c: Ditto.
5290 * cli/cli-logging.c: Ditto.
5291 * cli/cli-script.c: Ditto.
5292 * cli/cli-setshow.c: Ditto.
5293 * common/signals.c: Ditto.
5294 * mi/mi-cmd-break.c: Ditto.
5295 * mi/mi-cmd-disas.c: Ditto.
5296 * mi/mi-cmd-stack.c: Ditto.
5297 * mi/mi-cmd-var.c: Ditto.
5298 * mi/mi-cmds.c: Ditto.
5299 * mi/mi-common.h: Ditto.
5300 * mi/mi-console.c: Ditto.
5301 * mi/mi-interp.c: Ditto.
5302 * mi/mi-main.c: Ditto.
5303 * osf-share/cma_attr.c: Ditto.
5304 * osf-share/cma_deb_core.h: Ditto.
5305 * osf-share/cma_debug_client.h: Ditto.
5306 * osf-share/cma_handle.h: Ditto.
5307 * osf-share/cma_mutex.h: Ditto.
5308 * osf-share/cma_stack_int.h: Ditto.
5309 * osf-share/cma_tcb_defs.h: Ditto.
5310 * python/py-auto-load.c: Ditto.
5311 * python/py-breakpoint.c: Ditto.
5312 * python/py-cmd.c: Ditto.
5313 * python/py-frame.c: Ditto.
5314 * python/py-objfile.c: Ditto.
5315 * python/py-param.c: Ditto.
5316 * python/py-progspace.c: Ditto.
5317 * python/py-symbol.c: Ditto.
5318 * python/py-value.c: Ditto.
5319 * python/python-internal.h: Ditto.
5320 * python/python.c: Ditto.
5321 * tui/tui-data.c: Ditto.
5322 * tui/tui-disasm.c: Ditto.
5323 * tui/tui-hooks.c: Ditto.
5324 * tui/tui-io.c: Ditto.
5325 * tui/tui-layout.c: Ditto.
5326 * tui/tui-regs.c: Ditto.
5327 * tui/tui-source.c: Ditto.
5328 * tui/tui-stack.c: Ditto.
5329 * tui/tui-win.c: Ditto.
5330 * tui/tui-windata.c: Ditto.
5331 * tui/tui-winsource.c: Ditto.
5332
44944448
JB
53332011-01-05 Joel Brobecker <brobecker@adacore.com>
5334
5335 * configure.ac, gdb.1: Copyright year update.
5336
ebedcab5
JK
53372011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5338
5339 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
5340 this_pc_in_block, morestack_msym and morestack_name. Check for
5341 "__morestack" minimal symbol there.
5342
e5cc9f32
JB
53432011-01-03 Joel Brobecker <brobecker@adacore.com>
5344
5345 * symfile.c (find_sym_fns): Add call to dont_repeat.
5346
7b6bb8da
JB
53472011-01-01 Joel Brobecker <brobecker@adacore.com>
5348
5349 Copyright year update in most files (performed by copyright.sh).
5350
71ce852c
JB
53512011-01-01 Joel Brobecker <brobecker@adacore.com>
5352
5353 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 5354
c3c1ebe8 5355For older changes see ChangeLog-2010.
c906108c
SS
5356\f
5357Local Variables:
5358mode: change-log
5359left-margin: 8
5360fill-column: 74
5361version-control: never
57da7796 5362coding: utf-8
c906108c 5363End: