gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
254f582e
JK
12011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
4 even if !TARGET_HAS_EXECUTION.
5
63524580
JK
62011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7
8 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
9 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
10 bfd_get_synthetic_symtab.
11 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
12 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
13 parameter parent, remove the call to add_separate_debug_objfile.
14 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
15 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
16 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
17 parent, new comment for it, call add_separate_debug_objfile for it.
18 (symbol_file_add_separate): Pass objfile as the parameter parent,
19 remove the call to add_separate_debug_objfile.
20 (symbol_file_add_from_bfd): New parameter parent, pass it.
21 (symbol_file_add): Pass NULL to the new parameter parent.
22 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
23
90359a16
JK
242011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
25
26 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
27 BSF_SYNTHETIC.
28
626e7282
JK
292011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
30
31 Fix Python access to inlined frames.
32 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
33 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
34
cf31e6f9
TT
352011-04-15 Tom Tromey <tromey@redhat.com>
36
37 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
38
c8d895f1
GB
392011-04-15 Gary Benson <gbenson@redhat.com>
40
41 * MAINTAINERS: Add myself to write-after-approval section.
42
56a9aa1d
MF
432011-04-14 Mike Frysinger <vapier@gentoo.org>
44
45 * remote-sim.c (sim_command_completer): New function.
46 (_initialize_remote_sim): Set completer to sim_command_completer.
47
ba770c9c
TJB
482011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
49
50 * breakpoint.c (print_exception_catchpoint): Rename to ...
51 (print_it_exception_catchpoint): ... this.
52 (gnu_v3_exception_catchpoint_ops): Update with new name
53 for print_it_exception_catchpoint.
54
51bf2553
EBM
552011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
56
57 * MAINTAINERS: Add myself for write after approval privileges.
58
d242658c
MP
592011-04-13 Marek Polacek <mpolacek@redhat.com>
60
61 * MAINTAINERS: Add myself as a write-after-approval maintainer.
62
4a4106ca
TJB
632011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
64
65 * breakpoint.c (watch_command_1): Remove colon from exp_string.
66
26063d49
TJB
672011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
68
69 * breakpoint.c (save_breakpoints): Verify whether
70 breakpoint_ops.print_recreate is defined before calling it.
71
7782b183
GB
722011-04-11 Gary Benson <gbenson@redhat.com>
73
74 Fix failure with --enable-maintainer-mode.
75 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
76
e8930875
JK
772011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
78
79 Code cleanup.
80 * symtab.c (search_symbols): Reorder the KIND description in the
81 function comment. Remove the unused 4th element of types, types2,
82 types3 and types4. New gdb_assert on KIND.
83 (symtab_symbol_info): Remove the unused 4th element of classnames.
84 New gdb_assert on KIND.
85 * symtab.h (enum search_domain): New warning in the enum comment.
86 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
87 TYPES_DOMAIN.
88
b4f2f049
JK
892011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
90
91 Fix crash of gdb save-index on a STABS file.
92 * dwarf2read.c (write_psymtabs_to_index): Return also on no
93 PSYMTABS_ADDRMAP.
94
60d5a603
JK
952011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
96
97 Fix DW_AT_accessibility compatibility with gcc-4.6+.
98 * dwarf2read.c: Include ctype.h.
99 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
100 functions.
101 (dwarf2_add_field): Fix new_field->accessibility by calling
102 dwarf2_default_access_attribute. Restructure setting accessibility
103 vs. virtuality.
104 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
105 is_private and is_protected by calling
106 dwarf2_default_access_attribute.
107
e0f68161
KB
1082011-04-08 Kevin Buettner <kevinb@redhat.com>
109
110 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
111 to the initialization.
112
2e1aae43
SE
1132011-04-08 Steve Ellcey <sje@cup.hp.com>
114
115 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
116 initalization.
117
c6ca3dab
PM
1182011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
119
120 Remove support for old Cygwin 1.5 versions.
121 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
122 function on old Cygwin version.
123 * windows-nat.c: Remove cygwin version check and always define
124 __USEWIDE for Cygwin compilation.
125
bd18283a
YQ
1262011-04-07 Yao Qi <yao@codesourcery.com>
127
128 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
129 and TO.
130 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
131 (arm_copy_svc): Remove parameters INSN and TO.
132 (decode_svc_copro): Update caller.
133 * arm-tdep.h (struct displaced_step_closure): Remove parameters
134 from function pointer `copy_svc_os'.
135
8c8dba6d
YQ
1362011-04-07 Yao Qi <yao@codesourcery.com>
137
138 * arm-tdep.c (cleanup_branch): Set a correct return address in
139 LR for ARM and Thumb.
140
59d7bcaf
JK
1412011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
142
143 Code cleanup.
144 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
145 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
146 in the function comment, a new note on values compatibility.
147 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
148 * symtab.h (SYMBOL_HASH_NEXT): New.
149
e7db58ea
TJB
1502011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
151
152 * ppc-linux-nat.c (check_condition): Add len output parameter.
153 Set it based on the memory region referenced in the condition
154 expression. Update all callers.
155
9f743ef6
JK
1562011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
157
158 Fix crash regression on systems featuring .gdb_index.
159 * objfiles.c (free_objfile): Move the
160 forget_cached_source_info_for_objfile call earlier. Comment it.
161 Extend the comment for objfile_free_data.
162
9182c5bc
JK
1632011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
164
165 Fix regression of displaying the debug format.
166 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
167 subfile.
168
04bd08de
TT
1692011-04-04 Tom Tromey <tromey@redhat.com>
170
171 * cli/cli-interp.c (struct captured_execute_command_args):
172 Remove.
173 (do_captured_execute_command): Remove.
174 (safe_execute_command): Use TRY_CATCH.
175 * cli/cli-script.c (struct wrapped_read_command_file_args):
176 Remove.
177 (wrapped_read_command_file): Remove.
178 (script_from_file): Use TRY_CATCH.
179 * exceptions.c (catch_exception): Remove.
180 * exceptions.h (catch_exception): Remove.
181 (deprecated_throw_reason): Update comment.
182 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
183 argument to 'context'.
184 (mi_execute_command): Use TRY_CATCH.
185 * remote.c (struct start_remote_args): Remove.
186 (remote_start_remote): Update; change arguments.
187 (remote_open_1): Use TRY_CATCH.
188
58438ac1
TT
1892011-04-04 Tom Tromey <tromey@redhat.com>
190
191 * tracepoint.c (scope_info): Update.
192 * symtab.c (decode_line_spec): Update.
193 * python/python.c (gdbpy_decode_line): Update.
194 * linespec.h (decode_line_1): Update.
195 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
196 (decode_compound, find_method, symtab_from_filename)
197 (decode_variable): Likewise.
198 * cli/cli-cmds.c (edit_command): Update.
199 (list_command): Update.
200 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
201 argument.
202 (create_breakpoint): Update.
203 (until_break_command): Update.
204 (addr_string_to_sals): Update.
205 (decode_line_spec_1): Update.
206
b78a6381
TT
2072011-04-04 Tom Tromey <tromey@redhat.com>
208
209 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
210 (do_captured_parse_breakpoint): Remove.
211 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
212 Use TRY_CATCH directly.
213
00174a86
TT
2142011-04-04 Tom Tromey <tromey@redhat.com>
215
216 * symtab.h (free_symtab): Remove.
217 (forget_cached_source_info_for_objfile): Declare.
218 * symmisc.c (free_symtab): Remove.
219 * source.c (forget_cached_source_info_for_objfile): New function.
220 (forget_cached_source_info): Use it.
221 * objfiles.c (free_objfile): Simplify check before calling
222 clear_current_source_symtab_and_line. Call
223 forget_cached_source_info_for_objfile.
224
30cc903e
TT
2252011-04-04 Tom Tromey <tromey@redhat.com>
226
227 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
228 (new_symtab): Don't set `free_code' on symtab.
229 (new_linetable): Properly handle size==0.
230 * symtab.h (struct symtab) <free_code, free_func>: Remove.
231 * symmisc.c (free_symtab): Don't free the linetable. Don't call
232 free_func.
233 * jv-lang.c (struct jv_per_objfile_data): New.
234 (jv_per_objfile_free): Free the data.
235 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
236 (get_java_class_symtab): Set the `dict' field on the
237 jv_per_objfile_data.
238 (free_class_block): Remove.
239 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
240 the symtab.
241
0c2e6019
TT
2422011-04-04 Tom Tromey <tromey@redhat.com>
243
244 * symfile.c (reread_symbols): Update.
245 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
246 field.
247 * objfiles.c (allocate_objfile): Update.
248 * cp-support.h (cp_check_possible_namespace_symbols): Don't
249 declare.
250 * cp-namespace.c (lookup_symbol_file): Don't call
251 lookup_possible_namespace_symbol.
252 (initialize_namespace_symtab, get_possible_namespace_block)
253 (free_namespace_block, cp_check_possible_namespace_symbols)
254 (check_possible_namespace_symbols_loop)
255 (check_one_possible_namespace_symbol)
256 (lookup_possible_namespace_symbol): Remove.
257 (maintenance_cplus_namespace): Replace with notice.
258 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
259
554d387d
TT
2602011-04-04 Tom Tromey <tromey@redhat.com>
261
262 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
263 * symtab.h (struct symtab) <producer, debugformat>: Now const.
264 * symmisc.c (free_symtab): Don't free debugformat.
265 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
266 (record_debugformat, record_producer): Document.
267 * buildsym.c (end_symtab): Don't save debugformat and producer
268 names on obstack.
269 (end_symtab): Don't free debugformat and producer fields.
270 (record_debugformat): Don't call xstrdup.
271 (record_producer): Likewise.
272
d4d4db8a
TT
2732011-04-04 Tom Tromey <tromey@redhat.com>
274
275 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
276 (source_line_charpos, source_charpos_line): Remove.
277
8903c50d
TT
2782011-04-04 Tom Tromey <tromey@redhat.com>
279
280 * symtab.h (domain_enum): Split in two...
281 (enum search_domain): New.
282 (search_symbols): Update.
283 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
284 redundant declarations.
285 (search_symbols): Change 'kind' argument to search_domain.
286 Update.
287 (print_symbol_info): Likewise.
288 (symtab_symbol_info): Likewise.
289 * symfile.h (struct quick_symbol_functions)
290 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
291 <expand_symtabs_matching>: Likewise.
292 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
293 (expand_symtabs_matching_via_partial): Update.
294 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
295 (dw2_expand_symtabs_for_function): Update.
296 * block.h: Moved anonymous enum...
297 * defs.h (enum block_enum): ... here. Now named.
298
d9351f5f 2992011-04-03 Joel Brobecker <brobecker@adacore.com>
300
301 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
302 * version.in: Bump version to 7.3.50.20110403-cvs.
303
d6e00af6
JB
3042011-04-03 Joel Brobecker <brobecker@adacore.com>
305
306 * NEWS: Create a new section for the next release branch.
307 Rename the section of the current branch, now that it has
308 been cut.
309
2b9e5ea6
UW
3102011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
311
312 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
313 for "fpscr" in target description.
314
0cf03b49
JK
3152011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
316
317 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
318 initialize it. Delay HASH initialization. Strip the part after open
319 parenthesis for languages with qualifiers. Call do_cleanups.
320
5d901a73
TT
3212011-04-01 Tom Tromey <tromey@redhat.com>
322
323 * utils.c (report_command_stats): Don't print `-' for negative
324 number.
325
b0dd7688
JB
3262011-04-01 Eric Botcazou <ebotcazou@adacore.com>
327
328 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
329 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
330 typedefs.
331
956a9fb9
JB
3322011-04-01 Joel Brobecker <brobecker@adacore.com>
333
334 * breakpoint.h (bpdisp_text): Add declaration.
335 * breakpoint.c (bpdisp_text): Make non-static.
336 * ada-lang.c: #include "mi/mi-common.h".
337 (print_it_exception): Rewrite to improve GDB/MI output.
338
3352110b
PA
3392011-04-01 Pedro Alves <pedro@codesourcery.com>
340
341 * arm-tdep.h (struct address_space): Add forward declaration.
342
18819fa6
UW
3432011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
344
345 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
346 * arm-tdep.c (arm_override_mode): New global.
347 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
348 execution mode heuristics.
349 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
350 second single-step breakpoint if needed, using
351 arm_insert_single_step_breakpoint.
352 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
353 ARM execution mode, do not call thumb_get_next_pc_raw.
354 (arm_get_next_pc): Encode execution mode in return value. Call
355 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
356 (arm_insert_single_step_breakpoint): New function.
357 (arm_software_single_step): Call it.
358 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
359 argument to return execution mode of sigreturn target.
360 (arm_linux_syscall_next_pc): Use it.
361 (arm_linux_copy_svc): Update call.
362 (arm_linux_software_single_step): Call
363 arm_insert_single_step_breakpoint.
364
a6e293d1
JK
3652011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
366
367 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
368 the comment.
369
a4c8e806
TT
3702011-03-31 Tom Tromey <tromey@redhat.com>
371
372 * varobj.c (update_dynamic_varobj_children): Properly handle
373 errors from iterator.
374
df5c6c50
JK
3752011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
376
377 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
378 struct linkage name twice.
379
1dae3efc
TT
3802011-03-31 Tom Tromey <tromey@redhat.com>
381
382 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
383 missing ">" to message.
384
f4f7ab05
TT
3852011-03-31 Tom Tromey <tromey@redhat.com>
386
387 * varobj.c (instantiate_pretty_printer): Remove duplicate
388 'return'.
389
fcf250e2
UW
3902011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
391
392 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
393 if neither saved value nor register available (e.g. signal frame).
394
ee6436e3
TJB
3952011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
396
397 * macroexp.c (expand): Avoid uninitialized variable
398 compiler warning.
399
423f41a5
TJB
4002011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
401
402 * breakpoint.c (break_range_command): Fix typo in comment.
403
f1310107
TJB
4042011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
405 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
406
407 Implement support for PowerPC BookE ranged breakpoints.
408 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
409 * breakpoint.h (struct bp_target_info) <length>: New member
410 variable.
411 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
412 instead of struct breakpoint as argument, and also add ASPACE
413 and BP_ADDR arguments. Update all callers.
414 (struct breakpoint_ops) <print_one_detail>: New method.
415 (struct breakpoint) <addr_string_range_end>: New member variable.
416 * breakpoint.c (breakpoint_location_address_match): Add function
417 prototype.
418 (insert_bp_location): Set bl->target_info.length.
419 (breakpoint_here_p): Call breakpoint_location_address_match.
420 (moribund_breakpoint_here_p): Likewise.
421 (regular_breakpoint_inserted_here_p): Likewise.
422 (breakpoint_thread_match): Likewise.
423 (bpstat_stop_status): Likewise.
424 (bpstat_check_location): Move call to
425 breakpoint_ops.breakpoint_hit to the top.
426 (print_one_breakpoint_location): Call
427 breakpoint_ops.print_one_detail if available.
428 (breakpoint_address_match_range): New function.
429 (breakpoint_location_address_match): Likewise.
430 (breakpoint_locations_match): Compare the length field of the
431 locations too.
432 (hw_breakpoint_used_count): Count resources used by all locations
433 in a breakpoint, and use breakpoint_ops.resources_needed if
434 available.
435 (breakpoint_hit_ranged_breakpoint): New function.
436 (resources_needed_ranged_breakpoint): Likewise.
437 (print_it_ranged_breakpoint): Likewise.
438 (print_one_ranged_breakpoint): Likewise.
439 (print_one_detail_ranged_breakpoint): Likewise.
440 (print_mention_ranged_breakpoint): Likewise.
441 (print_recreate_ranged_breakpoint): Likewise.
442 (ranged_breakpoint_ops): New structure.
443 (find_breakpoint_range_end): New function.
444 (break_range_command): Likewise.
445 (delete_breakpoint): Free addr_string_range_end.
446 (update_breakpoint_locations): Add SALS_END argument. Update
447 all callers. Calculate breakpoint length if a non-zero SALS_END
448 is given. Call breakpoint_locations_match instead of
449 breakpoint_address_match.
450 (reset_breakpoint): Find SaL of the end of the range if B is a
451 ranged breakpoint.
452 (_initialize_breakpoint): Register break-range command.
453 * defs.h (print_core_address): Add function prototype.
454 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
455 function.
456 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
457 (ppc_linux_remove_hw_breakpoint): Likewise.
458 (_initialize_ppc_linux_nat): Initialize
459 to_ranged_break_num_registers.
460 * target.c (update_current_target): Add comment about
461 to_ranged_break_num_registers.
462 (target_ranged_break_num_registers): New function.
463 * target.h (struct target_ops) <to_ranged_break_num_registers>:
464 New method.
465 (target_ranged_break_num_registers): Add function prototype.
466 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
467 * utils.c (print_core_address): ... here.
468
02d20e4a
UW
4692011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
470
471 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
472 variable compiler warning.
473
ef23e705
TJB
4742011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
475
476 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
477 code from here ...
478 (re_set_breakpoint): ... to here ...
479 (addr_string_to_sals): ... and here.
480
311e6ab3
PM
4812011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
482
483 * Makefile.in (SFILES): Add missing C sources.
484 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
485 Add missing headers.
486
acd1d99c
MF
4872011-03-29 Mike Frysinger <vapier@gentoo.org>
488
489 * .gitignore: New file.
490
66ee2731
MF
4912011-03-29 Mike Frysinger <vapier@gentoo.org>
492
493 * NEWS: Mention new cfi device simulation.
494
53832f31
TT
4952011-03-29 Tom Tromey <tromey@redhat.com>
496
497 * dwarf2read.c (fixup_partial_die): Handle linkage name on
498 otherwise anonymous types.
499 (dwarf2_name): Likewise.
500 * valops.c (value_struct_elt_for_reference): Refine artificial
501 type logic. Call error if j==-1.
502
09b58708
JK
5032011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
504
505 Fix false GCC warning.
506 * infcall.c (find_function_addr): Initialize funaddr.
507
6023c606
PM
5082011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
509
510 Fix mingw compilation with --enable-targets=all.
511 * remote-mips.c (gdb_usleep.h): Include header.
512 (mips_enter_debug): Use gdb_usleep instead of sleep.
513
0e30163f
JK
5142011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
515
516 Support resolution of STT_GNU_IFUNC via breakpoints.
517 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
518 bp_gnu_ifunc_resolver_return.
519 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
520 the loop. Support bp_gnu_ifunc_resolver and
521 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
522 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
523 breakpoints.
524 (bptype_string, print_one_breakpoint_location): Support
525 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
526 (user_settable_breakpoint): Return true also for
527 bp_gnu_ifunc_resolver.
528 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
529 bp_gnu_ifunc_resolver_return.
530 (set_breakpoint_location_function): New parameter explicit_loc,
531 describe it. Call find_pc_partial_function_gnu_ifunc with new
532 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
533 EXPLICIT_LOC is not set.
534 (set_raw_breakpoint): Set EXPLICIT_LOC for
535 set_breakpoint_location_function.
536 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
537 set_breakpoint_location_function.
538 (mention): Support bp_gnu_ifunc_resolver and
539 bp_gnu_ifunc_resolver_return.
540 (add_location_to_breakpoint): Set EXPLICIT_LOC for
541 set_breakpoint_location_function.
542 (update_breakpoint_locations): Remove static.
543 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
544 bp_gnu_ifunc_resolver_return.
545 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
546 bp_gnu_ifunc_resolver_return.
547 (update_breakpoint_locations): New declaration.
548 * elfread.c: Include gdbthread.h and regcache.h.
549 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
550 functions.
551 (elf_gnu_ifunc_fns): Install them.
552 * minsyms.c (stub_gnu_ifunc_resolver_stop)
553 (stub_gnu_ifunc_resolver_return_stop): New functions.
554 (stub_gnu_ifunc_fns): Install them.
555 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
556 and gnu_ifunc_resolver_return_stop.
557 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
558
07be84bf
JK
5592011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
560
561 STT_GNU_IFUNC reader implementation.
562 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
563 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
564 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
565 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
566 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
567 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
568 (elf_gnu_ifunc_resolve_addr): New.
569 (elf_symfile_read): Call elf_rel_plt_read.
570 (elf_gnu_ifunc_fns): New.
571 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
572 Install elf_gnu_ifunc_fns.
573 * infcall.c (find_function_return_type): New function.
574 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
575 * minsyms.c (stub_gnu_ifunc_resolve_addr)
576 (stub_gnu_ifunc_resolve_name): New functions.
577 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
578 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
579 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
580
300f8e10
JK
5812011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
582
583 Code cleanup for later STT_GNU_IFUNC support.
584 * infcall.c (find_function_addr): Remove variable code, use explicit
585 dereferences for it. Move VALUE_TYPE initialization later.
586
11c81455
JK
5872011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 GDB find_pc_partial_function support for STT_GNU_IFUNC.
590 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
591 (clear_pc_function_cache): Clear it.
592 (find_pc_partial_function): Rename to ...
593 (find_pc_partial_function_gnu_ifunc): ... this function. New
594 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
595 (find_pc_partial_function): New wrapper for this function.
596 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
597
0875794a
JK
5982011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
599
600 GDB internal type support for STT_GNU_IFUNC.
601 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
602 (elf_symtab_read): Set mst_text_gnu_ifunc for
603 BSF_GNU_INDIRECT_FUNCTION.
604 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
605 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
606 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
607 nodebug_got_plt_symbol.
608 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
609 (TYPE_GNU_IFUNC): New.
610 (struct main_type): New field flag_gnu_ifunc.
611 (struct builtin_type): New field builtin_func_func.
612 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
613 nodebug_got_plt_symbol.
614 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
615 (in_gnu_ifunc_stub): New.
616 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
617 mst_text_gnu_ifunc.
618 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
619 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
620 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
621 in_gnu_ifunc_stub.
622 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
623 * symtab.c (search_symbols): Likewise.
624 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
625 and mst_slot_got_plt.
626 (in_gnu_ifunc_stub): New declaration.
627
d0fb5eae
JK
6282011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
629
630 Support a ring of related breakpoints.
631 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
632 other functions, add gdb_assert.
633 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
634 watchpoint_del_at_next_stop.
635 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
636 (bpstat_stop_status): Handle ring in related_breakpoint.
637 (set_raw_breakpoint_without_location): Initialize ring in
638 related_breakpoint.
639 (delete_breakpoint): Handle ring in related_breakpoint, use
640 watchpoint_del_at_next_stop.
641 (map_breakpoint_numbers): Handle ring in related_breakpoint.
642
9cded63f
TT
6432011-03-28 Tom Tromey <tromey@redhat.com>
644
645 PR symtab/12441:
646 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
647 with `language_minimal'.
648
467d42c4
UW
6492011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
650
651 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
652 instead of checking for STT_ARM_TFUNC symbol type.
653
62853458
TT
6542011-03-25 Tom Tromey <tromey@redhat.com>
655
656 * linespec.c (symbol_found): Restore line-based result for
657 non-LOC_LABEL symbols.
658
a7417d46
KT
6592011-03-25 Kai Tietz <ktietz@redhat.com>
660
661 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
662 instead of strcmp for comparison.
663 (tui_source_is_displayed): Likewise.
664 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
665
55f1336d
TT
6662011-03-24 Mark Wielaard <mjw@redhat.com>
667
668 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
669 complaint.
670 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
671 (find_partial_die_in_comp_unit): Likewise in comment.
672 (read_attribute_value): Likewise.
673 (lookup_die_type): Likewise.
674 (dwarf_form_name): Likewise.
675 (dump_die_shallow): Likewise.
676 (follow_die_ref_or_sig): Likewise.
677
9ef07c8c
TT
6782011-03-24 Tom Tromey <tromey@redhat.com>
679
680 PR breakpoints/11816:
681 * linespec.c (decode_line_1): Parse `function:label' linespecs.
682 (decode_compound): Update.
683 (find_function_symbol): New function.
684 (decode_dollar): Update.
685 (decode_label): Add 'function_symbol' parameter. Handle
686 function-relative labels.
687 (decode_variable): Update.
688 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
689 not its line. Set `special_display' and canonical name for
690 labels.
691
56435ebe
TT
6922011-03-24 Tom Tromey <tromey@redhat.com>
693
694 * linespec.h (struct linespec_result) <special_display>: New
695 field.
696 * breakpoint.h (struct breakpoint) <display_canonical>: New
697 field.
698 * breakpoint.c (print_breakpoint_location): Respect
699 display_canonical.
700 (create_breakpoint_sal): Add 'display_canonical' parameter.
701 (create_breakpoints_sal): Update.
702 (create_breakpoint): Update.
703
7efd8fc2
TT
7042011-03-24 Tom Tromey <tromey@redhat.com>
705
706 * symtab.c (decode_line_spec): Update.
707 * linespec.c (build_canonical_line_spec): Change type of
708 'canonical'.
709 (decode_line_2, decode_line_1, decode_objc, decode_compound)
710 (find_method, decode_all_digits, decode_dollar, decode_label)
711 (symbol_found): Likewise.
712 (init_linespec_result): New function.
713 * breakpoint.c (struct captured_parse_breakpoint_args)
714 <canonical_p>: New field, replaces addr_string_p.
715 (create_breakpoints_sal): Add 'canonical' parameter, replacing
716 'addr_string'.
717 (parse_breakpoint_sals): Likewise.
718 (do_captured_parse_breakpoint): Update.
719 (create_breakpoint): Use struct linespec_result.
720 (until_break_command): Update.
721 (breakpoint_re_set_one): Update.
722 (decode_line_spec_1): Update.
723 * linespec.h (struct linespec_result): New.
724 (init_linespec_result): Declare.
725
788c8b10
PA
7262011-03-23 Pedro Alves <pedro@codesourcery.com>
727
728 * regcache.c (regcache_raw_read): If the target didn't supply a
729 given raw register, mark it as unavailable.
730
0ba1096a
KT
7312011-03-23 Kai Tietz <ktietz@redhat.com>
732
733 * breakpoint.c (clear_command): Use filename_cmp
734 instead of strcmp for comparison.
735 * buildsym.c (watch_main_source_file_lossage): Likewise.
736 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
737 checking just for slash.
738 * dbxread.c (read_dbx_symtab): Use lbasename instead of
739 strrchr and filename_cmp instead of strcmp for filenames.
740 (add_old_header_file): Use filename_cmp
741 instead of strcmp for comparison.
742 * exec.c (exec_set_section_address): Likewise.
743 * macrotab.c (macro_lookup_inclusion): Likewise.
744 (macro_lookup_inclusion): Likewise.
745 * elfread.c (_initialize_elfread): Likewise.
746 (elfstab_offset_sections): Likewise.
747 (elfstab_offset_sections): Use lbasename instead of
748 strrchr.
749 * mdebugread.c (parse_partial_symbols): Likewise.
750 (arse_partial_symbols): Use filename_(n)cmp instead of
751 str(n)cmp for comparison.
752 * minsyms.c (lookup_minimal_symbol): Likewise.
753 * psymtab.c (read_psymtabs_with_filename): Likewise.
754 * solib.c (solib_read_symbols): Likewise.
755 (reload_shared_libraries_1): Likewise.
756 * symmisc.c (maintenance_print_symbols): Likewise.
757 * symfile.c (separate_debug_file_exists): Likewise.
758 (reread_symbols): Likewise.
759 (find_separate_debug_file_by_debuglink): Likewise.
760 * remote-fileio.c (remote_fileio_func_rename): Likewise.
761 * source.c (add_path): Likewise.
762 * symtab.c (filename_seen): Likewise.
763 (file_matches): Likewise.
764 (print_symbol_info): Likewise.
765 (maybe_add_partial_symtab_filename): Likewise.
766 (make_source_files_completion_list): Likewise.
767 * xml-syscall.c (init_sysinfo): Likewise.
768 * windows-nat.c (_initialize_check_for_gdb_ini): Use
769 IS_DIR_SEPARATOR for checking for trailing path separator.
770
dd90784c
JK
7712011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
772
773 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
774 label abort_expression.
775 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
776 DWARF_VALUE_OPTIMIZED_OUT.
777
3167638f
JK
7782011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
779
780 Code cleanup.
781 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
782 to linkage_name. Invert its value. Update the function comment.
783 (c_type_print_varspec_suffix): Invert it at the caller.
784 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
785
ce406537
PA
7862011-03-22 Pedro Alves <pedro@codesourcery.com>
787
788 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
789 errors when reading the `stop_pc'.
790 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
791 get_frame_pc.
792
da5d4055
PM
7932011-03-22 Phil Muldoon <pmuldoon@redhat.com>
794
795 * NEWS: Document gdb.Write stream keyword.
796
29e0eb9c
JK
7972011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
798
799 Revert:
800 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
801 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
802 (dwarf2_add_field): Fix new_field->accessibility for
803 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
804
05775840
PM
8052011-03-22 Phil Muldoon <pmuldoon@redhat.com>
806
807 PR python/12183
808
809 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
810 other error classes. Do not print stack trace.
811
a0cb7835
JK
8122011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
813
814 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
815 (dwarf2_add_field): Fix new_field->accessibility for
816 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
817
d19f7eee
UW
8182011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
819
820 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
821 encountering a load via a non-SP register.
822
4a2fbb50
UW
8232011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
824
825 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
826 field in returned unwinder.
827
3489610d
JB
8282012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
829
830 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
831
8c1a34e7
JB
8322012-03-21 Joel Brobecker <brobecker@adacore.com>
833
834 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
835 of xmalloc.
836
8fbca658
PA
8372012-03-18 Pedro Alves <pedro@codesourcery.com>
838
839 * frame.c (frame_unwind_register): Throw an error if unwinding the
840 register failed.
841 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
842 an unwind stop reason.
843 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
844 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
845 UNWIND_UNAVAILABLE>: New.
846 * inline-frame.c (inline_frame_unwind): Install
847 default_frame_unwind_stop_reason.
848 * frame-unwind.c: Include "exceptions.h".
849 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
850 (default_frame_unwind_stop_reason): New.
851 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
852 (default_frame_unwind_stop_reason): Declare.
853 (struct frame_unwind) <stop_reason>: New function pointer.
854
855 * dummy-frame.c: Install default_frame_unwind_stop_reason.
856 * dwarf2-frame.c: Include exceptions.h.
857 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
858 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
859 computing the CFA. If such an error was thrown, set
860 unavailable_retaddr.
861 (dwarf2_frame_unwind_stop_reason): New.
862 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
863 unavailable.
864 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
865 (dwarf2_signal_frame_unwind): Ditto.
866
867 * amd64-tdep.c: Include "exceptions.h".
868 (struct amd64_frame_cache): New field "base_p".
869 (amd64_init_frame_cache): Clear it.
870 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
871 Avoid reading registers with functions that throw if the register
872 is not necessary to compute the frame base.
873 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
874 swallowing NOT_AVAILABLE_ERROR.
875 (amd64_frame_unwind_stop_reason): New.
876 (amd64_frame_this_id): Don't build a frame id if the frame base
877 was unavailable.
878 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
879 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
880 base_p if the frame base was computable.
881 (amd64_sigtramp_frame_unwind_stop_reason): New.
882 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
883 frame base was unavailable.
884 (amd64_sigtramp_frame_unwind): Install
885 amd64_sigtramp_frame_unwind_stop_reason.
886 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
887 base_p if the frame base was computable.
888 (amd64_epilogue_frame_unwind_stop_reason): New.
889 (amd64_epilogue_frame_this_id): Don't build a frame id if the
890 frame base was unavailable.
891 (amd64_epilogue_frame_unwind): Install
892 amd64_epilogue_frame_unwind_stop_reason.
893 * i386-tdep.c: Include "exceptions.h".
894 (struct i386_frame_cache): New field "base_p".
895 (i386_init_frame_cache): Clear it.
896 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
897 Avoid reading registers with functions that throw if the register
898 is not necessary to compute the frame base.
899 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
900 swallowing NOT_AVAILABLE_ERROR.
901 (i386_frame_unwind_stop_reason): New.
902 (i386_frame_this_id): Don't build a frame id if the frame base was
903 unavailable.
904 (i386_frame_prev_register): Handle unavailable SP.
905 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
906 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
907 base_p if the frame base was computable.
908 (i386_epilogue_frame_unwind_stop_reason): New.
909 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
910 base was unavailable.
911 (i386_epilogue_frame_unwind): Install
912 i386_epilogue_frame_unwind_stop_reason.
913 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
914 base_p if the frame base was computable.
915 (i386_sigtramp_frame_unwind_stop_reason): New.
916 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
917 base was unavailable.
918 (i386_sigtramp_frame_unwind): Install
919 i386_sigtramp_frame_unwind_stop_reason.
920 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
921 type's size, not the register's.
922 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
923
924 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
925 default_frame_unwind_stop_reason.
926 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
927 (alpha_heuristic_frame_unwind): Ditto.
928 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
929 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
930 * avr-tdep.c (avr_frame_unwind): Ditto.
931 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
932 Ditto.
933 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
934 * frv-tdep.c (frv_frame_unwind): Ditto.
935 * h8300-tdep.c (h8300_frame_unwind): Ditto.
936 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
937 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
938 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
939 (hppa_stub_frame_unwind): Ditto.
940 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
941 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
942 (ia64_libunwind_frame_unwind)
943 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
944 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
945 * lm32-tdep.c (lm32_frame_unwind): Ditto.
946 * m32c-tdep.c (m32c_unwind): Ditto.
947 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
948 * m32r-tdep.c (m32r_frame_unwind): Ditto.
949 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
950 * m68k-tdep.c (m68k_frame_unwind): Ditto.
951 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
952 * m88k-tdep.c (m88k_frame_unwind): Ditto.
953 * mep-tdep.c (mep_frame_unwind): Ditto.
954 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
955 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
956 (mips_stub_frame_unwind): Ditto.
957 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
958 * moxie-tdep.c (moxie_frame_unwind): Ditto.
959 * mt-tdep.c (mt_frame_unwind): Ditto.
960 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
961 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
962 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
963 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
964 (s390_sigtramp_frame_unwind): Ditto.
965 * score-tdep.c (score_prologue_unwind): Ditto.
966 * sh-tdep.c (sh_frame_unwind): Ditto.
967 * sh64-tdep.c (sh64_frame_unwind): Ditto.
968 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
969 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
970 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
971 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
972 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
973 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
974 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
975 (sparc64obsd_trapframe_unwind): Ditto.
976 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
977 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
978 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
979 * v850-tdep.c (v850_frame_unwind): Ditto.
980 * vax-tdep.c (vax_frame_unwind): Ditto.
981 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
982 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
983 * xtensa-tdep.c (xtensa_unwind): Ditto.
984
f23d1b92
PA
9852011-03-18 Pedro Alves <pedro@codesourcery.com>
986
987 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
988 there's always a frame. Use get_frame_pc_if_available instead of
989 get_frame_pc, and if there's no PC available, don't look up a
990 symtab.
991
1d4f5741
PA
9922011-03-18 Pedro Alves <pedro@codesourcery.com>
993
994 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
995 unavailable PC.
996
dba09041
PA
9972011-03-18 Pedro Alves <pedro@codesourcery.com>
998
999 * tracepoint.c (set_traceframe_context): Handle unavailable PC
1000 gracefully.
1001
9a26e44c
PA
10022011-03-18 Pedro Alves <pedro@codesourcery.com>
1003
1004 * frame.h (frame_unwind_caller_pc_if_available): Declare.
1005 * frame.c (frame_unwind_caller_pc_if_available): New.
1006 * stack.c (frame_info): Handle unavailable PC.
1007
10082011-03-18 Pedro Alves <pedro@codesourcery.com>
1009
1010 * frame.c (frame_unwind_pc): Rename to ...
1011 (frame_unwind_pc_if_available): ... this. New `pc' output
1012 parameter. Change return type to int. Gracefully handle
1013 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
1014 happened, or 1 otherwise.
1015 (frame_unwind_pc): Reimplement on top of
1016 frame_unwind_pc_if_available.
1017 (get_frame_func): Rename to ...
1018 (get_frame_func_if_available): New `pc' output parameter. Change
1019 return type to int. Gracefully handle the PC not being available.
1020 (get_frame_func): Reimplement on top of
1021 get_frame_func_if_available.
1022 (select_frame): Handle the PC being unavailable.
1023 (get_prev_frame): Handle the PC being unavailable.
1024 (get_frame_pc_if_available): New.
1025 (get_frame_address_in_block_if_available): New.
1026 (find_frame_sal): Handle the frame PC not being available.
1027 * frame.h (get_frame_pc_if_available): Declare.
1028 (get_frame_address_in_block_if_available): Declare.
1029 (get_frame_func_if_available): Declare.
1030 * stack.c (print_frame_info): Handle the PC being unavailable.
1031 (find_frame_funname): Ditto.
1032 (print_frame): Handle the PC being unavailable.
1033 (get_frame_language): Ditto.
1034 * blockframe.c (get_frame_block): Ditto.
1035 * macroscope.c (default_macro_scope): Ditto.
1036 * tui/tui-stack.c (tui_show_frame_info): Ditto.
1037
10382011-03-18 Pedro Alves <pedro@codesourcery.com>
1039
1040 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
1041 NOT_AVAILABLE_ERROR when evaluating the location expression.
1042
10432011-03-18 Pedro Alves <pedro@codesourcery.com>
1044
1045 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
1046 returning that the register piece is unavailable/optimized out.
1047 (write_pieced_value): Handle get_frame_register_bytes returning
1048 that the register piece is unavailable/optimized out when doing a
1049 read-modify write of a bitfield.
1050 * findvar.c (value_from_register): Handle get_frame_register_bytes
1051 returning that the register piece is unavailable/optimized out.
1052 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
1053 and `unavailablep'. Throw error on bad debug info. Use
1054 frame_register instead of frame_register_read, to fill in the new
1055 arguments.
1056 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
1057 and `unavailablep'.
1058 * valops.c: (value_assign): Adjust, and handle
1059 get_frame_register_bytes failing.
1060 * spu-tdep.c: Include exceptions.h.
1061 (spu_software_single_step): Adjust, and handle
1062 get_frame_register_bytes failing.
1063 (spu_get_longjmp_target): Ditto.
1064 * gdbarch.sh (register_to_value): Change to return int. New
1065 parameters `optimizedp' and `unavailablep'.
1066 * gdbarch.h, gdbarch.c: Regenerate.
1067 * i386-tdep.c (i386_register_to_value): Adjust to new
1068 gdbarch_register_to_value interface.
1069 * i387-tdep.c (i387_register_to_value): Ditto.
1070 * i387-tdep.h (i387_register_to_value): Ditto.
1071 * alpha-tdep.c (alpha_register_to_value): Ditto.
1072 * ia64-tdep.c (ia64_register_to_value): Ditto.
1073 * m68k-tdep.c (m68k_register_to_value): Ditto.
1074 * mips-tdep.c (mips_register_to_value): Ditto.
1075 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
1076
0fdb4f18
PA
10772011-03-18 Pedro Alves <pedro@codesourcery.com>
1078
1079 * findvar.c (value_of_register): Mark the value as unavailable, if
1080 the register is unavailable.
1081 * frame.h (frame_register_unwind): New `unavailablep' parameter.
1082 (frame_register): New `unavailablep' parameter.
1083 (frame_register_read): Update comment.
1084 * frame.c (frame_register_unwind): New `unavailablep' parameter.
1085 Set it if the register is unavailable. If the register is
1086 unavailable, clear the output buffer.
1087 (frame_register): New `unavailablep' parameter. Pass it down.
1088 (frame_unwind_register): Adjust.
1089 (put_frame_register): Adjust.
1090 (frame_register_read): Adjust. Also return false if the register
1091 is not available.
1092 (frame_register_unwind_location): Adjust.
1093 * sentinel-frame.c (sentinel_frame_prev_register): If the register
1094 is unavailable, mark the value accordingly.
1095 * stack.c (frame_info): Handle unavailable registers.
1096
e69aa73e
PA
10972011-03-18 Pedro Alves <pedro@codesourcery.com>
1098
1099 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
1100 simplify, using regcache_cooked_read.
1101
05d1431c
PA
11022011-03-18 Pedro Alves <pedro@codesourcery.com>
1103
1104 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
1105 (regcache_raw_read_unsigned, regcache_raw_read_signed)
1106 (regcache_raw_read_unsigned, regcache_raw_read_part)
1107 (regcache_cooked_read, regcache_cooked_read_signed)
1108 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
1109 (regcache_cooked_read_ftype): Change return to enum
1110 register_status.
1111 * regcache.c: Include exceptions.h
1112 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
1113 (do_cooked_read): Change return to enum register_status. Always
1114 forward to regcache_cooked_read.
1115 (regcache_raw_read): Change return to enum register_status. If
1116 the register is not REG_VALID, memset the buffer. Return the
1117 register's status.
1118 (regcache_raw_read_signed): Handle non-REG_VALID registers and
1119 return the register's status.
1120 (regcache_raw_read_unsigned): Ditto.
1121 (regcache_cooked_read): Change return to enum register_status.
1122 Assert that with read-only regcaches, the register's status must
1123 be known. If the regcache is read-only, and the register is not
1124 REG_VALID, memset the buffer. Return the register's status.
1125 (regcache_cooked_read_signed): Change return to enum
1126 register_status. Handle non-REG_VALID registers and return the
1127 register's status.
1128 (regcache_cooked_read_unsigned): Change return to enum
1129 register_status. Handle non-REG_VALID registers and return the
1130 register's status.
1131 (regcache_xfer_part, regcache_raw_read_part)
1132 (regcache_cooked_read_part): Change return to enum
1133 register_status. Return the register's status.
1134 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
1135 unavailable.
1136 (regcache_dump): Handle unavailable cooked registers.
1137 * frame.c (do_frame_register_read): Adjust interface to match
1138 regcache_cooked_read_ftype.
1139 * gdbarch.sh (pseudo_register_read): Change return to enum
1140 register_status.
1141 * gdbarch.h, gdbarch.c: Regenerate.
1142
1143 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
1144 register_status.
1145 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
1146 register_status. If reading a raw register indicates the raw
1147 register is not valid, return the raw register's status,
1148 otherwise, return REG_VALID.
1149 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
1150 register_status. Handle non-REG_VALID raw registers and return
1151 the register's status.
1152 * arm-tdep.c (arm_neon_quad_read)
1153 (arm_pseudo_read): Change return to enum register_status. Handle
1154 non-REG_VALID raw registers and return the register's status.
1155 * avr-tdep.c (avr_pseudo_register_read): Ditto.
1156 * frv-tdep.c (frv_pseudo_register_read): Ditto.
1157 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
1158 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
1159 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
1160 register_status.
1161 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
1162 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
1163 (m32c_part_write, m32c_cat_read, m32c_cat_write)
1164 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
1165 (m32c_pseudo_register_read): Change return to enum
1166 register_status. Adjust.
1167 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
1168 enum register_status. Return the register's status.
1169 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
1170 register_status. Return the register's status.
1171 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
1172 * mips-tdep.c (mips_pseudo_register_read): Ditto.
1173 * mt-tdep.c (mt_pseudo_register_read): Ditto.
1174 * rs6000-tdep.c (move_ev_register_func): New typedef.
1175 (e500_move_ev_register): Use it. Change return to enum
1176 register_status. Return the register's status.
1177 (do_regcache_raw_read): New function.
1178 (do_regcache_raw_write): New function.
1179 (e500_pseudo_register_read): Change return to enum
1180 register_status. Return the register's status. Use
1181 do_regcache_raw_read.
1182 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
1183 (dfp_pseudo_register_read): Change return to enum register_status.
1184 Return the register's status.
1185 (vsx_pseudo_register_read): Ditto.
1186 (efpr_pseudo_register_read): Ditto.
1187 (rs6000_pseudo_register_read): Ditto.
1188 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
1189 register_status. Return the register's status.
1190 * sh64-tdep.c (pseudo_register_read_portions): New function.
1191 (sh64_pseudo_register_read): Change return to enum
1192 register_status. Use pseudo_register_read_portions. Return the
1193 register's status.
1194 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
1195 register_status. Return the register's status.
1196 * sh-tdep.c (pseudo_register_read_portions): New function.
1197 (sh_pseudo_register_read): Change return to enum register_status.
1198 Use pseudo_register_read_portions. Return the register's status.
1199 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
1200 enum register_status. Return the register's status.
1201 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
1202 * spu-tdep.c (spu_pseudo_register_read_spu)
1203 (spu_pseudo_register_read): Ditto.
1204 * xtensa-tdep.c (xtensa_register_read_masked)
1205 (xtensa_pseudo_register_read): Ditto.
1206 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
1207
e10abd8f
PM
12082011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1209
1210 * python/py-value.c (valpy_getitem): Fix formatting of error function
1211 call.
1212
7ea6d463
PM
12132011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1214
1215 ARI fixes: Add missing internationalization markups throughout
1216 C source files.
1217 * darwin-nat-info.c: Ditto.
1218 * record.c: Ditto.
1219 * remote.c: Ditto.
1220 * mi/mi-main.c: Ditto.
1221
001083c6
PM
12222011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1223
1224 ARI fixes: Add missing internationalization markups throughout
1225 yacc files.
1226 * c-exp.y: Ditto.
1227 * cp-name-parser.y: Ditto.
1228 * f-exp.y: Ditto.
1229 * m2-exp.y: Ditto.
1230 * objc-exp.y: Ditto.
1231 * p-exp.y: Ditto.
1232
4f1cdeec
PM
12332011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1234
1235 ARI fixes: Messages should have no trailing new lines.
1236 * darwin-nat.c (mach_check_error): Remove trailing new line from
1237 warning function call message.
1238 * record.c (bfdcore_read): Idem for error call.
1239
28e698f1
PM
12402011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
1241
1242 * common/signals.c (target_signal_from_host): Add _ markup to error
1243 function call message.
1244 (target_signal_to_host): Add _ markup and remove trailing new line
1245 from warning call message.
1246 (target_signal_from_command): Add _ markup to error function call
1247 message.
1248
99c3dc11
PM
12492011-03-18 Phil Muldoon <pmuldoon@redhat.com>
1250
1251 PR python/12149
1252
1253 * python/python.c (gdbpy_write): Accept a stream argument and
1254 operate to the appropriate stream.
1255 (gdbpy_flush): Likewise.
1256 (_initialize_python): Add stream constants.
1257 (finish_python_initialization): Add GdbOutputErrorFile class.
1258
c20800be
KY
12592011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1260
1261 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1262
f4a1794a
KY
12632011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
1264
1265 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
1266 to store_signed_integer. Add debug message when relocating CALL
1267 instructions. Fix formatting of debug message.
1268 * i386-tdep.c (i386_relocate_instruction): Ditto.
1269
d4862372
JB
12702011-03-17 Joel Brobecker <brobecker@gnat.com>
1271
1272 * target.h (struct target_ops): Remove to_lookup_symbol field.
1273 (target_lookup_symbol): Delete macro.
1274 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
1275 (update_current_target, setup_target_debug): Remove handling
1276 of to_lookup_symbol target_ops field.
1277 * ada-tasks.c (get_known_tasks_addr): Remove use of
1278 target_lookup_symbol.
1279 * coffread.c (coff_symtab_read): Likewise.
1280 * dbxread.c (read_dbx_symtab): Ditto.
1281
d645e32e
JB
12822011-03-17 Joel Brobecker <brobecker@gnat.com>
1283
1284 PR gdb/12116:
1285 * configure.ac: Add getthrds declaration check.
1286 * configure, config.in: Regenerate.
1287 * aix-thread.c (getthrds): Declare only if not already declared
1288 in procinfo.h. More declaration out of get_signaled_thread to
1289 global scope.
1290
29703da4
PM
12912011-03-17 Phil Muldoon <pmuldoon@redhat.com>
1292
1293 * python/py-symtab.c: Populate symtab_object_methods,
1294 sal_object_methods.
1295 (stpy_is_valid): New function.
1296 (salpy_is_valid): Ditto.
1297 * python/py-symbol.c: Declare symbol_object_methods. Populate.
1298 (sympy_is_valid): New function.
1299 * python/py-objfile.c: Declare objfile_object_methods. Populate.
1300 (objfpy_is_valid): New function.
1301 * python/py-inferior.c: Populate inferior_object_methods.
1302 (infpy_is_valid): New function.
1303 * python/py-infthread.c: Populate thread_object_methods.
1304 (thpy_is_valid): New function.
1305 * python/py-block.c: Declare block_object_methods. Populate. Declare
1306 block_iterator_object_methods. Populate.
1307 (blpy_is_valid): New function.
1308 (blpy_iter_is_valid): Ditto.
1309
c00f8484
KS
13102011-03-16 Keith Seitz <keiths@redhat.com>
1311
1312 * linespec.c (find_methods): Canonicalize NAME before looking
1313 up the symbol.
1314 (name_end): New function.
1315 (keep_name_info): New function.
1316 (decode_line_1): Use keep_name_info.
1317 (decode_compound): Likewise.
1318 * cli/cli-utils.h (remove_trailing_whitespace): New function.
1319 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
1320
1321 PR c++/12273
1322 * linespec.c (locate_first_half): Keep overload information, too.
1323 (decode_compound): Use a string to represent break characters
1324 to escape the loop.
1325 If P points to a break character, do not increment it.
1326 For C++ and Java, keep overload information and relevant keywords.
1327 If we cannot find a symbol, search the minimal symbols.
1328
1329 PR c++/11734
1330 * linespec.c (decode_compound): Rename SAVED_ARG to
1331 THE_REAL_SAVED_ARG.
1332 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
1333 single-quotes.
1334 Pass a valid block to lookup_symbol.
1335 (lookup_prefix_sym): Likewise.
1336 (find_method): Construct search name based on SYM_CLASS instead
1337 of SAVED_ARG.
1338 * psymtab.c (lookup_partial_symbol): Add language parameter.
1339 (lookup_symbol_aux_psymtabs): Likewise.
1340 Don't assume that the psymtab we found was the right one. Search
1341 for the desired symbol in the symtab to be certain.
1342 (psymtab_search_name): New function.
1343 (lookup_partial_symbol): Use psymtab_search_name.
1344 Add language parameter.
1345 (read_symtabs_for_function): Add language parameter and pass to
1346 lookup_partial_symbol.
1347 (find_symbol_file_from_partial): Likewise.
1348
c91513d8
PP
13492011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
1350
1351 PR gdb/12528
1352 * dwarf2read.c (noop_record_line): New function.
1353 (dwarf_decode_lines): Ignore line tables for GCd functions.
1354
b37520b6
PM
13552011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1356
1357 Fix ARI warnings about new lines at the end of messages, which
1358 are unneeded as there is a new line added at the end of the message
1359 automatically.
1360 * darwin-nat.c (darwin_stop_inferior): Ditto.
1361 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
1362 * dfp.c (decimal_to_number): Ditto.
1363 * exec.c (print_section_info): Ditto.
1364 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
1365 * osdata.c (get_osdata): Ditto.
1366 * record.c (bfdcore_write): Ditto.
1367 * remote-mips.c (mips_readchar): Ditto.
1368 * remote.c (read_ptid): Ditto.
1369 * ser-mingw.c (ser_windows_raw): Ditto.
1370 * tracepoint.c (add_local_symbols): Ditto.
1371 * windows-nat.c (fake_create_process): Ditto.
1372
b08ee6a2
TT
13732011-03-16 Tom Tromey <tromey@redhat.com>
1374
1375 * tracepoint.c (stop_tracing): Don't declare.
1376 * event-top.c (after_char_processing_hook): Add `(void)'.
1377
9a6f1302
PM
13782011-03-16 Phil Muldoon <pmuldoon@redhat.com>
1379
1380 * NEWS: Add Parameter sub-classing description.
1381
7ceb86b1
KT
13822011-03-16 Kai Tietz <ktietz@redhat.com>
1383
1384 * MAINTAINERS: Update my e-mail address.
1385
efeff6cf
AT
13862011-03-15 Andreas Tobler <andreast@fgznet.ch>
1387
1388 * MAINTAINERS: Add myself for write after approval privileges.
1389
681c238c
MS
13902011-03-15 Michael Snyder <msnyder@vmware.com>
1391
f3df5b08
MS
1392 * frame.c (find_frame_sal): Assert sym is not null.
1393
13f6513c
MS
1394 * dbxread.c (process_one_symbol): Assert 'name' is not null.
1395
50412521
MS
1396 * objc-lang.c (selectors_info): Check strchr for null result.
1397
681c238c
MS
1398 * stabsread.c (define_symbol): Guard against bad stabstring input.
1399
6ced1581
PM
14002011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1401
1402 Remove trailing spaces and tabulations from pascal language
1403 support sources.
1404 p-exp.y: Ditto.
1405 p-lang.c: Ditto.
1406 p-lang.h: Ditto.
1407 p-valprint.c: Ditto.
1408
9373cf26
JK
14092011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1410
1411 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
1412 than LOW. Comment it.
1413 (read_partial_die): Call complaint for inappropriate zero LOWPC or
1414 HIGHPC not strictly higher than LOWPC.
1415
9a1edae6
PM
14162011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
1417
1418 Fix formatting of function declarations returning a pointer in
1419 previous commit.
1420 * varobj.c (varobj_add_child): Ditto.
1421 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
1422 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
1423
24e9cda0
UW
14242011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
1425
1426 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
1427 for the "generic" vector ABI used with GCC 4.3 and later.
1428 (ppc64_sysv_abi_return_value): Likewise.
1429
14302011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
1431
1432 * infcall.c (call_function_by_hand): Function return value is
1433 always a non_lval, even when using struct_return.
1434
c9174737
PA
14352011-03-15 Pedro Alves <pedro@codesourcery.com>
1436
1437 * printcmd.c (ALL_DISPLAYS_SAFE): New.
1438 (map_display_numbers): New.
1439 (do_delete_display): New.
1440 (undisplay_command): Use map_display_numbers.
1441 (do_enable_disable_display): New.
1442 (enable_disable_display_command): New function.
1443 (enable_display): Delete.
1444 (enable_display_command): New.
1445 (disable_display_command): Reimplement.
1446 (_initialize_printcmd): Adjust "enable display" command to use
1447 `enable_display_command' as callback.
1448
350c6c65
PM
14492011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1450
1451 * NEWS: Add Python breakpoint 'stop' operation.
1452
824446ad
PM
14532011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1454
1455 * NEWS: Delete duplicate entry. Fix typo.
1456
2021ad3a
PM
14572011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1458
1459 Fix ARI warning about function names in first column.
1460 Put prototype declaration on same line as return type.
1461 * objc-exp.y: Ditto.
1462 * p-exp.y: Ditto.
1463 * python/py-stopevent.h: Ditto.
1464 For long function names, split parameters to
1465 allow function name on same line as return type.
1466 * solib-pa64.c: Ditto.
1467 * varobj.c: Ditto.
1468 * varobj.h: Ditto.
1469 For long function declaration, use single line.
1470 * hppa-tdep.h: Ditto.
1471 * inferior.h: Ditto.
1472
7371cf6d
PM
14732011-03-14 Phil Muldoon <pmuldoon@redhat.com>
1474
1475 * python/python.h: Declare gdbpy_should_stop and
1476 gdbpy_breakpoint_has_py_cond.
1477 * python/python.c: Add python.h to includes. Remove python.h from
1478 HAVE_PYTHON definition
1479 (gdbpy_should_stop): New dummy function.
1480 (gdbpy_breakpoint_has_py_cond): New dummy function.
1481 * python/py-breakpoint.c (bppy_init): Rewrite to allow
1482 sub-classing capabilities.
1483 (gdbpy_should_stop): New function.
1484 (gdbpy_breakpoint_has_py_cond): New function.
1485 (local_setattro): New function.
1486 * breakpoint.c (condition_command): Add check for Python 'stop'
1487 operation.
1488 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
1489 operation function as part of stop/continue tests.
1490
37b50a69
TT
14912011-03-14 Tom Tromey <tromey@redhat.com>
1492
1493 PR gdb/12576:
1494 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
1495 (needs_frame_dwarf_call): Likewise.
1496
eeae04df
PM
14972011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
1498
1499 Fix ARI warning about functions without parameters that do not
1500 use (void).
1501 * breakpoint.c (all_tracepoints): Replace () by (void).
1502 * f-exp.y (match_string_literal): Ditto.
1503 (yylex): Ditto.
1504 * m2-exp.y (yylex): Ditto.
1505 * mep-tdep.c (current_me_module): Ditto.
1506 (current_options): Ditto.
1507 (current_cop_data_bus_width): Ditto.
1508 (current_cr_names): Ditto.
1509 (current_cr_is_float): Ditto.
1510 (current_ccr_names): Ditto.
1511 * objc-exp.y (yylex): Ditto.
1512 * p-exp.y (yylex): Ditto.
1513 * remote.c (send_interrupt_sequence): Ditto.
1514 * tracepoint.c (current_trace_status): Ditto.
1515 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
1516 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
1517
6dc3565d
MS
15182011-03-11 Michael Snyder <msnyder@vmware.com>
1519
1427fe5e
MS
1520 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
1521 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
1522 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
1523 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
1524 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
1525
60bc018f
MS
1526 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
1527 (delete_async_event_handler): Ditto.
1528
f3be5b64
MS
1529 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
1530
4c2d5724
MS
1531 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
1532
6dc3565d
MS
1533 * top.c (set_verbose): Assert showcmd was found.
1534
4e6ca6d5
MG
15352011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
1536
1537 * xtensa-tdep.c (warning_once): Correct style issues.
1538
815a83e4
YQ
15392011-03-11 Yao Qi <yao@codesourcery.com>
1540
1541 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
1542
f2eb0bc8
AS
15432011-03-11 Andreas Schwab <schwab@redhat.com>
1544
1545 * common/aclocal.m4: Remove.
1546
b801de47
MG
15472011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1548
1549 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
1550 (xtensa_write_register, xtensa_read_register): Likewise.
1551 (xtensa_hextochar): Removed.
1552 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
1553
dbab50de
MG
15542011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
1555
1556 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 1557 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
1558 (xtensa_alloc_frame_cache): Add initialization for new fields.
1559 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
1560 (warning_once): New function.
1561 (xtensa_insn_kind): New item c0opc_and.
1562 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
1563 (call0_track_op): Change arguments. New local variable litbase.
1564 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
1565 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
1566 in the prologue.
dbab50de 1567 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 1568 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
1569 Add the variety of updates to handle extended prologues, which now can
1570 conduct dynamic stack adjustments.
1571 (call0_frame_cache): Likewise.
1572 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
1573 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
1574
b2c04452
MS
15752011-03-10 Michael Snyder <msnyder@vmware.com>
1576
f8f67713
MS
1577 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
1578 (cmd_qtframe): Ditto.
1579 (cmd_qtbuffer): Ditto.
1580 (cmd_bigqtbuffer): Ditto.
1581
197f0a60
TT
15822011-03-10 Tom Tromey <tromey@redhat.com>
1583
1584 * tracepoint.c (trace_actions_command): Update.
1585 * thread.c (thread_apply_command): Update.
1586 * reverse.c (delete_bookmark_command): Update.
1587 (bookmarks_info): Update.
1588 * printcmd.c (undisplay_command): Update.
1589 * memattr.c (mem_enable_command): Update.
1590 (mem_disable_command): Update.
1591 (mem_delete_command): Update.
1592 * inferior.c (detach_inferior_command): Update.
1593 (kill_inferior_command): Update.
1594 (remove_inferior_command): Update.
1595 * cli/cli-utils.h (struct get_number_or_range_state): New.
1596 (init_number_or_range): Declare.
1597 (get_number_or_range): Update.
1598 * cli/cli-utils.c (init_number_or_range): New function.
1599 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
1600 static variables.
1601 (number_is_in_list): Update.
1602 * breakpoint.h (get_tracepoint_by_number): Update.
1603 * breakpoint.c (map_breakpoint_numbers): Update for change to
1604 get_number_or_range.
1605 (find_location_by_number): Use get_number, not
1606 get_number_or_range.
1607 (trace_pass_set_count): New function.
1608 (trace_pass_command): Update for change to get_number_or_range.
1609 Rework loop logic.
1610 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
1611 'state' parameter.
1612
ecec24e6
PM
16132011-03-10 Phil Muldoon <pmuldoon@redhat.com>
1614
1615 * python/py-param.c (add_setshow_generic): Add set/show callback
1616 parameters. Register Python object context.
1617 (get_show_value): New function.
1618 (get_set_value): New function.
1619 (call_doc_function): New function.
1620 (get_doc_string): Move behind get_show_value/get_set_value.
1621
6d6c6b1f
JK
16222011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
1623
1624 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
1625
68d6df83
MG
16262011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
1627
dbab50de 1628 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
1629 (xtensa_write_register): Likewise.
1630 (xtensa_hextochar): Add comment and update to match coding conventions.
1631 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
1632 (execute_l32e, execute_s32e, execute_code): Update comments.
1633 (xtensa_exception_handler_t): Update to match coding conventions.
1634 (xtensa_insn_kind): Likewise.
1635
85c9d6a6
MS
16362011-03-09 Michael Snyder <msnyder@vmware.com>
1637
1638 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
1639
91495617
PA
16402011-03-09 Pedro Alves <pedro@codesourcery.com>
1641
1642 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
1643
eb8c0621
TT
16442011-03-09 Tom Tromey <tromey@redhat.com>
1645
1646 * thread.c (restore_selected_frame): Handle frame_level == -1.
1647 (make_cleanup_restore_current_thread): Use
1648 get_selected_frame_if_set.
1649 * frame.h (get_selected_frame_if_set): Declare.
1650 * frame.c (get_selected_frame_if_set): New function.
1651
9f37bbcc
PA
16522011-03-09 Pedro Alves <pedro@codesourcery.com>
1653
1654 * cli/cli-cmds.c (shell_escape): Use lbasename.
1655 * coffread.c (coff_start_symtab): Constify parameter.
1656 (complete_symtab): Constify `name' parameter.
1657 (coff_symtab_read): Constify `filestring' local.
1658 (coff_getfilename): Constify return and `result' local.
1659 Use lbasename.
1660 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
1661 * linux-fork.c (info_checkpoints_command): Use lbasename.
1662 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
1663 * minsyms.c (lookup_minimal_symbol): Use lbasename.
1664 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
1665 * procfs.c (procfs_make_note_section): Use lbasename.
1666 * tui/tui-io.c (printable_part): Constity return and parameter.
1667 Use lbasename.
1668 (print_filename): Constify parameters, and local `s'.
1669 (tui_rl_display_match_list): Constify local `temp'.
1670
f8de3c55
JK
16712011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1672
1673 Revert:
1674 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1675 Fix DWARF-3+ DW_AT_accessibility default assumption.
1676 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1677 cu->header.version >= 3.
1678
d9837b00
YQ
16792011-03-09 Yao Qi <yao@codesourcery.com>
1680
1681 * common/Makefile.in: Remove.
1682 * common/configure: Remove.
1683 * common/configure.ac: Remove.
1684
e637a4f5
YQ
16852011-03-09 Yao Qi <yao@codesourcery.com>
1686
1687 Revert:
1688 2011-02-11 Yao Qi <yao@codesourcery.com>
1689
1690 * common/Makefile.in: Add copyright header.
1691
1692 2011-02-11 Yao Qi <yao@codesourcery.com>
1693
1694 * Makefile.in: Remove signals.o from COMMON_OBS. Link
1695 libcommon.a.
1696 * configure.ac: Add common to sub dir.
1697 * configure: Regenerate.
1698
f976a05d
MG
16992011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1700
1701 * xtensa-tdep.c (call0_ret): New function.
1702 (xtensa_skip_prologue): Speed up analysis.
1703
57041825
MG
17042011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1705
1706 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
1707 while executing MI command -data-list-changed-registers.
1708
08b9c608
MG
17092011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1710
1711 * xtensa-tdep.c (xtensa_read_register): New function.
1712 (xtensa_write_register): New function.
1713 (xtensa_find_register_by_name): New function.
1714 (xtensa_windowed_frame_cache): Update comments in type description.
1715 (xtensa_frame_cache): Likewise.
1716 (xtensa_window_interrupt_insn): New function.
1717 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
1718 (xtensa_insn_kind): Add new instructions.
1719 (rwx_special_register): New function.
1720 (call0_classify_opcode): Add new instructions to the analysis.
1721 (a0_saved, a7_saved, a11_saved): New variables.
1722 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
1723 (execute_l32e): New function.
1724 (execute_s32e): New function.
1725 (xtensa_exception_handler_t): New type.
1726 (execute_code): New function.
1727 (xtensa_window_interrupt_frame_cache): New function to conduct frame
1728 analysis for Xtensa Window Exception handlers.
1729
4d1acb11
MG
17302011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1731
98689b25
MG
1732 * xtensa-tdep.c (TX_PS): New.
1733 (windowing_enabled): Update to count for Call0 ABI.
1734 (xtensa_hextochar): New.
1735 (xtensa_init_reggroups): Make algorithm generic.
1736 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
1737
17382011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
1739
1740 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 1741
d3f323f3
MS
17422011-03-08 Michael Snyder <msnyder@vmware.com>
1743
3dcabaa8
MS
1744 * i386-tdep.c (i386_follow_jump): Check return value of
1745 target_read_memory.
1746 (i386_analyze_struct_return): Ditto.
1747 (i386_skip_probe): Ditto.
1748 (i386_match_insn): Ditto.
1749 (i386_skip_noop): Ditto.
1750 (i386_analyze_frame_setup): Ditto.
1751 (i386_analyze_register_saves): Ditto.
1752 (i386_skip_prologue): Ditto.
1753 (i386_skip_main_prologue): Ditto.
1754
13b3fd9b
MS
1755 * target.c (read_whatever_is_readable): Fix memory leak.
1756
d3f323f3
MS
1757 * i386-tdep.c (i386_process_record): Document fall through.
1758
421d5c74
JK
17592011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1760
1761 Fix DWARF-3+ DW_AT_accessibility default assumption.
1762 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
1763 cu->header.version >= 3.
1764
63154eca
PA
17652011-03-08 Pedro Alves <pedro@codesourcery.com>
1766
1767 * remote.c (remote_check_symbols): Skip if the target has no
1768 execution.
1769
f1a507a1
JB
17702011-03-08 Joel Brobecker <brobecker@adacore.com>
1771
1772 * target.c (read_whatever_is_readable): Reformat comment,
1773 with a minor typo fix. Minor reformatting of the code.
1774
36073a92
YQ
17752011-03-08 Yao Qi <yao@codesourcery.com>
1776
1777 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
1778 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
1779 Use cached result instead of calling displaced_in_arm_mode again.
1780 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
1781 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
1782 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
1783 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
1784 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
1785 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
1786 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
1787 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
1788 (cleanup_block_load_pc, copy_block_xfer): Likewise.
1789 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
1790 (arm_catch_kernel_helper_return): Likewise.
1791 * gdb/arm-tdep.h : Update function declarations.
1792
d3f323f3 17932011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 1794
e0e40094
MS
1795 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
1796
0b2381f5
MS
1797 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
1798
0350914a
MS
1799 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
1800
69feea6f
MS
1801 * elfread.c (elf_symtab_read): Stop memory leak.
1802
e6040cbd
MS
1803 * main.c (captured_main): Fix memory leak.
1804
052874e8
AS
18052011-03-07 Andreas Schwab <schwab@linux-m68k.org>
1806
1807 * ada-lang.c (compare_names): Call is_name_suffix with string1
1808 instead of string2.
1809
b11896a5
TT
18102011-03-07 Tom Tromey <tromey@redhat.com>
1811
1812 * xcoffread.c (xcoff_sym_fns): Update.
1813 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
1814 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
1815 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
1816 (symbol_file_add_with_addrs_or_offsets): Likewise.
1817 (reread_symbols): Handle OBJF_PSYMTABS_READ.
1818 * somread.c (som_sym_fns): Update.
1819 * psymtab.h (require_partial_symbols): Declare.
1820 * psymtab.c (require_partial_symbols): New function.
1821 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
1822 (ALL_OBJFILE_PSYMTABS): Undef.
1823 (ALL_PSYMTABS): Move from psympriv.h.
1824 (lookup_partial_symtab, find_pc_sect_psymtab)
1825 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
1826 (find_last_source_symtab_from_partial)
1827 (forget_cached_source_info_partial)
1828 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
1829 (expand_partial_symbol_tables, read_psymtabs_with_filename)
1830 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
1831 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
1832 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
1833 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
1834 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
1835 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
1836 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
1837 psymtabs.
1838 * mipsread.c (ecoff_sym_fns): Update.
1839 * machoread.c (macho_sym_fns): Update.
1840 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
1841 (read_psyms): New function.
1842 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
1843 (elf_sym_fns_lazy_psyms): New global.
1844 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
1845 dwarf2_build_psymtabs.
1846 * dbxread.c (aout_sym_fns): Update.
1847 * coffread.c (coff_sym_fns): Update.
1848
fda326dd
TT
18492011-03-07 Tom Tromey <tromey@redhat.com>
1850
1851 * infrun.c (print_exited_reason): Include inferior id and pid in
1852 message.
1853
aeaec162
TT
18542011-03-07 Tom Tromey <tromey@redhat.com>
1855
1856 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
1857 parameter.
1858 (target_has_execution_1): Update.
1859 (target_has_execution_current): Declare.
1860 (target_has_execution): Call target_has_execution_current.
1861 (default_child_has_execution): Update.
1862 * target.c (default_child_has_execution): Add 'the_ptid'
1863 parameter.
1864 (target_has_execution_1): Likewise.
1865 (target_has_execution_current): New function.
1866 (add_target): Update.
1867 (init_dummy_target): Update.
1868 * remote-m32r-sdi.c (m32r_has_execution): New function.
1869 (init_m32r_ops): Use it.
1870 * record.c (record_core_has_execution): Now static. Add
1871 'the_ptid' parameter.
1872 * inferior.c (have_live_inferiors): Don't save current thread.
1873 Use target_has_execution_1.
1874
08e14083
YQ
18752011-03-07 Yao Qi <yao@codesourcery.com>
1876
1877 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
1878
c05d19c5
JB
18792011-03-07 Joel Brobecker <brobecker@adacore.com>
1880
1881 * elfread.c (elf_symtab_read): Minor reformatting.
1882
3e6ef9e4
JB
18832011-03-07 Joel Brobecker <brobecker@adacore.com>
1884
1885 * objc-lang.c (selectors_info): Minor reformatting.
1886
dbb8534f
JB
18872011-03-07 Joel Brobecker <brobecker@adacore.com>
1888
1889 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
1890
dd70cc93
JB
18912011-03-07 Joel Brobecker <brobecker@adacore.com>
1892 Michael Snyder <msnyder@vmware.com>
1893
1894 * ada-valprint.c (ada_val_print_array): Move the declaration of
1895 "byte_order" and "elttype" inside the block where these variables
1896 are actually used. Remove some special handling for the case
1897 where "elttype" and "eltlen" are null. Replace by a comment
1898 and a couple of assertion checks.
1899
b27cf2b3
MS
19002011-03-05 Michael Snyder <msnyder@vmware.com>
1901
1902 * source.c (add_path): Replace semicolon at end of block.
1903 * dwarf2expr.c (execute_stack_op): Ditto.
1904
5387a0c6
MF
19052011-03-05 Mike Frysinger <vapier@gentoo.org>
1906
1907 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
1908 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
1909 (bfin-*-*): Likewise.
1910
e3aa49af
MS
19112011-03-05 Michael Snyder <msnyder@vmware.com>
1912
82ae4854
MS
1913 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
1914 * mdebugread.c (parse_symbol): Ditto.
1915 * parse.c (parse_exp_in_context): Ditto.
1916 * source.c (add_path): Ditto.
1917 * utils.c (gnu_debuglink_crc32): Ditto.
1918 * varobj.c (variable_language): Ditto.
1919
e3aa49af
MS
1920 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
1921
154f592e
MS
19222011-03-04 Michael Snyder <msnyder@vmware.com>
1923
da3ecdc6
MS
1924 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
1925
9cc89665
MS
1926 * symfile.c (simple_overlay_update): Check for null return value
1927 from lookup_minimal_symbol.
1928
154f592e
MS
1929 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
1930
63ffa6ee
TJB
19312011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1932
1933 * eval.c (parse_and_eval_address_1): Remove function.
1934 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
1935 instead of parse_and_eval_address_1.
1936 * value.h (parse_and_eval_address_1): Remove prototype.
1937
a17d146e
MS
19382011-03-04 Michael Snyder <msnyder@vmware.com>
1939
1940 * remote.c (putpkt_binary): Document that case stmt falls through.
1941
1a6a67de
TJB
19422011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1943
1944 * breakpointc (print_it_typical): Move NULL check from here...
1945 (print_bp_stop_message): ... to here.
1946
488919c4
MS
19472011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1948
1949 * breakpoint.c (enable_command): Use break instead of continue,
1950 and fill in a missing break.
1951 (disable_command): Ditto.
1952
1e182ce8
UW
19532011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1954
1955 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
1956 (terminal_save_ours): Remove misleading comment.
1957 (inflow_inferior_data_cleanup): Free ttystate.
1958 (inflow_inferior_exit): Likewise.
1959 (copy_terminal_info): Copy ttystate.
1960
1961 * serial.c (serial_copy_tty_state): New function.
1962 * serial.h (serial_copy_tty_state): Add prototype.
1963 (struct serial_ops): Add copy_tty_state callback.
1964 * ser-base.c (ser_base_copy_tty_state): New function.
1965 * ser-base.h (ser_base_copy_tty_state): Add prototype.
1966 * ser-go32.c (dos_copy_tty_state): New function.
1967 (dos_ops): Install copy_tty_state callback.
1968 * ser-mingw.c (_initialize_ser_windows): Likewise.
1969 * ser-pipe.c (_initialize_ser_pipe): Likewise.
1970 * ser-unix.c (hardwire_copy_tty_state): New function.
1971 (_initialize_ser_hardwire): Install it.
1972
b2c5f112
MS
19732011-03-04 Michael Snyder <msnyder@vmware.com>
1974
2abae994
MS
1975 * breakpoint.c (create_breakpoint): Add missing break statement.
1976
7f5936f9
MS
1977 Reverting this patch:
1978 * infcall.c (call_function_by_hand): Add break statements for lint.
1979
b2c5f112
MS
1980 Reverting this patch:
1981 * cli/cli-script.c (script_from_file): Add break for lint.
1982
42b1321c
MS
19832011-03-04 Michael Snyder <msnyder@vmware.com>
1984
1985 * solib.c (reload_shared_libraries_1): Close memory leak.
1986
3e2a0cee
TT
19872011-03-03 Tom Tromey <tromey@redhat.com>
1988
1989 PR gdb/12538:
1990 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
1991 DW_STRING is NULL.
1992
58397cb7
MS
19932011-03-03 Michael Snyder <msnyder@vmware.com>
1994
2e3fd767
MS
1995 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
1996 fields of struct 'st' to zero.
1997
58397cb7
MS
1998 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
1999 sal.pspace before calling set_current_source_symtab_and_line.
2000
ced54c8f
YQ
20012011-03-03 Yao Qi <yao@codesourcery.com>
2002
2003 * Makefile.in (configure-common): Remove. Let Makefile
2004 in dir common to rebuild itself.
2005 (common/Makefile): Likewise.
2006
3351ea09
JB
20072011-03-03 Joel Brobecker <brobecker@adacore.com>
2008
2009 * utils.c (parse_escape): Add i18n markup in error message.
2010
bf9f652a
YQ
20112011-03-03 Yao Qi <yao@codesourcery.com>
2012
2013 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
2014 ARM_PC_REGNUM.
2015 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
2016 (displaced_write_reg, displaced_read_reg): Likewise.
2017 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
2018 (cleanup_block_load_pc, copy_block_xfer): Likewise.
2019 (cleanup_branch): Replace magic number 14 and 15 with
2020 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
2021
d42de051
MS
20222011-03-02 Michael Snyder <msnyder@vmware.com>
2023
240f9570
MS
2024 * maint.c (maintenance_do_deprecate): No need to check for NULL.
2025
10dd8b54
MS
2026 * cli/cli-script.c (script_from_file): Add break for lint.
2027
b98bd911
MS
2028 * mdebugread.c (parse_partial_symbols): Fix indent.
2029
3494b66d
MS
2030 * target-descriptions.c (tdesc_gdb_type): No need to call
2031 xstrdup, callee saves a copy.
2032
daac021a
MS
2033 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
2034
c38d16a7
MS
2035 * infcall.c (call_function_by_hand): Add break statements for lint.
2036
905b671b
MS
2037 * utils.c (parse_escape): Escape the escape char.
2038
f2eb0bc8 2039 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
2040 PyList_Append fails.
2041 (gdbpy_inferiors): Error out if build_inferior_list fails.
2042
8c6a60d1
MS
2043 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
2044 a function call.
2045
d42de051
MS
2046 * record.c (record_restore): Move printf to before error return.
2047
4db71c0b
YQ
20482011-03-02 Yao Qi <yao@codesourcery.com>
2049
2050 * arm-tdep.h (struct displaced_step_closure): Add two new fields
2051 is_thumb and insn_size.
2052 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
2053 on both ARM and Thumb mode.
2054 (arm_process_displaced_insn): Set is_thumb and insn_size.
2055 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
2056 (arm_displaced_step_fixup): Likewise.
2057
a9dc8dcc
MS
20582011-03-01 Michael Snyder <msnyder@vmware.com>
2059
53624a93
MS
2060 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
2061
77766669
MS
2062 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
2063
62d5b8da
MS
2064 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
2065
5e9e105f
MS
2066 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
2067
dc19db01
MS
2068 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
2069 with xmalloc.
2070
5ce64950
MS
2071 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
2072 which shadows function parameter.
2073
a0aa2878
MS
2074 * tracepoint.c (create_tsv_from_upload): Superfluous call
2075 to xstrdup. Callee already calls xstrdup.
2076
e325fb69
MS
2077 * linespec.c (decode_line_1): Remove unnecessary null check.
2078
21cbba77
MS
2079 * tracepoint.c (scope_info): Fix mem leak, remove underused
2080 variable.
2081
63360adc
MS
2082 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
2083 superfluous null check.
2084
18ea20ac 2085 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 2086 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 2087
d014929c
MS
2088 * event-top.c (display_gdb_prompt): Remove superfluous null check.
2089
6e9130cf
MS
2090 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
2091 be null.
2092
5f01dbc0
MS
2093 * linespec.c (decode_line_1): Check for null before dereference.
2094
d684ab85
MS
2095 * reverse.c (record_restore): Move null-check to before pointer
2096 dereference.
2097
bfffb7e3
MS
2098 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
2099
a9dc8dcc
MS
2100 * objc-lang.c (selectors_info): Add explanitory comment.
2101 (classes_info): Ditto.
2102
478fd957
UW
21032011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
2104
2105 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
2106 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
2107 versions of the trampoline. Handle Thumb vs. ARM addresses.
2108 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
2109 (arm_linux_init_abi): Install it.
2110 * arm-tdep.c (arm_psr_thumb_bit): Make global.
2111 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
2112
0480cefa
MS
21132011-02-28 Michael Snyder <msnyder@vmware.com>
2114
ac50ab3b
MS
2115 * ui-out.c (ui_out_field_core_addr): Make local char buffer
2116 a little bigger, to avoid possibility of an overflow.
2117
f63fbe86
MS
2118 * breakpoint.c (breakpoint_adjustment_warning): Make local char
2119 buffers a little bigger, to avoid possibility of an overflow.
2120
9e91a352
MS
2121 * coffread.c (coff_getfilename): Add check to avoid overflow.
2122
f2eb0bc8 2123 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
2124 avoid overflow.
2125 (classes_info): Error out on too long REGEXP.
2126
098ab512
MS
2127 * infrun.c (handle_inferior_event): Remove unused function call.
2128
bcbd1de9
MS
2129 * fork-child.c (fork_inferior): Remove ifdef'd code and
2130 unused variable.
2131
2e456570
MS
2132 * linux-thread-db.c (attach_thread): Discard unused value.
2133
14571dad
MS
2134 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
2135
a9cbf802
MS
2136 * remote.c (remote_get_noisy_reply): Discard unused value.
2137 (remote_vcont_resume): Ditto.
2138 (remote_stop_ns): Ditto.
2139
5715d26e
MS
2140 * linespec.c (decode_objc): Delete unused variable.
2141
4a9bca80
MS
2142 * tui/tui-regs.c (tui_register_format): Delete unused variable.
2143
f47fb265
MS
2144 * dwarf2read.c (add_partial_symbol): Discard unused values.
2145 (read_base_type): Delete unused variable.
2146
e81cff30
MS
2147 * dbxread.c (read_dbx_symtab): Discard unused value.
2148
262acaeb
MS
2149 * eval.c (evaluate_subexp_standard): Delete unused variable,
2150 and discard unused values.
2151
df983543
MS
2152 * infcmd.c (_initialize_infcmd): Discard unused values.
2153
89acf84d
MS
2154 * stabsread.c (rs6000_builtin_type): Missing break statement.
2155
ab8b8aca
MS
2156 * dbxread.c (process_one_symbol): Discard unused value.
2157
6b4511ab
MS
2158 * coffread.c (coff_end_symtab): Delete unused variable.
2159
e8e80198
MS
2160 * dwarf2read.c (dw2_get_file_names): Discard unused value.
2161 (dwarf2_add_typedef): Delete unused variable.
2162 (read_namespace): Ditto.
2163 (dwarf_decode_macros): Ditto.
2164
976aa66e
MS
2165 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
2166
5b92b49f
MS
2167 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
2168
91e8df85
MS
2169 * p-valprint.c (pascal_val_print): Discard unused value.
2170
899500d6
MS
2171 * utils.c (nquery): Call va_end before return;
2172 (yquery): Ditto.
2173 (query): Ditto.
2174
0480cefa
MS
2175 * proc-service.c (ps_plog): Call va_end before return.
2176
fb6a3ed3
TT
21772011-02-28 Tom Tromey <tromey@redhat.com>
2178
2179 * python/python.c (gdbpy_value_cst): New global.
2180 (_initialize_python): Initialize it.
2181 * python/python-internal.h (gdbpy_value_cst): Declare.
2182 * python/py-value.c (convert_value_from_python): Use
2183 gdbpy_value_cst.
2184
c05202a1
MS
21852011-02-28 Michael Snyder <msnyder@vmware.com>
2186
e463f587
MS
2187 * python/py-cmd.c (cmdpy_init): Fix memory leak.
2188
c38eea1a
MS
2189 * breakpoint.c (catch_syscall_completer): Free malloced list.
2190
3ef09ab5
MS
2191 * jv-lang.c (java_primitive_type_from_name): Add missing break.
2192
8f9a01ee
MS
2193 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
2194 (lval_func_check_synthetic_pointer): Ditto.
2195 (lval_func_free_closure): Fix use-after-free.
c05202a1 2196
477d0d57
TT
21972011-02-28 Tom Tromey <tromey@redhat.com>
2198
2199 * psymtab.c (expand_partial_symbol_tables): Use
2200 ALL_OBJFILE_PSYMTABS.
2201
20937029
JK
22022011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2203
2204 * objc-lang.c (selectors_info): Error on too long REGEXP.
2205
907b7f4f
MS
22062011-02-28 Michael Snyder <msnyder@vmware.com>
2207
92e96192
MS
2208 * python/py-param.c (set_parameter_value): Add missing
2209 break statement.
2210
907b7f4f
MS
2211 * linux-record.c (record_linux_system_call): Add missing
2212 break statement.
2213
12c5a436
UW
22142011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2215
2216 * breakpoint.c (print_one_breakpoint_location): Remove unused
2217 argument PRINT_ADDRESS_BITS. Update callers.
2218 (print_one_breakpoint): Likewise.
2219
170b53b2
UW
22202011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2221
2222 * breakpoint.c (wrap_indent_at_field): New function.
2223 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
2224 Allocate ui_stream locally instead of using STB argument.
2225 (print_one_breakpoint_location): Update call.
2226 * ui-out.c (ui_out_query_field): New function.
2227 * ui-out.h (ui_out_query_field): Add prototype.
2228
8ab1f94d
JB
22292011-02-28 Joel Brobecker <brobecker@adacore.com>
2230
2231 From Michael Snyder <msnyder@vmware.com>
2232 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
2233
7d488639
MS
22342011-02-27 Michael Snyder <msnyder@vmware.com>
2235
ae179fba
MS
2236 * objc-lang.c (selectors_info): Prevent string overrun.
2237
086dbf66
MS
2238 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
2239 error in strncpy.
2240
f2eb0bc8 2241 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
2242 outer scope.
2243
7d488639
MS
2244 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
2245 param with a local variable of the same name.
2246
3bd0f5ef
MS
22472011-02-27 Michael Snyder <msnyder@vmware.com>
2248
2249 * value.c (value_from_history_ref): New function.
2250 * value.h (value_from_history_ref): Export.
2251 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
2252 to parse value history references.
2253 * cli/cli-utils.h (get_number_trailer): Update comment.
2254
22552011-02-27 Michael Snyder <msnyder@vmware.com>
2256
2257 * inferior.c (detach_inferior_command): Use get_number_or_range.
2258 (kill_inferior_command): Ditto.
2259 (remove_inferior_command): Ditto.
2260 (initialize_inferiors): Make command names plural.
2261 Update help strings.
2262
766062f6
MS
22632011-02-27 Michael Snyder <msnyder@vmware.com>
2264
2265 * darwin-nat-info.c: Fix comment typo.
2266 * dwarf2expr.h: Ditto.
2267 * fbsd-nat.c: Ditto.
2268 * fbsd-nat.h: Ditto.
2269 * frame-unwind.h: Ditto.
2270 * frame.h: Ditto.
2271 * hppa-hpux-tdep.c: Ditto.
2272 * i386-linux-nat.c: Ditto.
2273 * linux-nat.c: Ditto.
2274 * nbsd-nat.c: Ditto.
2275 * nbsd-nat.h: Ditto.
2276 * ppc-linux-tdep.c: Ditto.
2277 * serial.c: Ditto.
2278 * ui-file.h: Ditto.
2279 * tui/tui-winsource.c: Ditto.
2280
f2c4ead5
MS
22812011-02-26 Michael Snyder <msnyder@vmware.com>
2282
86b887df
MS
2283 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
2284
66fd3b1e
MS
2285 * maint.c (maintenance_do_deprecate): Plug a memory leak.
2286
8c814cdd
MS
2287 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
2288 with a local variable of the same name.
2289
6d5e094a 2290 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 2291 param with a local variable of the same name.
6d5e094a 2292 (i387_supply_xsave): Ditto.
e5b3d7d6 2293
5eee517d
MS
2294 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
2295 that it does not shadow a function parameter.
2296
8fbf6b93
MS
2297 * i386-nat.c (i386_length_and_rw_bits): Document that case
2298 statement is meant to fall through.
2299
cb969d61
MS
2300 * expprint.c (dump_subexp_body_standard): Document that case
2301 statement is meant to fall through.
2302
f2c4ead5
MS
2303 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
2304 dead if statement. Condition can't be false.
2305
b021a221
MS
23062011-02-25 Michael Snyder <msnyder@vmware.com>
2307
2308 * arm-tdep.c: Fix typos in comments.
2309 * bsd-uthread.c: Ditto.
2310 * completer.c: Ditto.
2311 * corelow.c: Ditto.
2312 * cp-namespace.c: Ditto.
2313 * cp-support.c: Ditto.
2314 * cris-tdep.c: Ditto.
2315 * dbxread.c: Ditto.
2316 * dwarf2read.c: Ditto.
2317 * frame.h: Ditto.
2318 * gdbtypes.h: Ditto.
2319 * inferior.h: Ditto.
2320 * mdebugread.c: Ditto.
2321 * mips-tdep.c: Ditto.
2322 * ppc-linux-nat.c: Ditto.
2323 * ppc-linux-tdep.c: Ditto.
2324 * printcmd.c: Ditto.
2325 * sol-thread.c: Ditto.
2326 * solib-frv.c: Ditto.
2327 * solist.h: Ditto.
2328 * sparc64-tdep.c: Ditto.
2329 * spu-tdep.c: Ditto.
2330 * stabsread.c: Ditto.
2331 * symfile.c: Ditto.
2332 * valops.c: Ditto.
2333 * varobj.c: Ditto.
2334 * vax-nat.c: Ditto.
2335 * python/py-block.c: Ditto.
2336 * python/py-symbol.c: Ditto.
2337 * python/py-symtab.c: Ditto.
2338 * python/py-value.c: Ditto.
2339 * tui/tui-win.c: Ditto.
2340
c82c0b55
MS
23412011-02-25 Michael Snyder <msnyder@vmware.com>
2342
2343 * inferior.c (print_inferior): Accept a string instead of an int
2344 for requested_inferiors, and use get_number_or_range to parse it.
2345 (info_inferiors_command): Pass args string to print_inferior.
2346 (initialize_inferiors): Change help string for info inferiors.
2347 * inferior.h (print_inferior): Export prototype change.
2348
ee00cd23
TT
23492011-02-25 Tom Tromey <tromey@redhat.com>
2350
2351 * common/ax.def (invalid2): Set to 0x31.
2352
0502ed8c
JK
23532011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2354
2355 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
2356 L and plongest.
2357 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
2358 use L and plongest.
2359 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
2360
2c9de912
MS
23612011-02-24 Michael Snyder <msnyder@vmware.com>
2362
2363 * Makefile.in (clean): Make clean should remove generated files
2364 observer.h and observer.inc.
2365
a04b0428
JB
23662011-02-24 Joel Brobecker <brobecker@adacore.com>
2367
2368 Revert the following patch (not approved yet):
2369 2011-02-21 Hui Zhu <teawater@gmail.com>
2370 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2371 * ax-gdb.c (gen_printf_expr_callback): New function.
2372 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2373 * ax-general.c (ax_memcpy): New function.
2374 (ax_print): Handle "printf".
2375 (ax_reqs): Ditto.
2376 * ax.h (ax_memcpy): Forward declare.
2377 * common/ax.def (invalid2): Removed.
2378 (printf): New entry.
2379 * printcmd.c (printcmd.h): New include.
2380 (string_printf): New function.
2381 (ui_printf): Removed.
2382 (printf_command): Remove static. Call string_printf.
2383 (eval_command): Call string_printf.
2384 * printcmd.h: New file.
2385 * tracepoint.c (validate_actionline,
2386 encode_actions_1): handle printf_command.
2387
2b52013f
TT
23882011-02-23 Tom Tromey <tromey@redhat.com>
2389
2390 * ax-general.c (ax_pick): Add missing newline.
2391
e5a67952
MS
23922011-02-23 Michael Snyder <msnyder@vmware.com>
2393
2394 * breakpoint.c (breakpoint_1): Change first argument from an int
2395 to a char pointer, so that the function now accepts a list of
f2eb0bc8 2396 breakpoints rather than just one. Use new function
e5a67952
MS
2397 'number_is_in_list' to implement.
2398 (breakpoints_info): Pass char * instead of int to breakpoint_1.
2399 (watchpoints_info): Ditto.
2400 (tracepoints_info): Ditto.
2401 (maintenance_info_breakpoints): Ditto.
2402 (_initialize_breakpoint): Update help strings to reflect the fact
2403 that these functions can now take more than one argument.
2404 * cli/cli-utils.c (number_is_in_list): New function.
2405 * cli/cli-utils.h (number_is_in_list): Export.
2406
24072011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
2408
2409 * memattr.c (mem_enable_command): Use get_number_or_range.
2410 (mem_disable_command): Ditto.
2411 (mem_delete_command): Ditto.
2412 (_initialize_mem): Tweak usage message to reflect multiple
2413 arguments.
2414
6e6fbe60
DE
24152011-02-22 Doug Evans <dje@google.com>
2416
2417 Add gdb.lookup_global_symbol python function.
2418 * NEWS: Add entry.
2419 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
2420 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
2421 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
2422
79b97fa8
TT
24232011-02-22 Tom Tromey <tromey@redhat.com>
2424
2425 * language.c (language_class_name_from_physname): Rename
2426 'curr_language' argument to 'lang'; use in body.
2427
298f437a
MS
24282011-02-22 Michael Snyder <msnyder@vmware.com>
2429
2430 * cli/cli-utils.c (number_is_in_list): Check for zero return.
2431
b7ea3126
PA
24322011-02-22 Pedro Alves <pedro@codesourcery.com>
2433
2434 * frame-unwind.h: Fix comment to mention the this frame, not the
2435 next.
2436
58ee6d60
TT
24372011-02-22 Tom Tromey <tromey@redhat.com>
2438
2439 * symfile.c (auto_solib_limit): Remove.
2440 * symfile.h (auto_solib_limit): Remove.
2441
36238dbc
JB
24422011-02-22 Joel Brobecker <brobecker@adacore.com>
2443
2444 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
2445
aea5b279
MS
24462011-02-21 Michael Snyder <msnyder@vmware.com>
2447
2448 * gdbthread.h (print_thread_info): Change prototype.
2449 * thread.c (print_thread_info): Accept char* instead of int for
2450 requested_threads argument. Use new function number_is_in_list
2451 to determine which threads to list.
2452 (info_threads_command): Pass char* to print_thread_info.
2453 * cli/cli-utils.c (number_is_in_list): New function.
2454 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 2455 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
2456 print_thread_info.
2457 (print_one_inferior): Ditto.
2458 (mi_cmd_list_thread_groups): Ditto.
2459
8caa75ee
JK
24602011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2461
2462 * common/Makefile.in (CFLAGS): New.
2463 (COMPILE): Add $(CFLAGS).
2464
ea666128
TT
24652011-02-21 Tom Tromey <tromey@redhat.com>
2466
2467 * breakpoint.c (catch_syscall_command_1): Fix typo.
2468
e9cafbcc
TT
24692011-02-21 Tom Tromey <tromey@redhat.com>
2470
2471 * reverse.c: Include cli-utils.h.
2472 * printcmd.c: Include cli-utils.h.
2473 (string_printf): Use skip_spaces.
2474 * cli/cli-utils.h: New file.
2475 * cli/cli-utils.c: New file.
2476 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
2477 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
2478 * breakpoint.h (get_number, get_number_or_range): Move to
2479 cli-utils.h.
2480 * breakpoint.c: Include cli-utils.h.
2481 (get_number_trailer, get_number, get_number_or_range)
2482 (ep_skip_leading_whitespace): Move to cli-utils.c.
2483 (create_breakpoint_sal, find_condition_and_thread)
2484 (decode_static_tracepoint_spec, watch_command_1)
2485 (watch_maybe_just_location, ep_parse_optional_if_clause)
2486 (catch_fork_command_1, catch_exec_command_1)
2487 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
2488 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
2489 (SUBDIR_CLI_SRCS): Add cli-utils.c.
2490 (HFILES_NO_SRCDIR): Add cli-utils.h.
2491 (cli-utils.o): New target.
2492
f67fd822
PM
24932011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2494
2495 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
2496 before calling discard_all_inferiors.
2497
c9def01d
UW
24982011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2499
2500 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
2501 (struct builtin_opencl_type): Remove.
2502 (builtin_opencl_type): Change return type to "struct type **".
2503 (lookup_opencl_vector_type): Update caller.
2504 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
2505 (build_opencl_types): Install plain array of "struct type *"
2506 instead of "struct builtin_opencl_type".
2507
e3039479
UW
25082011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2509 Ulrich Weigand <uweigand@de.ibm.com>
2510
2511 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
2512 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
2513 (struct arm_linux_hwbp_cap): New type.
2514 (arm_linux_get_hwbp_cap): New function.
2515 (arm_linux_get_hw_breakpoint_count): Likewise.
2516 (arm_linux_get_hw_watchpoint_count): Likewise.
2517 (arm_linux_can_use_hw_breakpoint): Likewise.
2518 (arm_hwbp_type): New type.
2519 (arm_hwbp_control_t): Likewise.
2520 (struct arm_linux_hw_breakpoint): Likewise.
2521 (struct arm_linux_thread_points): Likewise.
2522 (arm_threads): New global variable.
2523 (arm_linux_find_breakpoints_by_tid): New function.
2524 (arm_hwbp_control_initialize): Likewise.
2525 (arm_hwbp_control_is_enabled): Likewise.
2526 (arm_hwbp_control_disable): Likewise.
2527 (arm_linux_hw_breakpoint_initialize): Likewise.
2528 (arm_linux_get_hwbp_type): Likewise.
2529 (arm_linux_hw_watchpoint_initialize): Likewise.
2530 (arm_linux_hw_breakpoint_equal): Likewise.
2531 (arm_linux_insert_hw_breakpoint1): Likewise.
2532 (arm_linux_remove_hw_breakpoint1): Likewise.
2533 (arm_linux_insert_hw_breakpoint): Likewise.
2534 (arm_linux_remove_hw_breakpoint): Likewise.
2535 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
2536 (arm_linux_insert_watchpoint): Likewise.
2537 (arm_linux_remove_watchpoint): Likewise.
2538 (arm_linux_stopped_data_address): Likewise.
2539 (arm_linux_stopped_by_watchpoint): Likewise.
2540 (arm_linux_watchpoint_addr_within_range): Likewise.
2541 (arm_linux_new_thread): Likewise.
2542 (arm_linux_thread_exit): Likewise.
2543 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
2544 related target callbacks. Register arm_linux_new_thread and
2545 arm_linux_thread_exit.
2546 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
2547 * arm-tdep.c (arm_pc_is_thumb): Make global.
2548 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
2549
b5db5dfc
UW
25502011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2551
2552 * breakpoint.c (update_watchpoint): Do not attempt to recreate
2553 per-frame locations while within a function epilogue.
2554
e25b2cfa
PM
25552011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2556
2557 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
2558 to GNU coding standards.
2559
4af53f97
PM
25602011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
2561
2562 Allow use of mingw native on Windows 95 OS.
e25b2cfa 2563 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
2564 (ser_windows_close): Only call CancelIo if function exists.
2565 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
2566 to check for existence of CancelIo function in kernel32 DLL.
2567
d0e92d82
HZ
25682011-02-21 Hui Zhu <teawater@gmail.com>
2569
2570 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
2571 * ax-gdb.c (gen_printf_expr_callback): New function.
2572 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
2573 * ax-general.c (ax_memcpy): New function.
2574 (ax_print): Handle "printf".
2575 (ax_reqs): Ditto.
2576 * ax.h (ax_memcpy): Forward declare.
2577 * common/ax.def (invalid2): Removed.
2578 (printf): New entry.
2579 * printcmd.c (printcmd.h): New include.
2580 (string_printf): New function.
2581 (ui_printf): Removed.
2582 (printf_command): Remove static. Call string_printf.
2583 (eval_command): Call string_printf.
2584 * printcmd.h: New file.
2585 * tracepoint.c (validate_actionline,
2586 encode_actions_1): handle printf_command.
2587
7d357efd
MS
25882011-02-19 Michael Snyder <msnyder@vmware.com>
2589
2590 * reverse.c (delete_one_bookmark): Argument is now bookmark
2591 id rather than pointer to bookmark struct.
2592 (delete_bookmark_command): Use get_number_or_range.
2593 (goto_bookmark_command): Parse with get_number instead of strtoul.
2594 (bookmark_1): New function. Print info for one bookmark.
2595 (bookmarks_info): Use get_number_or_range and bookmark_1.
2596
7a45ebd7
MS
25972011-02-18 Michael Snyder <msnyder@vmware.com>
2598
f2eb0bc8 2599 * thread.c (info_threads_command): Re-implement using
7a45ebd7 2600 get_number_or_range.
65ebfb52 2601 (thread_apply_command): Ditto.
7a45ebd7 2602
94d5e490
TT
26032011-02-18 Tom Tromey <tromey@redhat.com>
2604
2605 * common/ax.def: New file.
2606 * ax.h (enum agent_op): Use ax.def.
2607 * ax-general.c (aop_map): Use ax.def.
2608
c7f96d2b
TT
26092011-02-18 Tom Tromey <tromey@redhat.com>
2610
2611 * ax-general.c (aop_map): Add pick and rot.
2612 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
2613 <DW_OP_rot>: Implement.
2614 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
2615 (ax_pick): Declare.
2616 * ax-general.c (ax_pick): New function.
2617
66694b75
TT
26182011-02-18 Tom Tromey <tromey@redhat.com>
2619
2620 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
2621
eeaafae2
JK
26222011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2623 Tom Tromey <tromey@redhat.com>
2624
2625 * cp-support.c (make_symbol_overload_list_namespace): Do not call
2626 make_symbol_overload_list_block with NULL BLOCK.
2627 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
2628
3c3fe74c
PA
26292011-02-18 Pedro Alves <pedro@codesourcery.com>
2630
2631 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
2632 * breakpoint.h (get_number_or_range): Declare.
2633 * printcmd.c (ALL_DISPLAYS): Declare.
2634 (delete_display): Reimplement taking a display pointer.
2635 (undisplay_command): Accept a range of displays to delete, using
2636 get_number_or_range.
2637
13163d80
PM
26382011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
2639
2640 * c-valprint.c (c_val_print): Add embedded_offset to address
2641 for arrays of unspecified length.
2642 * p-valprint.c (pascal_val_print): Likewise.
2643
b434a28f
YQ
26442011-02-18 Yao Qi <yao@codesourcery.com>
2645
2646 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
2647 (arm_process_displaced_insn): .. here. Remove parameter INSN.
2648 (thumb_process_displaced_insn): New.
2649 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
2650 call to arm_process_displaced_insn.
2651 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2652
9f6f94ff
TT
26532011-02-17 Tom Tromey <tromey@redhat.com>
2654
2655 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
2656 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
2657 compile_dwarf_to_ax. No longer static. Call
2658 dwarf2_compile_cfa_to_ax.
2659 (locexpr_tracepoint_var_ref): Update.
2660 (loclist_tracepoint_var_ref): Update.
2661 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
2662 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
2663 argument; add 'gdbarch' and 'pc'.
2664 (dwarf2_compile_cfa_to_ax): New function.
2665 (dwarf2_frame_cache): Update.
2666
e67ad678
JB
26672011-02-17 Joel Brobecker <brobecker@adacore.com>
2668
2669 * ada-lang.c (ada_type_of_array): Fix the size of the array
2670 in the case of an unconstrained packed array.
2671
946ebb0d
YQ
26722011-02-17 Yao Qi <yao@codesourcery.com>
2673
2674 * common/Makefile.in: Add more targets for make.
2675
1ba1b353
TT
26762011-02-16 Tom Tromey <tromey@redhat.com>
2677
2678 * dwarf2loc.c (unimplemented): Fix typo.
2679
b1bfef65
TT
26802011-02-16 Tom Tromey <tromey@redhat.com>
2681
2682 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
2683 (compile_dwarf_to_ax) <default>: Use unimplemented.
2684 <DW_OP_deref>: Update.
2685 (disassemble_dwarf_expression): Update.
2686 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
2687 (decode_locdesc): Update.
2688 * dwarf2expr.h (dwarf_stack_op_name): Update.
2689
5f1e6f19
TT
26902011-02-16 Tom Tromey <tromey@redhat.com>
2691
2692 * ax.h (struct aop_map) <name>: Now const.
2693
a0c78a73
PA
26942011-02-16 Tom Tromey <tromey@redhat.com>
2695
2696 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
2697 than axs_rvalue.
2698
946ebb0d 26992011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
2700
2701 * infrun.c (get_displaced_step_closure_by_addr): New.
2702 * inferior.h: Declare it.
2703 * arm-tdep.c: (arm_pc_is_thumb): Call
2704 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
2705 returns non-NULL.
2706
08807d5a
PA
27072011-02-16 Pedro Alves <pedro@codesourcery.com>
2708 Jan Kratochvil <jan.kratochvil@redhat.com>
2709
2710 gdb/
2711 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
2712
29976f3f
PA
27132011-02-16 Pedro Alves <pedro@codesourcery.com>
2714 Jan Kratochvil <jan.kratochvil@redhat.com>
2715
2716 * value.c (value_contents_copy_raw): Extend describing comment.
2717 Assert that the destination contents we're overwriting are wholly
2718 available.
fb68ae73 2719 (value_contents_copy): Extend describing comment.
29976f3f 2720
cd24cfaa
PA
27212011-02-16 Pedro Alves <pedro@codesourcery.com>
2722 Jan Kratochvil <jan.kratochvil@redhat.com>
2723
2724 * value.c (value_available_contents_eq): Remove redundant local
2725 variables. Fix available contents comparision.
2726 * value.h (value_available_contents_eq): Extend describing
2727 comment.
2728
60bbf338
YQ
27292011-02-16 Yao Qi <yao@codesourcery.com>
2730
2731 * thread.c (info_threads_command): Add missing i18n markup and remove
2732 trailing newline.
2733
17450429
PP
27342011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2735
2736 * breakpoint.c (longjmp_names): New variable.
2737 (struct breakpoint_objfile_data): New type.
2738 (breakpoint_objfile_key): New variable.
2739 (msym_not_found): New variable.
2740 (msym_not_found_p): New predicate.
2741 (get_breakpoint_objfile_data): New function.
2742 (create_overlay_event_breakpoint): Check per-objfile cache for
2743 symbols first.
2744 (create_longjmp_master_breakpoint): Likewise.
2745 (create_std_terminate_master_breakpoint): Likewise.
2746 (create_exception_master_breakpoint): Likewise.
2747 (_initialize_breakpoint): Register per-objfile data key.
2748
af02033e
PP
27492011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
2750
2751 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
2752 parameter value.
2753 (create_longjmp_master_breakpoint): Loop over longjmp names.
2754 (create_std_terminate_master_breakpoint): Const-propagate parameter
2755 value.
2756 (update_breakpoints_after_exec): Adjust.
2757 (breakpoint_re_set): Adjust.
2758
60f98dde
MS
27592011-02-15 Michael Snyder <msnyder@vmware.com>
2760
cdf99611
MS
2761 * thread.c (info_threads_command): Process arg as thread id,
2762 or list of thread ids.
2763 (thread_find_command): New command.
2764 (_initialize_thread): Document argument for info threads.
2765 Document 'thread find' command.
2766 * NEWS: Document new command "thread find".
60f98dde 2767
0feedb2c
JK
27682011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2769
2770 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
2771 * aclocal.m4: Regenerated with aclocal-1.11.1.
2772 * common/configure: Regenerate with autoconf-2.64.
2773
648cd113
KW
27742011-02-15 Ken Werner <ken.werner@de.ibm.com>
2775
2776 * opencl-lang.c (build_opencl_types): Set the size of the built-in
2777 bool data type to a size of one byte.
2778
5657161f
PA
27792011-02-15 Pedro Alves <pedro@codesourcery.com>
2780 Jan Kratochvil <jan.kratochvil@redhat.com>
2781
2782 * target.c (memory_xfer_live_readonly_partial): Document where to
2783 look for interface description.
2784
494e194e
YQ
27852011-02-15 Yao Qi <yao@codesourcery.com>
2786
2787 PR tdep/12352
2788 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
2789 order to store PC value on stack instead of text section.
2790
d9492458
TJB
27912011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
2792
2793 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
2794 the EFP register set size.
2795 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
2796 data from the VMX register.
2797 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
2798 and write data from/to the VMX register.
2799
cdf99611
MS
28002011-02-14 Michael Snyder <msnyder@vmware.com>
2801
2802 * command.h (enum command_class): New class 'no_set_class', for
2803 "show" commands without a corresponding "set" command.
2804 * value.c (_initialize_values): Use 'no_set_class' for "show values".
2805 * copying.c (_initialize_copying): Ditto for "show copying" and
2806 "show warranty".
2807 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
2808 "show version".
2809 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
2810 which there is no corresponding "set" command (eg. "show copying").
2811
424447ee
PA
28122011-02-14 Pedro Alves <pedro@codesourcery.com>
2813 Jan Kratochvil <jan.kratochvil@redhat.com>
2814
2815 * exec.c (section_table_available_memory): Change `len' parameter
2816 type to ULONGEST.
2817 * exec.h (section_table_available_memory): Ditto.
2818 * value.h (read_value_memory): Rename the `offset' parameter to
2819 `embedded_offset'.
2820
c0f61f9c 28212011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 2822 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
2823
2824 * memrange.c (compare_mem_ranges): Mention sort order in
2825 describing comment.
2826 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
2827 * tracepoint.c (traceframe_available_memory): Extend comment to
2828 mention what happens to RESULT when the target does not support
2829 the query.
2830
6bfc80c7
PA
28312011-02-14 Pedro Alves <pedro@codesourcery.com>
2832 Jan Kratochvil <jan.kratochvil@redhat.com>
2833
2834 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
2835 range.
2836
e7303042
PA
28372011-02-14 Pedro Alves <pedro@codesourcery.com>
2838
2839 * value.c (value_bits_valid, value_bits_synthetic_pointer):
2840 No longer handle NULL values.
2841
8af8e3bc
PA
28422011-02-14 Pedro Alves <pedro@codesourcery.com>
2843
2844 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
2845 * value.c: Include "exceptions.h".
2846 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
2847 generic error.
2848 * cp-abi.c: Include gdb_assert.h.
2849 (baseclass_offset): Add `embedded_offset' and `val' parameters.
2850 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
2851 errors.
2852 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
2853 parameters. No longer returns -1 on error.
2854 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
2855 `val' parameters.
2856 * cp-valprint.c: Include exceptions.h.
2857 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
2858 the baseclass_offset. Handle unavailable base classes. Use
2859 val_print_invalid_address.
2860 * p-valprint.c: Include exceptions.h.
2861 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
2862 when fetching the baseclass_offset. No longer expect
2863 baseclass_offset returning -1. Handle unavailable base classes.
2864 Use val_print_invalid_address.
2865 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
2866 `valaddr' parameter, and change its type to gdb_byte pointer. Add
2867 `embedded_offset' and `val' parameters. Adjust.
2868 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
2869 parameter, and change its type to gdb_byte pointer. Add
2870 `embedded_offset' and `val' parameters. Adjust. No longer expect
2871 baseclass_offset returning -1.
2872 (value_dynamic_cast): Use value_contents_for_printing rather than
2873 value_contents. Adjust.
2874 (search_struct_field): No longer expect baseclass_offset returning
2875 -1.
2876 (search_struct_method): If reading memory from the target is
2877 necessary, wrap it in a new value to pass to baseclass_offset. No
2878 longer expect baseclass_offset returning -1.
2879 (find_method_list): No longer expect baseclass_offset returning
2880 -1. Use value_contents_for_printing rather than value_contents.
2881 * valprint.c (val_print_invalid_address): New function.
2882 * valprint.h (val_print_invalid_address): Declare.
2883 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
2884 and `val' parameters. No longer expect baseclass_offset returning
2885 -1. Adjust.
2886 * gnu-v2-abi.c: Include "exceptions.h".
2887 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
2888 parameters. Handle unavailable memory. Recurse through
2889 gnuv2_baseclass_offset directly, rather than through
2890 baseclass_offset. No longer returns -1 on not found, instead
2891 throw an error.
2892 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
2893 `val' parameters. Adjust.
2894
1b28d0b3
PA
28952011-02-14 Pedro Alves <pedro@codesourcery.com>
2896
2897 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
2898 almost but not quite adjacent.
2899
ec0a52e1
PA
29002011-02-14 Pedro Alves <pedro@codesourcery.com>
2901
2902 * value.h (value_entirely_available): Declare.
2903 * value.c (value_entirely_available): New function.
2904 * c-valprint.c (c_value_print): Don't try fetching the pointer's
2905 real type if the pointer is unavailable.
2906
24e6bcee
PA
29072011-02-14 Pedro Alves <pedro@codesourcery.com>
2908
2909 * valops.c (value_repeat): Use read_value_memory instead of
2910 read_memory.
2911
39d37385
PA
29122011-02-14 Pedro Alves <pedro@codesourcery.com>
2913
2914 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
2915 * value.c (value_contents_copy_raw, value_contents_copy): New
2916 functions.
2917 (value_primitive_field): Use value_contents_copy_raw instead of
2918 memcpy.
2919 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
2920 memcpy.
2921 (value_array, value_slice): Ditto.
2922 * valarith.c (value_subscripted_rvalue): Use
2923 value_contents_copy_raw instead of memcpy.
2924
a3d34bf4
PA
29252011-02-14 Pedro Alves <pedro@codesourcery.com>
2926
2927 <unavailable> references.
2928
2929 * valops.c (get_value_at): Use value_from_contents_and_address,
2930 avoiding read_memory.
2931
9fc6d940
PA
29322011-02-14 Pedro Alves <pedro@codesourcery.com>
2933
2934 * c-valprint.c (c_val_print): Print a string with unavailable
2935 contents as an array.
2936
5467c6c8
PA
29372011-02-14 Pedro Alves <pedro@codesourcery.com>
2938
2939 * value.h (unpack_bits_as_long): Delete declaration.
2940 (unpack_value_bits_as_long): Declare.
2941 (unpack_value_field_as_long): Declare.
2942 (value_field_bitfield): Declare.
2943 * value.c (unpack_bits_as_long): Rename to...
2944 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
2945 value parameters. Return the extracted result in a new output
2946 parameter. If the value contents are unavailable, return false,
2947 otherwise return true.
2948 (unpack_value_bits_as_long): New.
2949 (unpack_field_as_long): Rename to...
2950 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
2951 Add embedded_offset and value parameters. Return the extracted
2952 result in a new output parameter. If the value contents are
2953 unavailable, return false, otherwise return true.
2954 (unpack_value_field_as_long): New.
2955 (unpack_field_as_long_1): New.
2956 (unpack_field_as_long): Reimplement as wrapper around
2957 unpack_value_field_as_long_1.
2958 (value_field_bitfield): New function.
2959 * valops.c (value_fetch_lazy): When fetching a bitfield, use
2960 unpack_value_bits_as_long. Mark the value as unavailable, if it
2961 is unavailable.
2962 * jv-valprint.c (java_print_value_fields): Use
2963 value_field_bitfield.
2964 * p-valprint.c (pascal_object_print_value_fields): Use
2965 value_field_bitfield.
2966 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2967
3158c6ed
PA
29682011-02-14 Pedro Alves <pedro@codesourcery.com>
2969
2970 * value.c (get_internalvar_integer): Also return the int value of
2971 TYPE_CODE_INT INTERNALVAR_VALUE values.
2972 (set_internalvar): Don't special case TYPE_CODE_INT.
2973
9fbdca0d
PA
29742011-02-14 Pedro Alves <pedro@codesourcery.com>
2975
2976 * value.c (struct internalvar) <enum internalvar_kind>: Remove
2977 INTERNALVAR_POINTER.
2978 <pointer>: Delete.
2979 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
2980 (set_internalvar): Remove special TYPE_CODE_PTR handling.
2981 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
2982
c8c1c22f
PA
29832011-02-14 Pedro Alves <pedro@codesourcery.com>
2984
2985 * value.h (value_available_contents_eq): Declare.
2986 * value.c (find_first_range_overlap): New function.
2987 (value_available_contents_eq): New function.
2988 * valprint.c (val_print_array_elements): Use
2989 value_available_contents_eq.
2990 * ada-valprint.c (val_print_packed_array_elements): Use
2991 value_available_contents_eq.
2992 * jv-valprint.c (java_value_print): Use
2993 value_available_contents_eq.
2994
e6e4e701
PA
29952011-02-14 Pedro Alves <pedro@codesourcery.com>
2996
2997 * target.c (target_read_live_memory): New function.
2998 (memory_xfer_live_readonly_partial): New.
2999 (memory_xfer_partial): If reading from a traceframe, fallback to
3000 reading unavailable read-only memory from read-only regions of
3001 live target memory.
3002 * tracepoint.c (disconnect_tracing): Adjust.
3003 (set_current_traceframe): New, factored out from
3004 set_traceframe_number.
3005 (set_traceframe_number): Reimplement to only change the traceframe
3006 number on the GDB side.
3007 (do_restore_current_traceframe_cleanup): Adjust.
3008 (make_cleanup_restore_traceframe_number): New.
3009 (cur_traceframe_number): New global.
3010 (tfile_open): Set cur_traceframe_number to no traceframe.
3011 (set_tfile_traceframe): New function.
3012 (tfile_trace_find): If looking up a traceframe using any method
3013 other than by number, make sure the current tfile traceframe
3014 matches gdb's current traceframe. Update the current tfile
3015 traceframe if the lookup succeeded.
3016 (tfile_fetch_registers, tfile_xfer_partial)
3017 (tfile_get_trace_state_variable_value): Make sure the remote
3018 traceframe matches gdb's current traceframe.
3019 * remote.c (remote_traceframe_number): New global.
3020 (remote_open_1): Set it to -1.
3021 (set_remote_traceframe): New function.
3022 (remote_fetch_registers, remote_store_registers)
3023 (remote_xfer_memory, remote_xfer_partial)
3024 (remote_get_trace_state_variable_value): Make sure the remote
3025 traceframe matches gdb's current traceframe.
3026 (remote_trace_find): If looking up a traceframe using any method
3027 other than by number, make sure the current remote traceframe
3028 matches gdb's current traceframe. Update the current remote
3029 traceframe if the lookup succeeded.
3030 * infrun.c (fetch_inferior_event): Adjust.
3031 * tracepoint.h (set_current_traceframe): Declare.
3032 (get_traceframe_number, set_traceframe_number): Add describing
3033 comments.
3034
e6ca34fc
PA
30352011-02-14 Pedro Alves <pedro@codesourcery.com>
3036
3037 Mark pieces of values as unavailable if the corresponding memory
3038 is unavailable.
3039
3040 * valops.c: Include tracepoint.h.
3041 (value_fetch_lazy): Use read_value_memory.
3042 (read_value_memory): New.
3043 * value.h (read_value_memory): Declare.
3044 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
3045 * exec.c (section_table_available_memory): New function.
3046 * exec.h (section_table_available_memory): Declare.
3047
2a7498d8
PA
30482011-02-14 Pedro Alves <pedro@codesourcery.com>
3049
3050 * Makefile.in (SFILES): Add memrange.c.
3051 (HFILES_NO_SRCDIR): Add memrange.h.
3052 (COMMON_OBS): Add memrange.o.
3053 * memrange.c: New file.
3054 * memrange.h: New file.
3055 * tracepoint.c: Include memrange.h.
3056 (struct mem_range): Delete.
3057 (mem_range_s): Delete.
3058 (traceframe_available_memory): New function.
3059 * tracepoint.h (traceframe_available_memory): Declare.
3060
b3b9301e
PA
30612011-02-14 Pedro Alves <pedro@codesourcery.com>
3062
3063 * target.h (struct traceframe_info): Forward declare.
3064 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
3065 (struct target_ops) <to_traceframe_info>: New field.
3066 (target_traceframe_info): New.
3067 * target.c (update_current_target): Inherit and default
3068 to_traceframe_info.
3069 * remote.c (PACKET_qXfer_traceframe_info): New.
3070 (remote_protocol_features): Register qXfer:traceframe-info:read.
3071 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
3072 (remote_traceframe_info): New.
3073 (init_remote_ops): Install it.
3074 (_initialize_remote): Install "set/show remote traceframe-info"
3075 commands.
3076 * tracepoint.h (parse_traceframe_info): Declare.
3077 * tracepoint.c (struct mem_range): New.
3078 (mem_range_s): New typedef.
3079 (struct traceframe_info): New.
3080 (traceframe_info): New global.
3081 (free_traceframe_info): New function.
3082 (clear_traceframe_info): New function.
3083 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
3084 info.
3085 (build_traceframe_info): New function.
3086 (tfile_traceframe_info): New function.
3087 (init_tfile_ops): Install tfile_traceframe_info.
3088 (traceframe_info_start_memory, free_result): New functions.
3089 (memory_attributes, traceframe_info_elements): New globals.
3090 (parse_traceframe_info, get_traceframe_info): New functions.
3091 * features/traceframe-info.dtd: New file.
3092 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
3093
4e07d55f
PA
30942011-02-14 Pedro Alves <pedro@codesourcery.com>
3095
3096 Base support for <unavailable> value contents.
3097
4e07d55f
PA
3098 * value.h (value_bytes_available): Declare.
3099 (mark_value_bytes_unavailable): Declare.
3100 * value.c (struct range): New struct.
3101 (range_s): New typedef.
3102 (ranges_overlap): New function.
3103 (range_lessthan): New function.
3104 (ranges_contain_p): New function.
3105 (struct value) <unavailable>: New field.
3106 (value_bytes_available): New function.
3107 (mark_value_bytes_unavailable): New function.
3108 (require_not_optimized_out): Constify parameter.
3109 (require_available): New function.
3110 (value_contents_all, value_contents): Require all bytes be
3111 available.
3112 (value_free): Free `unavailable'.
3113 (value_copy): Copy `unavailable'.
3114 * valprint.h (val_print_unavailable): Declare.
3115 * valprint.c (valprint_check_validity): Rename `offset' parameter
3116 to `embedded_offset'. If printing a scalar, check whether the
3117 value chunk is available.
3118 (val_print_unavailable): New.
3119 (val_print_scalar_formatted): Check whether the value is
3120 available.
3121 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
3122 pretty-printing unavailable values.
3123
bc9a5551
JK
31242011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3125
3126 Fix const/volatile qualifiers of C++ types, PR c++/12328.
3127 * c-typeprint.c (c_type_print_args): Update the function comment. New
3128 variable param_type, initialize it. Remove const/volatile qualifiers
3129 for language_cplus and !show_artificial. Use param_type.
3130
93b55aa1
JK
31312011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3132
3133 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
3134 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
3135 * symtab.h (struct symtab) <next>: Comment extension.
3136
181d9476
YQ
31372011-02-12 Yao Qi <yao@codesourcery.com>
3138
3139 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
3140
b708a5c7
JK
31412011-02-11 Yao Qi <yao@codesourcery.com>
3142
3143 * common/Makefile.in: Add copyright header.
3144
c5187ac6
PA
31452011-02-11 Pedro Alves <pedro@codesourcery.com>
3146
3147 * infrun.c (proceed): Move switching out and in of tfind mode from
3148 here ...
3149 (fetch_inferior_event): ... to here.
3150
4f3e6fb7
YQ
31512011-02-11 Yao Qi <yao@codesourcery.com>
3152
3153 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3154 libcommon.a.
3155 * configure.ac: Add common to sub dir.
3156 * configure: Regenerate.
3157
b708a5c7
JK
31582011-02-11 Yao Qi <yao@codesourcery.com>
3159
3160 Build libcommon.a.
3161
3162 * common/Makefile.in: New.
3163 * common/configure.ac: New.
3164 * common/aclocal.m4: New.
3165 * common/configure: Generate.
3166
2287cc7e
PA
31672011-02-10 Pedro Alves <pedro@codesourcery.com>
3168
3169 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
3170 side of the parenthesis.
3171
3172 Merge from GCC:
3173 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 3174 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 3175
fd62cb89
MS
31762011-02-08 Michael Snyder <msnyder@vmware.com>
3177
3178 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
3179
56d2815c
JK
31802011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3181
3182 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
3183 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
3184 psubd and paddd.
3185
4f7d61a8
JK
31862011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3187
3188 PR 12361.
3189 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
3190 phsubsw.
3191 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
3192 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
3193
54fcddd0
UW
31942011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3195
3196 * dwarf2read.c (read_subroutine_type): Set special calling
3197 convention flag for functions compiled by IBM XL C for OpenCL.
3198 * ppc-sysv-tdep.c: Include "dwarf2.h"
3199 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
3200 calling convention.
3201 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
3202 IBM OpenCL vector types calling convention.
3203 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
3204 (ppc_sysv_abi_broken_return_value): Likewise.
3205 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
3206 types calling convention.
3207 (ppc64_sysv_abi_return_value): Likewise.
3208 * spu-tdep.c: Include "dwarf2.h"
3209 (spu_return_value): Implement IBM OpenCL vector types calling
3210 convention.
3211
d6dafb7c
UW
32122011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
3213
3214 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
3215 correct ABI for AltiVec vector arguments.
3216
32b72a42
PA
32172011-02-07 Pedro Alves <pedro@codesourcery.com>
3218
3219 * valprint.c (val_print): Extend comment.
3220 * ada-valprint.c (ada_valprint): Rewrite comment deferring
3221 interface explanation to val_print.
3222 (ada_val_print_array): Adjust comment to current interface.
3223 (print_field_values): Adjust comment to current interface.
3224 * c-valprint.c (c_val_print): Rewrite comment deferring interface
3225 explanation to val_print.
3226 * f-valprint.c (f_val_print): Ditto.
3227 * jv-valprint.c (java_val_print): Ditto.
3228 * m2-valprint.c (m2_val_print): Ditto.
3229 * p-valprint.c (pascal_val_print): Ditto.
3230
9998af43
TJB
32312011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3232
3233 * breakpoint.c (parse_breakpoint_sals): Fix description.
3234
505500db 32352011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 3236 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
3237
3238 * python/py-inferior.c (python_on_normal_stop): New function.
3239 (python_on_resume): New function.
3240 (python_inferior_exit): New function.
3241 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
3242 inferior_exit observers.
3243 * python/py-evtregistry.c: New file.
3244 * python/py-threadevent.c : New file.
3245 * python/py-event.c: New file.
3246 * python/py-evts.c: New file.
3247 * python/py-continueevent.c: New file.
3248 * python/py-bpevent.c: New file.
3249 * python/py-signalevent.c: New file.
3250 * python/py-exetiedevent.c: New file.
3251 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
3252 Move struct breakpoint_object from here...
3253 * python/python-internal.h: ... to here.
3254 * python/py-event.h: New file.
3255 * python/py-events.h: New file.
3256 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
3257 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
3258 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
3259 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
3260 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
3261 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
3262 Add build rules for all the above.
3263
9e0ac564
TT
32642011-02-04 Tom Tromey <tromey@redhat.com>
3265
3266 * dwarf2read.c (dwarf2_section_empty_p): New function.
3267 (dwarf2_read_section): Use dwarf2_section_empty_p.
3268 (dwarf2_section_size): New function.
3269 (dwarf2_get_section_info): Unconditionally read section.
3270 (dwarf2_read_index): Use dwarf2_section_empty_p.
3271 (partial_read_comp_unit_head): Use dwarf2_section_size.
3272 (dwarf2_symbol_mark_computed): Likewise.
3273
eee5b35e
DD
32742011-02-04 David Daney <ddaney@caviumnetworks.com>
3275
3276 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
3277
385203ed
DD
32782011-02-04 David Daney <ddaney@caviumnetworks.com>
3279
3280 * mips-linux-tdep.c: Include xml-syscall.h.
3281 (mips_linux_get_syscall_number): New function.
3282 (mips_linux_init_abi): Add calls to
3283 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
3284 * data-directory/Makefile.in (SYSCALLS_FILES): Add
3285 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
3286 * syscalls/mips-n32-linux.xml: New file.
3287 * syscalls/mips-n64-linux.xml: New file.
3288 * syscalls/mips-o32-linux.xml: New file.
3289
9277c30c
UW
32902011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3291
3292 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
3293 Complain about inverted range entries.
3294 (dwarf2_record_block_ranges): Likewise.
3295
a3be7890
TJB
32962011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3297
3298 Fix some typos.
3299 * breakpoint.c (update_watchpoint): Fix name of the
3300 update_global_location_list function.
3301 (print_one_breakpoint): Fix typo.
3302 (_initialize_breakpoint): Remove extra space in hbreak help
3303 string.
3304 * breakpoint.h (struct bp_location) <length>: Fix field
3305 description.
3306
041274d8
PA
33072011-02-04 Pedro Alves <pedro@codesourcery.com>
3308
3309 * regcache.c (registers_changed_ptid): Don't explictly always
3310 clear `current_regcache'. Only clear current_thread_ptid and
3311 current_thread_arch when PTID matches. Only reinit the frame
3312 cache if PTID matches the current inferior_ptid. Move alloca(0)
3313 call to ...
3314 (registers_changed): ... here.
3315
c1c2ab58
UW
33162011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
3317
3318 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
3319 starts with __stack_chk_guard as stack guard symbol.
3320
9011945e
AB
33212011-02-03 Andrew Burgess <aburgess@broadcom.com>
3322
3323 * disasm.c (compare_lines): Handle the end of sequence markers
3324 within the line table to better support disassembling over
3325 compilation unit boundaries.
3326
e0634ccf
UW
33272011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3328
3329 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
3330 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
3331 implementation even if no symbols are available.
3332 (thumb_analyze_prologue): Update call to skip_prologue_function.
3333 (arm_analyze_prologue): Likewise.
3334
0e9e9abd
UW
33352011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3336
3337 * arm-tdep.c: Include "observer.h".
3338 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
3339 (arm_exidx_data_key): New static variable.
3340 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
3341 (struct arm_exidx_data): Likewise.
3342 (arm_exidx_data_free): New function.
3343 (arm_compare_exidx_entries): Likewise.
3344 (arm_obj_section_from_vma): Likewise.
3345 (arm_exidx_new_objfile): Likewise.
3346 (arm_find_exidx_entry): Likewise.
3347 (arm_exidx_fill_cache): Likewise.
3348 (arm_exidx_unwind_sniffer): Likewise.
3349 (arm_exidx_unwind): New global variable.
3350 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
3351 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
3352 observer. Register arm_exidx_data_key as objfile data.
3353
2e9e421f
UW
33542011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3355
3356 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
3357 due to accessing uninitialized variable. Fix indentation.
3358
580688f3
PA
33592011-02-02 Pedro Alves <pedro@codesourcery.com>
3360
3361 * c-valprint.c (c_value_print): When doing virtual base pointer
3362 adjustment, create a new value with adjusted contents rather than
3363 changing the contents of the value being printed (and getting it
3364 wrong).
3365
3d2c1d41
PA
33662011-02-02 Pedro Alves <pedro@codesourcery.com>
3367
3368 * xml-support.c (xml_find_attribute): New.
3369 (xinclude_start_include): Use it.
3370 * xml-support.h (xml_find_attribute): Declare.
3371 * memory-map.c (memory_map_start_memory)
3372 (memory_map_start_property): Use xml_find_attribute.
3373 * osdata.c (osdata_start_osdata, osdata_start_column): Use
3374 xml_find_attribute.
3375 * remote.c (start_thread): Use xml_find_attribute.
3376 * solib-target.c (library_list_start_segment)
3377 (library_list_start_section, library_list_start_library)
3378 (library_list_start_list): Use xml_find_attribute.
3379 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
3380 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
3381 (tdesc_start_field): Use xml_find_attribute.
3382
0af3e2db
UW
33832011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
3384
3385 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
3386 (BUILD_OCL_VTYPES): Update.
3387
c1039e3c
JB
33882011-02-02 Joel Brobecker <brobecker@adacore.com>
3389
3390 * configure.ac: Work around non-GNU sed limitation when computing
3391 python version number.
3392 * configure: Regenerate.
3393
600ea1be
JK
33942011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 Fix debug printing of TYPE_INSTANCE.
3397 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
3398 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
3399
56c12414
JK
34002011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3401
3402 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
3403 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
3404 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
3405 * ada-operator.inc: Rename the file to ...
3406 * ada-operator.def: ... here, wrap all the entries by macro OP.
3407 * expprint.c (op_name_standard): Remove all the entries. Include
3408 "std-operator.def" instead.
3409 * expression.h (enum exp_opcode): Include "std-operator.def" and
3410 "ada-operator.def". Move all the entries ...
3411 * std-operator.def: ... here, wrap all the entries by macro OP.
3412
c52b559d
PP
34132011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
3414
3415 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
3416 * breakpoint.c (remove_jit_event_breakpoints): New function.
3417 * jit.c (jit_descriptor_addr): Delete.
3418 (registering_code): Delete.
3419 (clear_int): Delete.
3420 (jit_inferior_data): New variable.
3421 (struct jit_inferior_data): New type.
3422 (get_jit_inferior_data): New function.
3423 (jit_inferior_data_cleanup): New function.
3424 (jit_read_descriptor): Adjust.
3425 (jit_register_code): Adjust.
3426 (jit_breakpoint_re_set_internal): New function; move code here ...
3427 (jit_inferior_init): ... from here.
3428 (jit_breakpoint_re_set): Adjust.
3429 (jit_reset_inferior_data_and_breakpoints): New function.
3430 (jit_inferior_created_observer): Adjust.
3431 (jit_inferior_exit_hook): Adjust.
3432 (jit_executable_changed_observer): New function.
3433 (jit_event_handler): Adjust.
3434 (_initialize_jit): Adjust.
3435
e839132d
MS
34362011-01-31 Michael Snyder <msnyder@vmware.com>
3437
3438 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
3439 line.
3440
47a80e90
TT
34412011-01-31 Tom Tromey <tromey@redhat.com>
3442
3443 PR python/12216:
3444 * python/python.c (execute_gdb_command): Call
3445 prevent_dont_repeat.
3446 * top.c (suppress_dont_repeat): New global.
3447 (dont_repeat): Use it.
3448 (prevent_dont_repeat): New function.
3449 * command.h (prevent_dont_repeat): Declare.
3450
45a43567
TT
34512011-01-31 Tom Tromey <tromey@redhat.com>
3452
3453 * infcmd.c (finish_backward): Use breakpoint_set_silent.
3454 * python/py-breakpoint.c (bppy_set_silent): Use
3455 breakpoint_set_silent.
3456 (bppy_set_thread): Use breakpoint_set_thread.
3457 (bppy_set_task): Use breakpoint_set_task.
3458 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
3459 (breakpoint_set_task): Declare.
3460 (make_breakpoint_silent): Remove.
3461 * breakpoint.c (breakpoint_set_silent): New function.
3462 (breakpoint_set_thread): Likewise.
3463 (breakpoint_set_task): Likewise.
3464 (make_breakpoint_silent): Remove.
3465
09d682a4
TT
34662011-01-31 Tom Tromey <tromey@redhat.com>
3467
3468 * breakpoint.h (user_breakpoint_p): Declare.
3469 * breakpoint.c (user_breakpoint_p): New function.
3470 (breakpoint_1): Use it.
3471 (save_breakpoints): Likewise.
3472
9c4ea6c5
JB
34732011-01-31 Joel Brobecker <brobecker@adacore.com>
3474
3475 * configure.ac: Add handling of Python distribution on Windows.
3476 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
3477 sysconfig variables are not defined, then do not use them.
3478 On Windows, if LIBPL is not defined, then use prefix + '/libs'
3479 instead. On Windows, return all paths using forward-slashes
3480 rather than backslashes.
3481
ac534cba
JB
34822011-01-31 Joel Brobecker <brobecker@adacore.com>
3483
3484 * configure.ac: Remove fallback behavior for building
3485 against Python. Remove tweaking of Python include path.
3486 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
3487 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
3488 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
3489 Always restore CPPFLAGS and LIBS after linking test.
3490 * configure: Regenerated.
3491 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
3492 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
3493 * python/python-internal.h: Adjust includes of Python .h files.
3494
c2f0d045
JB
34952011-01-31 Joel Brobecker <brobecker@adacore.com>
3496
3497 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
3498 in error message.
3499
6b0c4c1f
JB
35002011-01-31 Joel Brobecker <brobecker@adacore.com>
3501
3502 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
3503 value test.
3504
672c9795
YQ
35052011-01-31 Yao Qi <yao@codesourcery.com>
3506
3507 * arm-linux-nat.c: Update calls to regcache_register_status
3508 instead of regcache_valid_p.
3509 * aix-thread.c: Likewise.
3510 * i386gnu-nat.c: Likewise.
3511
80b23b6a
JK
35122011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3513
3514 Fix crash.
3515 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
3516 touching TYPE_FIELD_ARTIFICIAL.
3517
4cd712bd
RE
35182011-01-28 Richard Earnshaw <rearnsha@arm.com>
3519
3520 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
3521 Committers.
3522
ffd5ec24
PA
35232011-01-28 Pedro Alves <pedro@codesourcery.com>
3524
3525 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
3526 selected, don't try iterating over the traceframe's blocks.
3527 (tfile_has_stack): If there's no traceframe selected, then there's
3528 no stack.
3529 (tfile_has_registers): If there's no traceframe selected, then
3530 there's no registers.
3531
e8c9e0a1
PA
35322011-01-28 Pedro Alves <pedro@codesourcery.com>
3533
3534 * target.c (memory_xfer_partial): No need to restore shadows if we
3535 haven't read anything.
3536
de15c4ab
PA
35372011-01-28 Pedro Alves <pedro@codesourcery.com>
3538
3539 * mips-tdep.c (mips_print_register): Use get_frame_register_value
3540 and val_print_scalar_formatted.
3541
9f41c731
PA
35422011-01-27 Pedro Alves <pedro@codesourcery.com>
3543
3544 * tracepoint.c (tfile_read): New.
3545 (tfile_open): Use it.
3546 (tfile_get_traceframe_address): Use it.
3547 (tfile_trace_find): Use it.
3548 (walk_blocks_callback_func): New typedef.
3549 (match_blocktype): New function.
3550 (traceframe_walk_blocks): New function.
3551 (traceframe_find_block_type): New function.
3552 (tfile_fetch_registers, tfile_xfer_partial)
3553 (tfile_get_trace_state_variable_value): Use
3554 traceframe_find_block_type and tfile_read.
3555
cdefc55d
KB
35562011-01-26 Kevin Buettner <kevinb@redhat.com>
3557
3558 * remote-mips.c: Add internationalization mark ups. Remove
3559 trailing \n from already marked up strings.
3560
a81766d8
TT
35612011-01-26 Tom Tromey <tromey@redhat.com>
3562
3563 * python/py-prettyprint.c (print_string_repr): Clear
3564 'addressprint' option when calling val_print_string.
3565 (print_children): Handle Val_pretty_default. Clear 'addressprint'
3566 option when calling val_print_string.
3567
74aedc46
TT
35682011-01-26 Tom Tromey <tromey@redhat.com>
3569
3570 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
3571 GDB_PY_LL_ARG.
3572 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
3573 macros.
3574 (gdb_py_longest, gdb_py_ulongest): New typedefs.
3575 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
3576 (gdb_py_long_as_ulongest): New defines.
3577 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
3578 (gdb_py_int_as_long): Declare.
3579 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
3580 GDB_PY_LL_ARG, gdb_py_object_from_longest.
3581 (valpy_long): Add comment.
3582 * python/py-utils.c (get_addr_from_python): Use
3583 gdb_py_long_as_ulongest. Handle overflow properly.
3584 (gdb_py_object_from_longest): New function.
3585 (gdb_py_object_from_ulongest): Likewise.
3586 (gdb_py_int_as_long): Likewise.
3587 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
3588 * python/py-symtab.c (salpy_get_pc): Use
3589 gdb_py_long_from_ulongest.
3590 (salpy_get_line): Use PyInt_FromLong.
3591 * python/py-param.c (set_parameter_value): Use
3592 gdb_py_int_as_long.
3593 * python/py-lazy-string.c (stpy_get_address): Use
3594 gdb_py_long_from_ulongest.
3595 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
3596 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
3597 * python/py-breakpoint.c (bppy_set_thread): Use
3598 gdb_py_int_as_long.
3599 (bppy_set_task): Likewise.
3600 (bppy_set_ignore_count): Likewise.
3601 (bppy_set_hit_count): Likewise.
3602 * python/py-block.c (blpy_get_start): Use
3603 gdb_py_object_from_ulongest.
3604 (blpy_get_end): Likewise.
3605 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
3606
e4f6d2ec
TJB
36072011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
3608
3609 PR/symtab 11766:
3610 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
3611 * gdb/solib.c (solib_read_symbols): Check for addr_low in
3612 equality test for objfile, initialize addr_low if needed.
3613
b30aa278
PA
36142011-01-25 Pedro Alves <pedro@codesourcery.com>
3615
3616 * tui/tui-regs.c (tui_register_format): Remove dead code.
3617
ab2188aa
PA
36182011-01-25 Pedro Alves <pedro@codesourcery.com>
3619
3620 * printcmd.c (print_formatted): Use val_print_scalar_formatted
3621 instead of print_scalar_formatted.
3622 (print_scalar_formatted): Don't handle 's' format strings here,
3623 and add an assertion that we never see such format here.
3624 * valprint.h (val_print_scalar_formatted): Declare.
3625 * valprint.c (val_print_scalar_formatted): New.
3626 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
3627 instead of print_scalar_formatted.
3628 * jv-valprint.c (java_val_print): Ditto.
3629 * p-valprint.c (pascal_val_print): Ditto.
3630 * ada-valprint.c (ada_val_print_1): Ditto.
3631 * f-valprint.c (f_val_print): Ditto.
3632 * infcmd.c (registers_info): Ditto.
3633 * m2-valprint.c (m2_val_print): Ditto.
3634
66d61a4c
PA
36352011-01-25 Pedro Alves <pedro@codesourcery.com>
3636
3637 * m2-valprint.c (print_unbounded_array): Pass
3638 value_contents_for_printing rather than value_contents, to
3639 m2_print_array_contents. Also pass in the value.
3640
831adc1f
JK
36412011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3642
3643 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
3644 (save_gdb_index_command): Switch to .gdb_index version 4.
3645
20622269
PA
36462011-01-25 Pedro Alves <pedro@codesourcery.com>
3647
3648 * mi/mi-main.c (get_register): Use get_frame_register_value rather
3649 than frame_register, and always pass a valid value to val_print.
3650
585fdaa1
PA
36512011-01-25 Pedro Alves <pedro@codesourcery.com>
3652
3653 Centralize printing "<optimized out>".
3654
3655 * valprint.h (val_print_optimized_out): Declare.
3656 * cp-valprint.c (cp_print_value_fields): Use
3657 val_print_optimized_out.
3658 * jv-valprint.c (java_print_value_fields): Ditto.
3659 * p-valprint.c (pascal_object_print_value_fields): Ditto.
3660 * printcmd.c (print_formatted): Ditto.
3661 * valprint.c (valprint_check_validity): Ditto.
3662 (value_check_printable): Ditto.
3663 (val_print_optimized_out): New.
3664
29ec5263
PA
36652011-01-25 Pedro Alves <pedro@codesourcery.com>
3666
3667 * infcmd.c (default_print_registers_info): Allocate values so to
3668 never pass a NULL value to val_print.
3669
de4127a3
PA
36702011-01-25 Pedro Alves <pedro@codesourcery.com>
3671
3672 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
3673 boolean. Make sure to always pass a value that matches the
3674 contents buffer to callees. Preserve `address' for following
3675 iterations.
3676 * value.c (value_contents_for_printing_const): New.
3677 (value_address): Constify value argument.
3678 * value.h (value_contents_for_printing_const): Declare.
3679 (value_address): Constify value argument.
3680
ee99023e
PA
36812011-01-25 Pedro Alves <pedro@codesourcery.com>
3682
3683 * regcache.c (struct regcache_descr): Rename
3684 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
3685 and sizeof_cooked_register_valid_p to
3686 sizeof_cooked_register_status.
3687 (init_regcache_descr): Adjust.
3688 (struct regcache): Rename register_valid_p field to
3689 register_status.
3690 (regcache_xmalloc_1, regcache_xfree, regcache_save)
3691 (do_cooked_read): Adjust.
3692 (regcache_valid_p): Rename to ...
3693 (regcache_register_status): ... this. Adjust.
3694 (regcache_invalidate): Adjust.
3695 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
3696 Adjust.
3697 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
3698 as unavailable, not valid.
3699 (regcache_dump): Adjust.
3700 * regcache.h (enum register_status): New.
3701 (regcache_register_status): Declare.
3702 (regcache_invalidate): Delete declaration.
3703 * corelow.c (get_core_registers): Adjust.
3704 * tracepoint.c (tfile_fetch_registers): Adjust.
3705 * trad-frame.c (REG_VALUE): Rename to ...
3706 (TF_REG_VALUE): ... this.
3707 (REG_UNKNOWN): Rename to ...
3708 (TF_REG_UNKNOWN): ... this.
3709 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
3710 * mi/mi-main.c (register_changed_p): Adjust.
3711
99e42fd8
PA
37122011-01-25 Pedro Alves <pedro@codesourcery.com>
3713
3714 * regcache.c (struct regcache_descr): Remove outdated comment.
3715 (init_regcache_descr): Remove sizeof_raw_register_valid_p
3716 overallocate hack.
3717 (regcache_xmalloc): Rename to ...
3718 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
3719 Allocate the regcache type accordingly.
3720 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
3721 (regcache_xfree): Asser the source is also readonly. Copy sizeof
3722 cooked registers, not raw.
3723 (regcache_dup_no_passthrough): Delete.
3724 (get_thread_arch_regcache): Use regcache_xmalloc_1.
3725 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
3726 mention obsolete write_register_bytes.
3727 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
3728
f7605bc2
PA
37292011-01-25 Pedro Alves <pedro@codesourcery.com>
3730
3731 Stop remote_read_bytes from handling partial reads itself.
3732
3733 * remote-fileio.c: Include target.h.
3734 (remote_fileio_write_bytes): Delete.
3735 (remote_fileio_func_open, remote_fileio_func_write)
3736 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
3737 target_read_memory.
3738 (remote_fileio_func_stat): Use target_read_memory and
3739 target_write_memory.
3740 (remote_fileio_func_gettimeofday): Use target_write_memory.
3741 (remote_fileio_func_system): Use target_read_memory.
3742 * remote.c (remote_write_bytes): Make it static.
3743 (remote_read_bytes): Don't handle partial reads here.
3744 * remote.h (remote_read_bytes): Delete declaration.
3745
efc0eabd
PA
37462011-01-25 Pedro Alves <pedro@codesourcery.com>
3747
3748 Simplify XML parsing a bit.
3749
3750 * xml-support.h (gdb_xml_parse_quick): Declare.
3751 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
3752 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
3753 parameter.
3754 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
3755 gdb_xml_create_parser_and_cleanup_1.
3756 (gdb_xml_parse_quick): New.
3757 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
3758 * osdata.c (osdata_parse): Ditto.
3759 * remote.c (remote_threads_info): Ditto.
3760 * solib-target.c (solib_target_parse_libraries): Ditto.
3761 * xml-syscall.c (syscall_parse_xml): Ditto.
3762 * xml-tdesc.c (tdesc_parse_xml): Ditto.
3763
314d366a
KB
37642011-01-24 Kevin Buettner <kevinb@redhat.com>
3765
3766 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
3767 with remote-mips.o added to gdb_target_obs.
3768 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
3769
a491d753
PA
37702011-01-24 Pedro Alves <pedro@codesourcery.com>
3771
3772 * ada-valprint.c (val_print_packed_array_elements): Pass the
3773 correct struct value to val_print.
3774 (ada_val_print_1): Ditto.
3775
490f124f
PA
37762011-01-24 Pedro Alves <pedro@codesourcery.com>
3777
3778 Don't lose embedded_offset in printing routines throughout.
3779
3780 * valprint.h (val_print_array_elements): Change prototype.
3781 * valprint.c (val_print_array_elements): Add `embedded_offset'
3782 parameter, and adjust to pass it down to val_print, while passing
3783 `valaddr' or `address' unmodified. Take embedded_offset into
3784 account when checking repetitions.
3785 * c-valprint.c (c_val_print): Pass embedded_offset to
3786 val_print_array_elements instead of adjusting `valaddr' and
3787 `address'.
3788 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
3789 embedded_offset to val_print_array_elements instead of adjusting
3790 `valaddr'.
3791 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
3792 * p-valprint.c (pascal_val_print): Pass embedded_offset to
3793 val_print_array_elements and pascal_object_print_value_fields
3794 instead of adjusting `valaddr'.
3795 (pascal_object_print_value_fields): Add `offset' parameter, and
3796 adjust to use it.
3797 (pascal_object_print_value): Add `offset' parameter, and adjust to
3798 use it.
3799 (pascal_object_print_static_field): Use
3800 value_contents_for_printing/value_embedded_offset, rather than
3801 value_contents.
3802 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
3803 parameter, and adjust to use it. Use
3804 value_contents_for_printing/value_embedded_offset, rather than
3805 value_contents.
3806 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
3807 (ada_val_print_array): Add `offset' parameter, and adjust to use
3808 it.
3809 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
3810 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
3811 Instead work with offsets. Use
3812 value_contents_for_printing/value_embedded_offset, rather than
3813 value_contents. Change `defer_val_int' local type to CORE_ADDR,
3814 and use value_from_pointer to extract a target pointer, rather
3815 than value_from_longest.
3816 (print_variant_part): Add `offset' parameter. Replace
3817 `outer_valaddr' parameter by a new `outer_offset' parameter.
3818 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3819 (ada_value_print): Use
3820 value_contents_for_printing/value_embedded_offset, rather than
3821 value_contents.
3822 (print_record): Add `offset' parameter, and adjust to pass it
3823 down.
3824 (print_field_values): Add `offset' parameter. Replace
3825 `outer_valaddr' parameter by a new `outer_offset' parameter.
3826 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3827 Use value_contents_for_printing/value_embedded_offset, rather than
3828 value_contents.
3829 * d-valprint.c (dynamic_array_type): Use
3830 value_contents_for_printing/value_embedded_offset, rather than
3831 value_contents.
3832 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
3833 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
3834 (java_print_value_fields): Take `offset' into account. Don't
3835 re-adjust `valaddr'. Instead pass down adjusted offsets.
3836 (java_val_print): Take `embedded_offset' into account. Pass it to
3837 java_print_value_fields.
3838 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
3839 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
3840 down adjusted offsets.
3841 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
3842 (f_val_print): Take `embedded_offset' into account.
3843
7bfc9434
JB
38442011-01-21 Joel Brobecker <brobecker@adacore.com>
3845
3846 * inflow.c: Include "gdbcmd.h".
3847 (interactive_mode): New static global, moved here from top.c.
3848 (show_interactive_mode): New function, moved here from top.c.
3849 use gdb_has_a_terminal instead of input_from_terminal_p to
3850 determine the current mode.
3851 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
3852 setting.
3853 (_initialize_inflow): Add the "set/show interactive-mode"
3854 commands. Moved here from top.c, after having adjusted slightly
3855 the help text.
3856 * top.c (interactive_mode, show_interactive_mode): Delete, moved
3857 to inflow.c.
3858 (input_from_terminal_p): Remove handling of "interactive-mode"
3859 setting, moved to infow.c.
3860 (init_main): Remove creation of the "set/show interactive-mode"
3861 commands, moved to inflow.c.
3862
44603653
JB
38632011-01-19 Joel Brobecker <brobecker@adacore.com>
3864
3865 * NEWS: Add entry for native ia64-hpux support.
3866
4694da01
TT
38672011-01-19 Tom Tromey <tromey@redhat.com>
3868
3869 PR mi/8618:
3870 * thread.c (free_thread): Free 'name'.
3871 (print_thread_info): Emit thread name. Change CLI output.
3872 (thread_name_command): New function.
3873 (do_captured_thread_select): Emit newline.
3874 (_initialize_thread): Register 'thread name' command.
3875 * target.h (struct target_ops) <to_thread_name>: New field.
3876 (target_thread_name): New macro.
3877 * target.c (update_current_target): Handle to_thread_name.
3878 * python/py-infthread.c (thpy_get_name): New function.
3879 (thpy_set_name): Likewise.
3880 (thread_object_getset): Add "name".
3881 * linux-nat.c (linux_nat_thread_name): New function.
3882 (linux_nat_add_target): Set to_thread_name.
3883 * gdbthread.h (struct thread_info) <name>: New field.
3884
10d44370
JB
38852011-01-18 Joel Brobecker <brobecker@adacore.com>
3886
3887 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
3888 (ada_val_print_1): Likewise.
3889
e3acb115
JB
38902011-01-18 Joel Brobecker <brobecker@adacore.com>
3891
3892 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
3893 upper limit address is not greater than the function end address
3894 when the upper limit could not be computed using the debugging
3895 info.
3896
dc92e161
TT
38972011-01-17 Tom Tromey <tromey@redhat.com>
3898
3899 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
3900 get_regcomp_error.
3901 * utils.c: Include gdb_regex.h.
3902 (do_regfree_cleanup): New function.
3903 (make_regfree_cleanup): Likewise.
3904 (get_regcomp_error): Likewise.
3905 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
3906
f55af66d
TT
39072011-01-17 Tom Tromey <tromey@redhat.com>
3908
3909 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
3910 re_compile_fastmap.
3911
a5a44b53
PM
39122011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3913
3914 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
3915 for internal variables.
3916 (last_was_structop): New static variable.
3917 (COMPLETE): New token.
3918 (field_exp): New rule to group all '.' suffix handling.
3919 Add mark_struct_expression calls when approriate to be able
3920 to correctly find fields for completion.
3921 (yylex): Adapt to handle field completion and set INTVAR when
3922 required.
3923
2c291032
YQ
39242011-01-14 Yao Qi <yao@codesourcery.com>
3925
3926 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
3927 save_reggroup, restore_reggroup and all_reggroup.
3928
447b483c
JB
39292011-01-14 Joel Brobecker <brobecker@adacore.com>
3930
3931 * ada-valprint. (ada_printchar): Use the correct type length
3932 in call to ada_emit_char.
3933 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
3934
7b64a93b
PM
39352011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3936
3937 * solib-som.h (hpux_major_release): Declare variable here.
3938 * solib-som.c: Remove <sys/utsname.h> header.
3939 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
3940 (hpux_major_release): Make global, change default value to
3941 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 3942 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
3943 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
3944 Add "solib-som.h" header.
3945 (set_hpux_major_release): New function.
3946 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
3947
4e18c053
MF
39482011-01-14 Mike Frysinger <vapier@gentoo.org>
3949
3950 * configure.tgt (*-*-uclinux*): Match more Linux os targets
3951
a9df6b22
JB
39522011-01-14 Joel Brobecker <brobecker@adacore.com>
3953
3954 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
3955 new-line at end of warning message.
3956 (ia64_hpux_store_register): Remove trailing new-line at end of
3957 error message.
3958 * ia64-hpux-tdep.c: Rephrase comment.
3959 * solib-ia64-hpux.c (struct dld_info): Change type of field
3960 dld_flags from "long long" to ULONGEST.
3961
ecb956dd
PA
39622011-01-14 Pedro Alves <pedro@codesourcery.com>
3963
3964 * target.h (deprecated_child_ops): Delete declaration.
3965 * target.c (deprecated_child_ops): Delete definition.
3966
76adfcae
PA
39672011-01-14 Pedro Alves <pedro@codesourcery.com>
3968
3969 * Makefile.in (hpux-thread.o): Delete rule.
3970 * configure.ac: Don't check for HPUX DCE threads support.
3971 * configure, config.in: Regenerate.
3972 * hppa-hpux-nat.c (child_suppress_run): Delete.
3973 (hppa_hpux_child_can_run): Delete.
3974 (_initialize_hppa_hpux_nat): Don't override to_can_run.
3975 * hpux-thread.c: Delete.
3976
042e866e
JB
39772011-01-13 Joel Brobecker <brobecker@adacore.com>
3978
3979 * hpux-thread.c (hpux_pid_to_str): Delete.
3980
4ffa5a33
JB
39812011-01-13 Joel Brobecker <brobecker@adacore.com>
3982
3983 * ada-valprint.c (ada_emit_char): Remove strange code.
3984 Check that c is <= UCHAR_MAX before passing it to isascii.
3985 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
3986
de8fa76c
JB
39872011-01-13 Joel Brobecker <brobecker@adacore.com>
3988
3989 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
3990 to the case where instream is stdin.
3991
c4de7027
JB
39922011-01-13 Joel Brobecker <brobecker@adacore.com>
3993
3994 * ia64-tdep.h (struct regcache): Forward declare.
3995 (struct ia64_infcall_ops): New struct type.
3996 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
3997 and "infcall_ops".
3998 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
3999 Renames ia64_find_global_pointer.
4000 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
4001 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
4002 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
4003 methods.
4004 (ia64_infcall_ops): New static global constant.
4005 (ia64_gdbarch_init): Set tdep->infcall_ops.
4006 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
4007 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
4008 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
4009 (ia64_hpux_dummy_code): New static global constant.
4010 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
4011 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
4012 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
4013 New function.
4014 (ia64_hpux_infcall_ops): New static global constant.
4015 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
4016 for inferior function calls to work properly on ia64-hpux.
4017
77ca787b
JB
40182011-01-13 Joel Brobecker <brobecker@adacore.com>
4019
4020 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
4021 * ia64-tdep.h (struct frame_info): forward declaration.
4022 (struct gdbarch_tdep): Add field size_of_register_frame.
4023 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
4024 to determine the size of the register frame.
4025 (ia64_size_of_register_frame): New function.
4026 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
4027 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
4028 (IA64_HPUX_UREG_REASON): New macro.
4029 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
4030 New functions.
4031 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
4032 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
4033 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
4034 objects.
4035
92c9a463
JB
40362011-01-13 Joel Brobecker <brobecker@adacore.com>
4037
4038 Add support for ia64-hpux.
4039 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
4040 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
4041
4042 * configure.host: Add handling for ia64-hpux hosts. Add associated
4043 floatformats.
4044 * configure.tgt: Add handling for ia64-hpux targets.
4045 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
4046 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
4047 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
4048
f688d93f
JB
40492011-01-13 Joel Brobecker <brobecker@adacore.com>
4050
4051 [ttrace] Compute thread list immediately after attach.
4052 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
4053 New subprogram.
4054 (inf_ttrace_attach): Use it.
4055
1b89e62f
JB
40562011-01-13 Joel Brobecker <brobecker@adacore.com>
4057
4058 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
4059 if we could not determine the frame's function address. Instead,
4060 use the frame's PC, and then continue.
4061
3e5e6e2a
JB
40622011-01-13 Joel Brobecker <brobecker@adacore.com>
4063
4064 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
4065 not already defined.
4066
825d6d8a
JB
40672011-01-13 Joel Brobecker <brobecker@adacore.com>
4068
4069 * ia64-tdep.c (ia64_struct_type_p): New function.
4070 (ia64_extract_return_value): Handle integral values that are
4071 less than 8 bytes long.
4072 (ia64_push_dummy_call): Likewise.
4073
7458e667
JB
40742011-01-13 Joel Brobecker <brobecker@adacore.com>
4075
4076 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
4077 floatformat_ia64_ext.
4078 (floatformat_ia64_ext_big): New static const.
4079 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
4080
1b05df00
TT
40812011-01-12 Tom Tromey <tromey@redhat.com>
4082
4083 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
4084 messages.
4085 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
4086 (mi_cmd_thread_list_ids): Likewise.
4087 (mi_cmd_data_list_changed_registers): Likewise.
4088 (mi_cmd_data_list_register_values): Likewise.
4089 (mi_cmd_data_write_register_values): Likewise.
4090 (mi_cmd_data_evaluate_expression): Likewise.
4091 (mi_cmd_data_read_memory): Likewise.
4092 (mi_cmd_data_read_memory_bytes): Likewise.
4093 (mi_cmd_data_write_memory): Likewise.
4094 (mi_cmd_enable_timings): Likewise.
4095 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
4096 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
4097 (mi_cmd_var_delete): Likewise.
4098 (mi_cmd_var_set_format): Likewise.
4099 (mi_cmd_var_show_format): Likewise.
4100 (mi_cmd_var_info_num_children): Likewise.
4101 (mi_cmd_var_list_children): Likewise.
4102 (mi_cmd_var_info_type): Likewise.
4103 (mi_cmd_var_info_expression): Likewise.
4104 (mi_cmd_var_show_attributes): Likewise.
4105 (mi_cmd_var_assign): Likewise.
4106 (mi_cmd_var_update): Likewise.
4107 (mi_cmd_enable_pretty_printing): Likewise.
4108 (mi_cmd_var_set_update_range): Likewise.
4109 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
4110 messages.
4111 (mi_cmd_target_file_put): Likewise.
4112 (mi_cmd_target_file_delete): Likewise.
4113 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
4114 messages.
4115 (mi_cmd_stack_info_depth): Likewise.
4116 (mi_cmd_stack_list_locals): Likewise.
4117 (mi_cmd_stack_list_args): Likewise.
4118 (mi_cmd_stack_select_frame): Likewise.
4119 (mi_cmd_stack_select_frame): Likewise.
4120 (mi_cmd_stack_info_frame): Likewise.
4121 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
4122 messages.
4123 (mi_cmd_file_list_exec_source_files): Likewise.
4124 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
4125 (mi_cmd_env_cd): Likewise.
4126 (mi_cmd_env_path): Likewise.
4127 (mi_cmd_env_dir): Likewise.
4128 (mi_cmd_inferior_tty_show): Likewise.
4129 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
4130 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
4131 (mi_cmd_break_watch): Likewise.
4132
ad422571
TJB
41332011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
4134
4135 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
4136 (ppc_linux_insert_hw_breakpoint): Likewise.
4137 (ppc_linux_remove_hw_breakpoint): Likewise.
4138 (ppc_linux_insert_watchpoint): Likewise.
4139
c2ff108b
JK
41402011-01-12 Andrew Burgess <aburgess@broadcom.com>
4141 Jan Kratochvil <jan.kratochvil@redhat.com>
4142
4143 PR fortran/11104 and DWARF unbound arrays detection.
4144 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
4145 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
4146 unspecified upper bound.
4147 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
4148 variables array_size_array, tmp_type and offset_item. New variable
4149 array. Remove call to f77_get_upperbound. New variables array_type
4150 and index. Call value_subscripted_rvalue for each dimenasion. Remove
4151 the final call to deprecated_set_value_type.
4152
41e8491f
JK
41532011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 Make value allocations more lazy.
4156 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
4157 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 4158 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
4159 instead of allocate_value and set_value_lazy.
4160 * findvar.c (value_of_register_lazy): Likewise.
4161 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 4162 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
4163 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
4164 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
4165 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
4166 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
4167 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
4168 the end, remove set_value_lazy there.
4169 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
4170 instead of allocate_value and set_value_lazy when possible.
4171 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
4172 * value.c (allocate_computed_value): Use allocate_value_lazy instead
4173 of allocate_value and set_value_lazy.
4174 (value_from_contents_and_address): Use allocate_value_lazy instead of
4175 allocate_value and set_value_lazy when possible.
4176
b716877b
AB
41772011-01-12 Andrew Burgess <aburgess@broadcom.com>
4178
4179 * disasm.c (dump_insns): Support dumping opcodes for MI.
4180 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
4181 dumping of instruction opcodes.
4182
d5ae309f
JB
41832011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
4184
4185 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
4186 appropiately.
4187
98871305
TT
41882011-01-11 Tom Tromey <tromey@redhat.com>
4189
4190 * thread.c (do_captured_thread_select): Emit newline before
4191 printing frame.
4192
c378eb4e
MS
41932011-01-11 Michael Snyder <msnyder@vmware.com>
4194
4195 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
4196 * score-tdep.c: Ditto.
4197 * score-tdep.h: Ditto.
4198 * ser-base.c: Ditto.
4199 * ser-go32.c: Ditto.
4200 * serial.c: Ditto.
4201 * serial.h: Ditto.
4202 * ser-mingw.c: Ditto.
4203 * ser-pipe.c: Ditto.
4204 * ser-tcp.c: Ditto.
4205 * ser-unix.c: Ditto.
4206 * sh64-tdep.c: Ditto.
4207 * shnbsd-nat.c: Ditto.
4208 * sh-tdep.c: Ditto.
4209 * sh-tdep.h: Ditto.
4210 * solib.c: Ditto.
4211 * solib-darwin.c: Ditto.
4212 * solib-frv.c: Ditto.
4213 * solib.h: Ditto.
4214 * solib-irix.c: Ditto.
4215 * solib-osf.c: Ditto.
4216 * solib-pa64.c: Ditto.
4217 * solib-som.c: Ditto.
4218 * solib-spu.c: Ditto.
4219 * solib-sunos.c: Ditto.
4220 * solib-svr4.c: Ditto.
4221 * solist.h: Ditto.
4222 * sol-thread.c: Ditto.
4223 * somread.c: Ditto.
4224 * source.c: Ditto.
4225 * source.h: Ditto.
4226 * sparc64-linux-tdep.c: Ditto.
4227 * sparc64-tdep.c: Ditto.
4228 * sparc-linux-nat.c: Ditto.
4229 * sparc-linux-tdep.c: Ditto.
4230 * sparc-sol2-nat.c: Ditto.
4231 * sparc-sol2-tdep.c: Ditto.
4232 * sparc-tdep.c: Ditto.
4233 * sparc-tdep.h: Ditto.
4234 * spu-tdep.c: Ditto.
4235 * stabsread.c: Ditto.
4236 * stabsread.h: Ditto.
4237 * stack.c: Ditto.
4238 * symfile.c: Ditto.
4239 * symfile.h: Ditto.
4240 * symmisc.c: Ditto.
4241 * symtab.c: Ditto.
4242 * symtab.h: Ditto.
4243 * target.c: Ditto.
4244 * target-descriptions.c: Ditto.
4245 * target-descriptions.h: Ditto.
4246 * target.h: Ditto.
4247 * target-memory.c: Ditto.
4248 * terminal.h: Ditto.
4249 * thread.c: Ditto.
4250 * top.c: Ditto.
4251 * tracepoint.c: Ditto.
4252 * tracepoint.h: Ditto.
4253 * trad-frame.h: Ditto.
4254 * typeprint.c: Ditto.
4255
581e13c1
MS
42562011-01-11 Michael Snyder <msnyder@vmware.com>
4257
4258 * ui-file.c: Comment cleanup, mostly periods and spaces.
4259 * ui-file.h: Ditto.
4260 * ui-out.c: Ditto.
4261 * ui-out.h: Ditto.
4262 * utils.c: Ditto.
4263 * v850-tdep.c: Ditto.
4264 * valarith.c: Ditto.
4265 * valops.c: Ditto.
4266 * valprint.c: Ditto.
4267 * valprint.h: Ditto.
4268 * value.c: Ditto.
4269 * value.h: Ditto.
4270 * varobj.c: Ditto.
4271 * varobj.h: Ditto.
4272 * vax-tdep.c: Ditto.
4273 * vec.c: Ditto.
4274 * vec.h: Ditto.
4275 * version.h: Ditto.
4276 * windows-nat.c: Ditto.
4277 * windows-tdep.c: Ditto.
4278 * xcoffread.c: Ditto.
4279 * xcoffsolib.c: Ditto.
4280 * xml-support.c: Ditto.
4281 * xstormy16-tdep.c: Ditto.
4282 * xtensa-tdep.c: Ditto.
4283 * xtensa-tdep.h: Ditto.
4284
90e4670f
TJB
42852011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4286
4287 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
4288 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
4289
e09342b5
TJB
42902011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4291 Thiago Jung Bauermann <bauerman@br.ibm.com>
4292
4293 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 4294 * breakpoint.h
e09342b5
TJB
4295 (struct breakpoint_ops) <resources_needed>: New method.
4296 Initialize to NULL in all existing breakpoint_ops instances.
4297 (struct breakpoint) <exact>: New field.
4298 (target_exact_watchpoints): Declare external global.
4299 * breakpoint.c (target_exact_watchpoints): New global flag.
4300 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
4301 b->enable_state to bp_enabled before calling
4302 hw_watchpoint_used_count.
4303 (hw_watchpoint_used_count): Iterate over all bp_locations in a
4304 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
4305 if available.
4306 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
4307 if the watchpoint is exact.
4308 (resources_needed_watchpoint): New function.
4309 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
4310 (watch_command_1): Set b->exact if the user asked for an exact
4311 watchpoint and one can be set.
4312 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
4313 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
4314 the user asks for an exact watchpoint and one can be set. Return
4315 number of needed debug registers to watch the expression.
4316 * gdbtypes.c (is_scalar_type): New function, based on
4317 valprint.c:scalar_type_p.
4318 (is_scalar_type_recursive): New function.
4319 * gdbtypes.h (is_scalar_type_recursive): Declare.
4320 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
4321 handle regions when ranged watchpoints are available.
4322 (create_watchpoint_request): New function.
4323 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
4324 create_watchpoint_request.
4325 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
4326 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
4327 `set powerpc' and `show powerpc' commands.
4328 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
4329 Mention documentation comment in the target macro.
4330 (target_region_ok_for_hw_watchpoint): Document return value.
4331
9fa40276
TJB
43322011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4333
4334 * breakpoint.c (update_watchpoint): Decide on using a software or
4335 hardware watchpoint after the bp_locations are created.
4336
77b06cd7
TJB
43372010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
4338
4339 Convert hardware watchpoints to use breakpoint_ops.
4340 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
4341 <insert_location>: ... this. Return int instead of void.
4342 Accept pointer to struct bp_location instead of pointer to
4343 struct breakpoint. Adapt all implementations.
f2eb0bc8 4344 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
4345 <remove_location>: ... this. Accept pointer to struct bp_location
4346 instead of pointer to struct breakpoint. Adapt all implementations.
4347 * breakpoint.c (insert_catchpoint): Delete function.
4348 (insert_bp_location): Call the watchpoint or catchpoint's
4349 breakpoint_ops.insert method.
4350 (remove_breakpoint_1): Call the watchpoint or catchpoint's
4351 breakpoint_ops.remove method.
4352 (insert_watchpoint, remove_watchpoint): New functions.
4353 (watchpoint_breakpoint_ops): New structure.
4354 (watch_command_1): Initialize the OPS field.
4355 * inf-child.c (inf_child_insert_fork_catchpoint)
4356 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
4357 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
4358 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
4359 Delete functions.
4360 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
4361 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
4362 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
4363 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
4364 * target.c (update_current_target): Change default implementation of
4365 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
4366 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
4367 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
4368 to_set_syscall_catchpoint to return_one.
4369 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
4370 (debug_to_insert_exec_catchpoint): Report return value.
4371 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
4372 (to_insert_exec_catchpoint): Change declaration to return int instead
4373 of void.
4374
9b20d036
MS
43752011-01-11 Michael Snyder <msnyder@vmware.com>
4376
4377 * arm-tdep.c: Internationalization.
4378 * c-lang.c: Ditto.
4379 * charset.c: Ditto.
4380 * fork-child.c: Ditto.
4381 * nto-procfs.c: Ditto.
4382 * ppc-sysv-tdep.c: Ditto.
4383 * procfs.c: Ditto.
4384 * remote-mips.c: Ditto.
4385 * remote.c: Ditto.
4386 * rs6000-nat.c: Ditto.
4387 * rs6000-tdep.c: Ditto.
4388 * target.c: Ditto.
4389 * valops.c: Ditto.
4390 * value.c: Ditto.
4391 * xml-support.c: Ditto.
4392 * mi/mi-cmd-break.c: Ditto.
4393 * mi/mi-cmd-var.c: Ditto.
4394 * mi/mi-interp.c: Ditto.
4395 * mi/mi-main.c: Ditto.
4396
dae477fe
AB
43972011-01-11 Andrew Burgess <aburgess@broadcom.com>
4398
4399 * remote-sim.c (gdbsim_store_register): Update API to
4400 sim_store_register to check more error conditions.
4401
0df8b418
MS
44022011-01-10 Michael Snyder <msnyder@vmware.com>
4403
4404 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
4405 * nto-tdep.c: Ditto.
4406 * nto-tdep.h: Ditto.
4407 * objc-exp.y: Ditto.
4408 * objc-lang.c: Ditto.
4409 * objfiles.c: Ditto.
4410 * objfiles.h: Ditto.
4411 * observer.c: Ditto.
4412 * opencl-lang.c: Ditto.
4413 * osabi.c: Ditto.
4414 * parse.c: Ditto.
4415 * parser-defs.h: Ditto.
4416 * p-exp.y: Ditto.
4417 * p-lang.c: Ditto.
4418 * posix-hdep.c: Ditto.
4419 * ppcbug-rom.c: Ditto.
4420 * ppc-linux-nat.c: Ditto.
4421 * ppc-linux-tdep.c: Ditto.
4422 * ppc-linux-tdep.h: Ditto.
4423 * ppcnbsd-tdep.c: Ditto.
4424 * ppcobsd-tdep.c: Ditto.
4425 * ppcobsd-tdep.h: Ditto.
4426 * ppc-sysv-tdep.c: Ditto.
4427 * ppc-tdep.h: Ditto.
4428 * printcmd.c: Ditto.
4429 * proc-abi.c: Ditto.
4430 * proc-flags.c: Ditto.
4431 * procfs.c: Ditto.
4432 * proc-utils.h: Ditto.
4433 * progspace.h: Ditto.
4434 * prologue-value.c: Ditto.
4435 * prologue-value.h: Ditto.
4436 * psympriv.h: Ditto.
4437 * psymtab.c: Ditto.
4438 * p-typeprint.c: Ditto.
4439 * p-valprint.c: Ditto.
4440 * ravenscar-sparc-thread.c: Ditto.
4441 * ravenscar-thread.c: Ditto.
4442 * ravenscar-thread.h: Ditto.
4443 * record.c: Ditto.
4444 * regcache.c: Ditto.
4445 * regcache.h: Ditto.
4446 * remote.c: Ditto.
4447 * remote-fileio.c: Ditto.
4448 * remote-fileio.h: Ditto.
4449 * remote.h: Ditto.
4450 * remote-m32r-sdi.c: Ditto.
4451 * remote-mips.c: Ditto.
4452 * remote-sim.c: Ditto.
4453 * rs6000-aix-tdep.c: Ditto.
4454 * rs6000-nat.c: Ditto.
4455 * rs6000-tdep.c: Ditto.
4456
0d7a18f7
MS
44572011-01-10 Michael Snyder <msnyder@vmware.com>
4458
4459 * charset.c (validate): Internationalization.
4460 * coffread.c (read_one_sym): Ditto.
4461 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
4462 * h8300-tdep.c (H8300_extract_return_value): Ditto.
4463 * inflow.c (new_tty): Ditto.
4464 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
4465 * m32c-tdep.c (m32c_return_value): Ditto.
4466 * mep-tdep.c (mep_store_return_value): Ditto.
4467 * score-tdep.c (score7_fetch_insn): Ditto.
4468 * ser-mingw.c (pipe_windows_open): Ditto.
4469 * sh64-tdep.c (sh64_extract_return_value): Ditto.
4470 * spu-tdep.c (spu_register_type): Ditto.
4471 * tracepoint.c (trace_find_command): Ditto.
4472 * valarith.c (value_pos): Ditto.
4473
9a153e0b
JB
44742011-01-10 Joel Brobecker <brobecker@adacore.com>
4475
4476 * ada-valprint.c (printstr): Minor comment reformatting.
4477
35ecd2d6
MS
44782011-01-08 Michael Snyder <msnyder@vmware.com>
4479
4480 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
4481 markup.
4482
1777feb0
MS
44832011-01-08 Michael Snyder <msnyder@vmware.com>
4484
4485 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
4486 * hppa-hpux-tdep.c: Ditto.
4487 * hppa-linux-nat.c: Ditto.
4488 * hppa-linux-tdep.c: Ditto.
4489 * hppanbsd-tdep.c: Ditto.
4490 * hppa-tdep.c: Ditto.
4491 * hppa-tdep.h: Ditto.
4492 * hpux-thread.c: Ditto.
4493 * i386-cygwin-tdep.c: Ditto.
4494 * i386-darwin-nat.c: Ditto.
4495 * i386gnu-nat.c: Ditto.
4496 * i386-linux-nat.c: Ditto.
4497 * i386-linux-tdep.c: Ditto.
4498 * i386-nat.c: Ditto.
4499 * i386-nat.h: Ditto.
4500 * i386nbsd-tdep.c: Ditto.
4501 * i386-sol2-nat.c: Ditto.
4502 * i386-stub.c: Ditto.
4503 * i386-tdep.c: Ditto.
4504 * i386-tdep.h: Ditto.
4505 * i387-tdep.c: Ditto.
4506 * ia64-linux-nat.c: Ditto.
4507 * ia64-linux-tdep.c: Ditto.
4508 * ia64-tdep.c: Ditto.
4509 * infcall.c: Ditto.
4510 * infcall.h: Ditto.
4511 * infcmd.c: Ditto.
4512 * inferior.c: Ditto.
4513 * inferior.h: Ditto.
4514 * infloop.c: Ditto.
4515 * inflow.c: Ditto.
4516 * infrun.c: Ditto.
4517 * interps.c: Ditto.
4518 * interps.h: Ditto.
4519 * iq2000-tdep.c: Ditto.
4520 * irix5-nat.c: Ditto.
4521 * jit.c: Ditto.
4522 * jit.h: Ditto.
4523 * jv-exp.y: Ditto.
4524 * jv-lang.c: Ditto.
4525 * jv-lang.h: Ditto.
4526 * jv-typeprint.c: Ditto.
4527 * jv-valprint.c: Ditto.
4528 * language.c: Ditto.
4529 * language.h: Ditto.
4530 * linespec.c: Ditto.
4531 * linux-fork.c: Ditto.
4532 * linux-nat.c: Ditto.
4533 * linux-thread-db.c: Ditto.
4534 * lm32-tdep.c: Ditto.
4535
025bb325
MS
45362011-01-08 Michael Snyder <msnyder@vmware.com>
4537
4538 * m2-exp.y: Comment cleanup, mostly periods and spaces.
4539 * m2-lang.c: Ditto.
4540 * m2-typeprint.c: Ditto.
4541 * m2-valprint.c: Ditto.
4542 * m32c-tdep.c: Ditto.
4543 * m32r-linux-nat.c: Ditto.
4544 * m32r-rom.c: Ditto.
4545 * m32r-tdep.c: Ditto.
4546 * m32r-tdep.h: Ditto.
4547 * m68hc11-tdep.c: Ditto.
4548 * m58klinux-nat.c: Ditto.
4549 * m68k-tdep.c: Ditto.
4550 * m88k-tdep.c: Ditto.
4551 * m88k-tdep.h: Ditto.
4552 * machoread.c: Ditto.
4553 * macrocmd.c: Ditto.
4554 * macroexp.c: Ditto.
4555 * macrotab.c: Ditto.
4556 * main.c: Ditto.
4557 * maint.c: Ditto.
4558 * mdebugread.c: Ditto.
4559 * mdebugread.h: Ditto.
4560 * memattr.c: Ditto.
4561 * memattr.h: Ditto.
4562 * memory-map.h: Ditto.
4563 * mep-tdep.c: Ditto.
4564 * microblaze-rom.c: Ditto.
4565 * microblaze-tdep.c: Ditto.
4566 * minsyms.c: Ditto.
4567 * mips-irix-tdep.c: Ditto.
4568 * mips-linux-nat.c: Ditto.
4569 * mips-linux-tdep.c: Ditto.
4570 * mips-linux-tdep.h: Ditto.
4571 * mipsnbsd-nat.c: Ditto.
4572 * mipsnbsd-tdep.c: Ditto.
4573 * mipsread.c: Ditto.
4574 * mips-tdep.c: Ditto.
4575 * mips-tdep.h: Ditto.
4576 * mn10300-linux-tdep.c: Ditto.
4577 * mn10300-tdep.c: Ditto.
4578 * mn10300-tdep.h: Ditto.
4579 * monitor.c: Ditto.
4580 * monitor.h: Ditto.
4581 * moxie-tdep.c: Ditto.
4582 * moxie-tdep.h: Ditto.
4583 * mt-tdep.c: Ditto.
4584
1642781b
MF
45852011-01-08 Mike Frysinger <vapier@gentoo.org>
4586
4587 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
4588
394b0adb
JB
45892011-01-08 Robert Millan <rmh@gnu.org>
4590
4591 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
4592
b670013c
MS
45932011-01-07 Michael Snyder <msnyder@vmware.com>
4594
4595 * charset.c (_initialize_charset): Fix typo in string.
4596
a743e542
MS
45972011-01-07 Michael Snyder <msnyder@vmware.com>
4598
4599 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
4600 for i18n.
f2eb0bc8 4601 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
4602 Split line so that operator goes to beginning of line.
4603 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
4604 assignment out of if statement.
4605
0963b4bd
MS
46062011-01-07 Michael Snyder <msnyder@vmware.com>
4607
4608 * ada-lang.c: Comment cleanup, mostly periods and spaces.
4609 * ada-lang.h: Ditto.
4610 * ada-tasks.c: Ditto.
4611 * ada-valprint.c: Ditto.
4612 * aix-threads.c: Ditto.
4613 * alpha-linux-nat.c: Ditto.
4614 * alpha-linux-tdep.c: Ditto.
4615 * alpha-mdebug-tdep.c: Ditto.
4616 * alpha-nat.c: Ditto.
4617 * alpha-osf1-tdep.c: Ditto.
4618 * alpha-tdep.c: Ditto.
4619 * alphabsd-nat.c: Ditto.
4620 * alphabsd-tdep.c: Ditto.
4621 * amd64-darwin-tdep.c: Ditto.
4622 * amd64-linux-nat.c: Ditto.
4623 * amd64-linux-tdep.c: Ditto.
4624 * amd64-sol2-tdep.c: Ditto.
4625 * amd64-tdep.c: Ditto.
4626 * amd64-fbsd-tdep.c: Ditto.
4627 * amd64-nbsd-tdep.c: Ditto.
4628 * amd64-obsd-tdep.c: Ditto.
4629 * amd64-linux-nat.c: Ditto.
4630 * amd64-linux-tdep.c: Ditto.
4631 * arm-tdep.c: Ditto.
4632 * arm-tdep.h: Ditto.
4633 * armnbsd-nat.c: Ditto.
4634 * avr-tdep.c: Ditto.
4635 * bfin-tdep.c: Ditto.
4636 * bsd-kvm.c: Ditto.
4637 * c-typeprintc: Ditto.
4638 * c-valprint.c: Ditto.
4639 * coff-pe-read.h: Ditto.
4640 * coffreead.c: Ditto.
4641 * cris-tdep.c: Ditto.
4642 * d-lang.c: Ditto.
4643 * darwin-nat-info.c: Ditto.
4644 * darwin-nat.c: Ditto.
4645 * dbug-rom.c: Ditto.
4646 * dbxread.c: Ditto.
4647 * dcache.c: Ditto.
4648 * dcache.h: Ditto.
4649 * dec-thread.c: Ditto.
4650 * defs.h: Ditto.
4651 * demangle.c: Ditto.
4652 * dicos-tdep.c: Ditto.
4653 * dictionary.c: Ditto.
4654 * dictionary.h: Ditto.
4655 * dink32-rom.c: Ditto.
4656 * disasm.c: Ditto.
4657 * doublest.c: Ditto.
4658 * dsrec.c: Ditto.
4659 * dummy-frame.c: Ditto.
4660 * dwarf2-frame.c: Ditto.
4661 * dwarf2expr.c: Ditto.
4662 * dwarf2loc.c: Ditto.
4663 * dwarf2read.c: Ditto.
4664 * elfread.c: Ditto.
4665 * environ.c: Ditto.
4666 * eval.c: Ditto.
4667 * event-top.h: Ditto.
4668 * exceptions.c: Ditto.
4669 * exceptions.h: Ditto.
4670 * exec.c: Ditto.
4671 * expprint.c: Ditto.
4672 * expression.h: Ditto.
4673 * f-exp.y: Ditto.
4674 * f-lang.c: Ditto.
4675 * f-lang.h: Ditto.
4676 * f-typeprint.c: Ditto.
4677 * f-valprint.c: Ditto.
4678 * fbsd-nat.c: Ditto.
4679 * findvar.c: Ditto.
4680 * fork-child.c: Ditto.
4681 * frame.c: Ditto.
4682 * frame.h: Ditto.
4683 * frv-linux-tdep.c: Ditto.
4684 * frv-tdep.c: Ditto.
4685 * gcore.c: Ditto.
4686 * gdb-stabs.h: Ditto.
4687 * gdb_assert.h: Ditto.
4688 * gdb_string.h: Ditto.
4689 * gdb_thread_db.h: Ditto.
4690 * gdb_wait.h: Ditto.
4691 * gdbarch.sh: Ditto.
4692 * gdbcore.h: Ditto.
4693 * gdbthread.h: Ditto.
4694 * gdbtypes.c: Ditto.
4695 * gdbtypes.h: Ditto.
4696 * gnu-nat.c: Ditto.
4697 * gnu-nat.h: Ditto.
4698 * gnu-v2-abi.c: Ditto.
4699 * gnu-v3-abi.c: Ditto.
4700 * go32-nat.c: Ditto.
4701 * gdbarch.c: Regenerate.
4702 * gdbarch.h: Regenerate.
4703
ac74f770
MS
47042011-01-07 Michael Snyder <msnyder@vmware.com>
4705
4706 * ax-gdb.c: Adjust some long output strings.
4707 * breakpoint.c: Ditto.
4708 * charset.c: Ditto.
4709 * cp-abi.c: Ditto.
4710 * infcall.c: Ditto.
4711 * infrun.c: Ditto.
4712 * linux-nat.c: Ditto.
4713 * solib-pa64.c: Ditto.
4714 * solib-som.c: Ditto.
4715
d8e22779
TT
47162011-01-06 Tom Tromey <tromey@redhat.com>
4717
4718 PR python/12367:
4719 * NEWS: Add item.
4720 * python/python.c (GdbMethods): Add "newest_frame" method.
4721 * python/python-internal.h (gdbpy_newest_frame): Declare.
4722 * python/py-frame.c (gdbpy_newest_frame): New function.
4723
a255712f
PP
47242010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
4725
4726 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
4727 * jit.c (jit_debug): New variable.
4728 (show_jit_debug): New function.
4729 (struct target_buffer): Use ULONGEST.
4730 (bfd_open_from_target_memory): Likewise.
4731 (jit_register_code, jit_inferior_init): Add debug output.
4732 (_initialize_jit): Register "debug jit" command.
4733
ccfc3d6e
TT
47342011-01-06 Tom Tromey <tromey@redhat.com>
4735
4736 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
4737 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
4738 and ARCH_FRAME.
4739
57126e4a
TT
47402011-01-06 Tom Tromey <tromey@redhat.com>
4741
4742 * python/py-frame.c (frapy_block): Use get_frame_block.
4743
16dfc9ce
JB
47442011-01-06 Joel Brobecker <brobecker@adacore.com>
4745
4746 Do not stop on SIGPRIO signals by default
4747 * infrun.c (_initialize_infrun): Unset signal_stop and
4748 signal_print for TARGET_SIGNAL_PRIO.
4749
b1ce2347
JB
47502011-01-06 Joel Brobecker <brobecker@adacore.com>
4751
4752 * ada-tasks.c: Fix style violation in comment.
4753
8f7e195f
JB
47542011-01-06 Joel Brobecker <brobecker@adacore.com>
4755
4756 * linespec.c (decode_compound, find_method): Remove trailing \n
4757 at end of error string.
4758 * solib-irix.c (irix_current_sos): Likewise.
4759 * varobj.c (uninstall_variable): Likewise.
4760
e9bdf92c
JB
47612011-01-06 Joel Brobecker <brobecker@adacore.com>
4762
4763 * copyright.py: New script.
4764 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
4765 Launch emacs without exec'ing. Call copyright.py afterwards.
4766
3e43a32a
MS
47672011-01-05 Michael Snyder <msnyder@vmware.com>
4768
4769 * addrmap.c: Shorten lines of >= 80 columns.
4770 * arch-utils.c: Ditto.
4771 * arch-utils.h: Ditto.
4772 * ax-gdb.c: Ditto.
4773 * ax-general.c: Ditto.
4774 * bcache.c: Ditto.
4775 * blockframe.c: Ditto.
4776 * breakpoint.c: Ditto.
4777 * buildsym.c: Ditto.
4778 * c-lang.c: Ditto.
4779 * c-typeprint.c: Ditto.
4780 * charset.c: Ditto.
4781 * coffread.c: Ditto.
4782 * command.h: Ditto.
4783 * corelow.c: Ditto.
4784 * cp-abi.c: Ditto.
4785 * cp-namespace.c: Ditto.
4786 * cp-support.c: Ditto.
4787 * dbug-rom.c: Ditto.
4788 * dbxread.c: Ditto.
4789 * defs.h: Ditto.
4790 * dfp.c: Ditto.
4791 * dfp.h: Ditto.
4792 * dictionary.c: Ditto.
4793 * disasm.c: Ditto.
4794 * doublest.c: Ditto.
4795 * dwarf2-frame.c: Ditto.
4796 * dwarf2expr.c: Ditto.
4797 * dwarf2loc.c: Ditto.
4798 * dwarf2read.c: Ditto.
4799 * elfread.c: Ditto.
4800 * eval.c: Ditto.
4801 * event-loop.c: Ditto.
4802 * event-loop.h: Ditto.
4803 * exceptions.h: Ditto.
4804 * exec.c: Ditto.
4805 * expprint.c: Ditto.
4806 * expression.h: Ditto.
4807 * f-lang.c: Ditto.
4808 * f-valprint.c: Ditto.
4809 * findcmd.c: Ditto.
4810 * frame-base.c: Ditto.
4811 * frame-unwind.c: Ditto.
4812 * frame-unwind.h: Ditto.
4813 * frame.c: Ditto.
4814 * frame.h: Ditto.
4815 * gcore.c: Ditto.
4816 * gdb-stabs.h: Ditto.
4817 * gdb_assert.h: Ditto.
4818 * gdb_dirent.h: Ditto.
4819 * gdb_obstack.h: Ditto.
4820 * gdbcore.h: Ditto.
4821 * gdbtypes.c: Ditto.
4822 * gdbtypes.h: Ditto.
4823 * inf-ttrace.c: Ditto.
4824 * infcall.c: Ditto.
4825 * infcmd.c: Ditto.
4826 * inflow.c: Ditto.
4827 * infrun.c: Ditto.
4828 * inline-frame.h: Ditto.
4829 * language.c: Ditto.
4830 * language.h: Ditto.
4831 * libunwind-frame.c: Ditto.
4832 * libunwind-frame.h: Ditto.
4833 * linespec.c: Ditto.
4834 * linux-nat.c: Ditto.
4835 * linux-nat.h: Ditto.
4836 * linux-thread-db.c: Ditto.
4837 * machoread.c: Ditto.
4838 * macroexp.c: Ditto.
4839 * macrotab.c: Ditto.
4840 * main.c: Ditto.
4841 * maint.c: Ditto.
4842 * mdebugread.c: Ditto.
4843 * memattr.c: Ditto.
4844 * minsyms.c: Ditto.
4845 * monitor.c: Ditto.
4846 * monitor.h: Ditto.
4847 * objfiles.c: Ditto.
4848 * objfiles.h: Ditto.
4849 * osabi.c: Ditto.
4850 * p-typeprint.c: Ditto.
4851 * p-valprint.c: Ditto.
4852 * parse.c: Ditto.
4853 * printcmd.c: Ditto.
4854 * proc-events.c: Ditto.
4855 * procfs.c: Ditto.
4856 * progspace.c: Ditto.
4857 * progspace.h: Ditto.
4858 * psympriv.h: Ditto.
4859 * psymtab.c: Ditto.
4860 * record.c: Ditto.
4861 * regcache.c: Ditto.
4862 * regcache.h: Ditto.
4863 * remote-fileio.c: Ditto.
4864 * remote.c: Ditto.
4865 * ser-mingw.c: Ditto.
4866 * ser-tcp.c: Ditto.
4867 * ser-unix.c: Ditto.
4868 * serial.c: Ditto.
4869 * serial.h: Ditto.
4870 * solib-frv.c: Ditto.
4871 * solib-irix.c: Ditto.
4872 * solib-osf.c: Ditto.
4873 * solib-pa64.c: Ditto.
4874 * solib-som.c: Ditto.
4875 * solib-sunos.c: Ditto.
4876 * solib-svr4.c: Ditto.
4877 * solib-target.c: Ditto.
4878 * solib.c: Ditto.
4879 * somread.c: Ditto.
4880 * source.c: Ditto.
4881 * stabsread.c: Ditto.
4882 * stabsread.c: Ditto.
4883 * stack.c: Ditto.
4884 * stack.h: Ditto.
4885 * symfile-mem.c: Ditto.
4886 * symfile.c: Ditto.
4887 * symfile.h: Ditto.
4888 * symmisc.c: Ditto.
4889 * symtab.c: Ditto.
4890 * symtab.h: Ditto.
4891 * target-descriptions.c: Ditto.
4892 * target-memory.c: Ditto.
4893 * target.c: Ditto.
4894 * target.h: Ditto.
4895 * terminal.h: Ditto.
4896 * thread.c: Ditto.
4897 * top.c: Ditto.
4898 * tracepoint.c: Ditto.
4899 * tracepoint.h: Ditto.
4900 * ui-file.c: Ditto.
4901 * ui-file.h: Ditto.
4902 * ui-out.h: Ditto.
4903 * user-regs.c: Ditto.
4904 * user-regs.h: Ditto.
4905 * utils.c: Ditto.
4906 * valarith.c: Ditto.
4907 * valops.c: Ditto.
4908 * valprint.c: Ditto.
4909 * valprint.h: Ditto.
4910 * value.c: Ditto.
4911 * varobj.c: Ditto.
4912 * varobj.h: Ditto.
4913 * vec.h: Ditto.
4914 * xcoffread.c: Ditto.
4915 * xcoffsolib.c: Ditto.
4916 * xcoffsolib.h: Ditto.
4917 * xml-syscall.c: Ditto.
4918 * xml-tdesc.c: Ditto.
4919
9a2b4c1b
MS
49202011-01-05 Michael Snyder <msnyder@vmware.com>
4921
4922 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
4923 * cli/cli-decode.c: Ditto.
4924 * cli/cli-dump.c: Ditto.
4925 * cli/cli-logging.c: Ditto.
4926 * cli/cli-script.c: Ditto.
4927 * cli/cli-setshow.c: Ditto.
4928 * common/signals.c: Ditto.
4929 * mi/mi-cmd-break.c: Ditto.
4930 * mi/mi-cmd-disas.c: Ditto.
4931 * mi/mi-cmd-stack.c: Ditto.
4932 * mi/mi-cmd-var.c: Ditto.
4933 * mi/mi-cmds.c: Ditto.
4934 * mi/mi-common.h: Ditto.
4935 * mi/mi-console.c: Ditto.
4936 * mi/mi-interp.c: Ditto.
4937 * mi/mi-main.c: Ditto.
4938 * osf-share/cma_attr.c: Ditto.
4939 * osf-share/cma_deb_core.h: Ditto.
4940 * osf-share/cma_debug_client.h: Ditto.
4941 * osf-share/cma_handle.h: Ditto.
4942 * osf-share/cma_mutex.h: Ditto.
4943 * osf-share/cma_stack_int.h: Ditto.
4944 * osf-share/cma_tcb_defs.h: Ditto.
4945 * python/py-auto-load.c: Ditto.
4946 * python/py-breakpoint.c: Ditto.
4947 * python/py-cmd.c: Ditto.
4948 * python/py-frame.c: Ditto.
4949 * python/py-objfile.c: Ditto.
4950 * python/py-param.c: Ditto.
4951 * python/py-progspace.c: Ditto.
4952 * python/py-symbol.c: Ditto.
4953 * python/py-value.c: Ditto.
4954 * python/python-internal.h: Ditto.
4955 * python/python.c: Ditto.
4956 * tui/tui-data.c: Ditto.
4957 * tui/tui-disasm.c: Ditto.
4958 * tui/tui-hooks.c: Ditto.
4959 * tui/tui-io.c: Ditto.
4960 * tui/tui-layout.c: Ditto.
4961 * tui/tui-regs.c: Ditto.
4962 * tui/tui-source.c: Ditto.
4963 * tui/tui-stack.c: Ditto.
4964 * tui/tui-win.c: Ditto.
4965 * tui/tui-windata.c: Ditto.
4966 * tui/tui-winsource.c: Ditto.
4967
44944448
JB
49682011-01-05 Joel Brobecker <brobecker@adacore.com>
4969
4970 * configure.ac, gdb.1: Copyright year update.
4971
ebedcab5
JK
49722011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4973
4974 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
4975 this_pc_in_block, morestack_msym and morestack_name. Check for
4976 "__morestack" minimal symbol there.
4977
e5cc9f32
JB
49782011-01-03 Joel Brobecker <brobecker@adacore.com>
4979
4980 * symfile.c (find_sym_fns): Add call to dont_repeat.
4981
7b6bb8da
JB
49822011-01-01 Joel Brobecker <brobecker@adacore.com>
4983
4984 Copyright year update in most files (performed by copyright.sh).
4985
71ce852c
JB
49862011-01-01 Joel Brobecker <brobecker@adacore.com>
4987
4988 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 4989
c3c1ebe8 4990For older changes see ChangeLog-2010.
c906108c
SS
4991\f
4992Local Variables:
4993mode: change-log
4994left-margin: 8
4995fill-column: 74
4996version-control: never
57da7796 4997coding: utf-8
c906108c 4998End:
This page took 1.455412 seconds and 4 git commands to generate.