gdb/gdbserver/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7d488639
MS
12011-02-27 Michael Snyder <msnyder@vmware.com>
2
ae179fba
MS
3 * objc-lang.c (selectors_info): Prevent string overrun.
4
086dbf66
MS
5 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
6 error in strncpy.
7
9c1e305a
MS
8 * symtab.c (rbreak_command): Move variable 'file_name' to
9 outer scope.
10
7d488639
MS
11 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
12 param with a local variable of the same name.
13
3bd0f5ef
MS
142011-02-27 Michael Snyder <msnyder@vmware.com>
15
16 * value.c (value_from_history_ref): New function.
17 * value.h (value_from_history_ref): Export.
18 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
19 to parse value history references.
20 * cli/cli-utils.h (get_number_trailer): Update comment.
21
222011-02-27 Michael Snyder <msnyder@vmware.com>
23
24 * inferior.c (detach_inferior_command): Use get_number_or_range.
25 (kill_inferior_command): Ditto.
26 (remove_inferior_command): Ditto.
27 (initialize_inferiors): Make command names plural.
28 Update help strings.
29
766062f6
MS
302011-02-27 Michael Snyder <msnyder@vmware.com>
31
32 * darwin-nat-info.c: Fix comment typo.
33 * dwarf2expr.h: Ditto.
34 * fbsd-nat.c: Ditto.
35 * fbsd-nat.h: Ditto.
36 * frame-unwind.h: Ditto.
37 * frame.h: Ditto.
38 * hppa-hpux-tdep.c: Ditto.
39 * i386-linux-nat.c: Ditto.
40 * linux-nat.c: Ditto.
41 * nbsd-nat.c: Ditto.
42 * nbsd-nat.h: Ditto.
43 * ppc-linux-tdep.c: Ditto.
44 * serial.c: Ditto.
45 * ui-file.h: Ditto.
46 * tui/tui-winsource.c: Ditto.
47
f2c4ead5
MS
482011-02-26 Michael Snyder <msnyder@vmware.com>
49
86b887df
MS
50 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
51
66fd3b1e
MS
52 * maint.c (maintenance_do_deprecate): Plug a memory leak.
53
8c814cdd
MS
54 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
55 with a local variable of the same name.
56
6d5e094a 57 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 58 param with a local variable of the same name.
6d5e094a 59 (i387_supply_xsave): Ditto.
e5b3d7d6 60
5eee517d
MS
61 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
62 that it does not shadow a function parameter.
63
8fbf6b93
MS
64 * i386-nat.c (i386_length_and_rw_bits): Document that case
65 statement is meant to fall through.
66
cb969d61
MS
67 * expprint.c (dump_subexp_body_standard): Document that case
68 statement is meant to fall through.
69
f2c4ead5
MS
70 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
71 dead if statement. Condition can't be false.
72
b021a221
MS
732011-02-25 Michael Snyder <msnyder@vmware.com>
74
75 * arm-tdep.c: Fix typos in comments.
76 * bsd-uthread.c: Ditto.
77 * completer.c: Ditto.
78 * corelow.c: Ditto.
79 * cp-namespace.c: Ditto.
80 * cp-support.c: Ditto.
81 * cris-tdep.c: Ditto.
82 * dbxread.c: Ditto.
83 * dwarf2read.c: Ditto.
84 * frame.h: Ditto.
85 * gdbtypes.h: Ditto.
86 * inferior.h: Ditto.
87 * mdebugread.c: Ditto.
88 * mips-tdep.c: Ditto.
89 * ppc-linux-nat.c: Ditto.
90 * ppc-linux-tdep.c: Ditto.
91 * printcmd.c: Ditto.
92 * sol-thread.c: Ditto.
93 * solib-frv.c: Ditto.
94 * solist.h: Ditto.
95 * sparc64-tdep.c: Ditto.
96 * spu-tdep.c: Ditto.
97 * stabsread.c: Ditto.
98 * symfile.c: Ditto.
99 * valops.c: Ditto.
100 * varobj.c: Ditto.
101 * vax-nat.c: Ditto.
102 * python/py-block.c: Ditto.
103 * python/py-symbol.c: Ditto.
104 * python/py-symtab.c: Ditto.
105 * python/py-value.c: Ditto.
106 * tui/tui-win.c: Ditto.
107
c82c0b55
MS
1082011-02-25 Michael Snyder <msnyder@vmware.com>
109
110 * inferior.c (print_inferior): Accept a string instead of an int
111 for requested_inferiors, and use get_number_or_range to parse it.
112 (info_inferiors_command): Pass args string to print_inferior.
113 (initialize_inferiors): Change help string for info inferiors.
114 * inferior.h (print_inferior): Export prototype change.
115
ee00cd23
TT
1162011-02-25 Tom Tromey <tromey@redhat.com>
117
118 * common/ax.def (invalid2): Set to 0x31.
119
0502ed8c
JK
1202011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
121
122 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
123 L and plongest.
124 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
125 use L and plongest.
126 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
127
2c9de912
MS
1282011-02-24 Michael Snyder <msnyder@vmware.com>
129
130 * Makefile.in (clean): Make clean should remove generated files
131 observer.h and observer.inc.
132
a04b0428
JB
1332011-02-24 Joel Brobecker <brobecker@adacore.com>
134
135 Revert the following patch (not approved yet):
136 2011-02-21 Hui Zhu <teawater@gmail.com>
137 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
138 * ax-gdb.c (gen_printf_expr_callback): New function.
139 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
140 * ax-general.c (ax_memcpy): New function.
141 (ax_print): Handle "printf".
142 (ax_reqs): Ditto.
143 * ax.h (ax_memcpy): Forward declare.
144 * common/ax.def (invalid2): Removed.
145 (printf): New entry.
146 * printcmd.c (printcmd.h): New include.
147 (string_printf): New function.
148 (ui_printf): Removed.
149 (printf_command): Remove static. Call string_printf.
150 (eval_command): Call string_printf.
151 * printcmd.h: New file.
152 * tracepoint.c (validate_actionline,
153 encode_actions_1): handle printf_command.
154
2b52013f
TT
1552011-02-23 Tom Tromey <tromey@redhat.com>
156
157 * ax-general.c (ax_pick): Add missing newline.
158
e5a67952
MS
1592011-02-23 Michael Snyder <msnyder@vmware.com>
160
161 * breakpoint.c (breakpoint_1): Change first argument from an int
162 to a char pointer, so that the function now accepts a list of
163 breakpoints rather than just one. Use new function
164 'number_is_in_list' to implement.
165 (breakpoints_info): Pass char * instead of int to breakpoint_1.
166 (watchpoints_info): Ditto.
167 (tracepoints_info): Ditto.
168 (maintenance_info_breakpoints): Ditto.
169 (_initialize_breakpoint): Update help strings to reflect the fact
170 that these functions can now take more than one argument.
171 * cli/cli-utils.c (number_is_in_list): New function.
172 * cli/cli-utils.h (number_is_in_list): Export.
173
1742011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
175
176 * memattr.c (mem_enable_command): Use get_number_or_range.
177 (mem_disable_command): Ditto.
178 (mem_delete_command): Ditto.
179 (_initialize_mem): Tweak usage message to reflect multiple
180 arguments.
181
6e6fbe60
DE
1822011-02-22 Doug Evans <dje@google.com>
183
184 Add gdb.lookup_global_symbol python function.
185 * NEWS: Add entry.
186 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
187 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
188 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
189
79b97fa8
TT
1902011-02-22 Tom Tromey <tromey@redhat.com>
191
192 * language.c (language_class_name_from_physname): Rename
193 'curr_language' argument to 'lang'; use in body.
194
298f437a
MS
1952011-02-22 Michael Snyder <msnyder@vmware.com>
196
197 * cli/cli-utils.c (number_is_in_list): Check for zero return.
198
b7ea3126
PA
1992011-02-22 Pedro Alves <pedro@codesourcery.com>
200
201 * frame-unwind.h: Fix comment to mention the this frame, not the
202 next.
203
58ee6d60
TT
2042011-02-22 Tom Tromey <tromey@redhat.com>
205
206 * symfile.c (auto_solib_limit): Remove.
207 * symfile.h (auto_solib_limit): Remove.
208
36238dbc
JB
2092011-02-22 Joel Brobecker <brobecker@adacore.com>
210
211 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
212
aea5b279
MS
2132011-02-21 Michael Snyder <msnyder@vmware.com>
214
215 * gdbthread.h (print_thread_info): Change prototype.
216 * thread.c (print_thread_info): Accept char* instead of int for
217 requested_threads argument. Use new function number_is_in_list
218 to determine which threads to list.
219 (info_threads_command): Pass char* to print_thread_info.
220 * cli/cli-utils.c (number_is_in_list): New function.
221 * cli/cli-utils.h (number_is_in_list): Export.
222 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
223 print_thread_info.
224 (print_one_inferior): Ditto.
225 (mi_cmd_list_thread_groups): Ditto.
226
8caa75ee
JK
2272011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
228
229 * common/Makefile.in (CFLAGS): New.
230 (COMPILE): Add $(CFLAGS).
231
ea666128
TT
2322011-02-21 Tom Tromey <tromey@redhat.com>
233
234 * breakpoint.c (catch_syscall_command_1): Fix typo.
235
e9cafbcc
TT
2362011-02-21 Tom Tromey <tromey@redhat.com>
237
238 * reverse.c: Include cli-utils.h.
239 * printcmd.c: Include cli-utils.h.
240 (string_printf): Use skip_spaces.
241 * cli/cli-utils.h: New file.
242 * cli/cli-utils.c: New file.
243 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
244 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
245 * breakpoint.h (get_number, get_number_or_range): Move to
246 cli-utils.h.
247 * breakpoint.c: Include cli-utils.h.
248 (get_number_trailer, get_number, get_number_or_range)
249 (ep_skip_leading_whitespace): Move to cli-utils.c.
250 (create_breakpoint_sal, find_condition_and_thread)
251 (decode_static_tracepoint_spec, watch_command_1)
252 (watch_maybe_just_location, ep_parse_optional_if_clause)
253 (catch_fork_command_1, catch_exec_command_1)
254 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
255 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
256 (SUBDIR_CLI_SRCS): Add cli-utils.c.
257 (HFILES_NO_SRCDIR): Add cli-utils.h.
258 (cli-utils.o): New target.
259
f67fd822
PM
2602011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
261
262 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
263 before calling discard_all_inferiors.
264
c9def01d
UW
2652011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
266
267 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
268 (struct builtin_opencl_type): Remove.
269 (builtin_opencl_type): Change return type to "struct type **".
270 (lookup_opencl_vector_type): Update caller.
271 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
272 (build_opencl_types): Install plain array of "struct type *"
273 instead of "struct builtin_opencl_type".
274
e3039479
UW
2752011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
276 Ulrich Weigand <uweigand@de.ibm.com>
277
278 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
279 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
280 (struct arm_linux_hwbp_cap): New type.
281 (arm_linux_get_hwbp_cap): New function.
282 (arm_linux_get_hw_breakpoint_count): Likewise.
283 (arm_linux_get_hw_watchpoint_count): Likewise.
284 (arm_linux_can_use_hw_breakpoint): Likewise.
285 (arm_hwbp_type): New type.
286 (arm_hwbp_control_t): Likewise.
287 (struct arm_linux_hw_breakpoint): Likewise.
288 (struct arm_linux_thread_points): Likewise.
289 (arm_threads): New global variable.
290 (arm_linux_find_breakpoints_by_tid): New function.
291 (arm_hwbp_control_initialize): Likewise.
292 (arm_hwbp_control_is_enabled): Likewise.
293 (arm_hwbp_control_disable): Likewise.
294 (arm_linux_hw_breakpoint_initialize): Likewise.
295 (arm_linux_get_hwbp_type): Likewise.
296 (arm_linux_hw_watchpoint_initialize): Likewise.
297 (arm_linux_hw_breakpoint_equal): Likewise.
298 (arm_linux_insert_hw_breakpoint1): Likewise.
299 (arm_linux_remove_hw_breakpoint1): Likewise.
300 (arm_linux_insert_hw_breakpoint): Likewise.
301 (arm_linux_remove_hw_breakpoint): Likewise.
302 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
303 (arm_linux_insert_watchpoint): Likewise.
304 (arm_linux_remove_watchpoint): Likewise.
305 (arm_linux_stopped_data_address): Likewise.
306 (arm_linux_stopped_by_watchpoint): Likewise.
307 (arm_linux_watchpoint_addr_within_range): Likewise.
308 (arm_linux_new_thread): Likewise.
309 (arm_linux_thread_exit): Likewise.
310 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
311 related target callbacks. Register arm_linux_new_thread and
312 arm_linux_thread_exit.
313 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
314 * arm-tdep.c (arm_pc_is_thumb): Make global.
315 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
316
b5db5dfc
UW
3172011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
318
319 * breakpoint.c (update_watchpoint): Do not attempt to recreate
320 per-frame locations while within a function epilogue.
321
e25b2cfa
PM
3222011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
323
324 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
325 to GNU coding standards.
326
4af53f97
PM
3272011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
328
329 Allow use of mingw native on Windows 95 OS.
e25b2cfa 330 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
331 (ser_windows_close): Only call CancelIo if function exists.
332 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
333 to check for existence of CancelIo function in kernel32 DLL.
334
d0e92d82
HZ
3352011-02-21 Hui Zhu <teawater@gmail.com>
336
337 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
338 * ax-gdb.c (gen_printf_expr_callback): New function.
339 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
340 * ax-general.c (ax_memcpy): New function.
341 (ax_print): Handle "printf".
342 (ax_reqs): Ditto.
343 * ax.h (ax_memcpy): Forward declare.
344 * common/ax.def (invalid2): Removed.
345 (printf): New entry.
346 * printcmd.c (printcmd.h): New include.
347 (string_printf): New function.
348 (ui_printf): Removed.
349 (printf_command): Remove static. Call string_printf.
350 (eval_command): Call string_printf.
351 * printcmd.h: New file.
352 * tracepoint.c (validate_actionline,
353 encode_actions_1): handle printf_command.
354
7d357efd
MS
3552011-02-19 Michael Snyder <msnyder@vmware.com>
356
357 * reverse.c (delete_one_bookmark): Argument is now bookmark
358 id rather than pointer to bookmark struct.
359 (delete_bookmark_command): Use get_number_or_range.
360 (goto_bookmark_command): Parse with get_number instead of strtoul.
361 (bookmark_1): New function. Print info for one bookmark.
362 (bookmarks_info): Use get_number_or_range and bookmark_1.
363
7a45ebd7
MS
3642011-02-18 Michael Snyder <msnyder@vmware.com>
365
366 * thread.c (info_threads_command): Re-implement using
367 get_number_or_range.
65ebfb52 368 (thread_apply_command): Ditto.
7a45ebd7 369
94d5e490
TT
3702011-02-18 Tom Tromey <tromey@redhat.com>
371
372 * common/ax.def: New file.
373 * ax.h (enum agent_op): Use ax.def.
374 * ax-general.c (aop_map): Use ax.def.
375
c7f96d2b
TT
3762011-02-18 Tom Tromey <tromey@redhat.com>
377
378 * ax-general.c (aop_map): Add pick and rot.
379 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
380 <DW_OP_rot>: Implement.
381 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
382 (ax_pick): Declare.
383 * ax-general.c (ax_pick): New function.
384
66694b75
TT
3852011-02-18 Tom Tromey <tromey@redhat.com>
386
387 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
388
eeaafae2
JK
3892011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
390 Tom Tromey <tromey@redhat.com>
391
392 * cp-support.c (make_symbol_overload_list_namespace): Do not call
393 make_symbol_overload_list_block with NULL BLOCK.
394 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
395
3c3fe74c
PA
3962011-02-18 Pedro Alves <pedro@codesourcery.com>
397
398 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
399 * breakpoint.h (get_number_or_range): Declare.
400 * printcmd.c (ALL_DISPLAYS): Declare.
401 (delete_display): Reimplement taking a display pointer.
402 (undisplay_command): Accept a range of displays to delete, using
403 get_number_or_range.
404
13163d80
PM
4052011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
406
407 * c-valprint.c (c_val_print): Add embedded_offset to address
408 for arrays of unspecified length.
409 * p-valprint.c (pascal_val_print): Likewise.
410
b434a28f
YQ
4112011-02-18 Yao Qi <yao@codesourcery.com>
412
413 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
414 (arm_process_displaced_insn): .. here. Remove parameter INSN.
415 (thumb_process_displaced_insn): New.
416 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
417 call to arm_process_displaced_insn.
418 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
419
9f6f94ff
TT
4202011-02-17 Tom Tromey <tromey@redhat.com>
421
422 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
423 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
424 compile_dwarf_to_ax. No longer static. Call
425 dwarf2_compile_cfa_to_ax.
426 (locexpr_tracepoint_var_ref): Update.
427 (loclist_tracepoint_var_ref): Update.
428 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
429 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
430 argument; add 'gdbarch' and 'pc'.
431 (dwarf2_compile_cfa_to_ax): New function.
432 (dwarf2_frame_cache): Update.
433
e67ad678
JB
4342011-02-17 Joel Brobecker <brobecker@adacore.com>
435
436 * ada-lang.c (ada_type_of_array): Fix the size of the array
437 in the case of an unconstrained packed array.
438
946ebb0d
YQ
4392011-02-17 Yao Qi <yao@codesourcery.com>
440
441 * common/Makefile.in: Add more targets for make.
442
1ba1b353
TT
4432011-02-16 Tom Tromey <tromey@redhat.com>
444
445 * dwarf2loc.c (unimplemented): Fix typo.
446
b1bfef65
TT
4472011-02-16 Tom Tromey <tromey@redhat.com>
448
449 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
450 (compile_dwarf_to_ax) <default>: Use unimplemented.
451 <DW_OP_deref>: Update.
452 (disassemble_dwarf_expression): Update.
453 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
454 (decode_locdesc): Update.
455 * dwarf2expr.h (dwarf_stack_op_name): Update.
456
5f1e6f19
TT
4572011-02-16 Tom Tromey <tromey@redhat.com>
458
459 * ax.h (struct aop_map) <name>: Now const.
460
a0c78a73
PA
4612011-02-16 Tom Tromey <tromey@redhat.com>
462
463 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
464 than axs_rvalue.
465
946ebb0d 4662011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
467
468 * infrun.c (get_displaced_step_closure_by_addr): New.
469 * inferior.h: Declare it.
470 * arm-tdep.c: (arm_pc_is_thumb): Call
471 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
472 returns non-NULL.
473
08807d5a
PA
4742011-02-16 Pedro Alves <pedro@codesourcery.com>
475 Jan Kratochvil <jan.kratochvil@redhat.com>
476
477 gdb/
478 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
479
29976f3f
PA
4802011-02-16 Pedro Alves <pedro@codesourcery.com>
481 Jan Kratochvil <jan.kratochvil@redhat.com>
482
483 * value.c (value_contents_copy_raw): Extend describing comment.
484 Assert that the destination contents we're overwriting are wholly
485 available.
fb68ae73 486 (value_contents_copy): Extend describing comment.
29976f3f 487
cd24cfaa
PA
4882011-02-16 Pedro Alves <pedro@codesourcery.com>
489 Jan Kratochvil <jan.kratochvil@redhat.com>
490
491 * value.c (value_available_contents_eq): Remove redundant local
492 variables. Fix available contents comparision.
493 * value.h (value_available_contents_eq): Extend describing
494 comment.
495
60bbf338
YQ
4962011-02-16 Yao Qi <yao@codesourcery.com>
497
498 * thread.c (info_threads_command): Add missing i18n markup and remove
499 trailing newline.
500
17450429
PP
5012011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
502
503 * breakpoint.c (longjmp_names): New variable.
504 (struct breakpoint_objfile_data): New type.
505 (breakpoint_objfile_key): New variable.
506 (msym_not_found): New variable.
507 (msym_not_found_p): New predicate.
508 (get_breakpoint_objfile_data): New function.
509 (create_overlay_event_breakpoint): Check per-objfile cache for
510 symbols first.
511 (create_longjmp_master_breakpoint): Likewise.
512 (create_std_terminate_master_breakpoint): Likewise.
513 (create_exception_master_breakpoint): Likewise.
514 (_initialize_breakpoint): Register per-objfile data key.
515
af02033e
PP
5162011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
517
518 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
519 parameter value.
520 (create_longjmp_master_breakpoint): Loop over longjmp names.
521 (create_std_terminate_master_breakpoint): Const-propagate parameter
522 value.
523 (update_breakpoints_after_exec): Adjust.
524 (breakpoint_re_set): Adjust.
525
60f98dde
MS
5262011-02-15 Michael Snyder <msnyder@vmware.com>
527
cdf99611
MS
528 * thread.c (info_threads_command): Process arg as thread id,
529 or list of thread ids.
530 (thread_find_command): New command.
531 (_initialize_thread): Document argument for info threads.
532 Document 'thread find' command.
533 * NEWS: Document new command "thread find".
60f98dde 534
0feedb2c
JK
5352011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
536
537 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
538 * aclocal.m4: Regenerated with aclocal-1.11.1.
539 * common/configure: Regenerate with autoconf-2.64.
540
648cd113
KW
5412011-02-15 Ken Werner <ken.werner@de.ibm.com>
542
543 * opencl-lang.c (build_opencl_types): Set the size of the built-in
544 bool data type to a size of one byte.
545
5657161f
PA
5462011-02-15 Pedro Alves <pedro@codesourcery.com>
547 Jan Kratochvil <jan.kratochvil@redhat.com>
548
549 * target.c (memory_xfer_live_readonly_partial): Document where to
550 look for interface description.
551
494e194e
YQ
5522011-02-15 Yao Qi <yao@codesourcery.com>
553
554 PR tdep/12352
555 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
556 order to store PC value on stack instead of text section.
557
d9492458
TJB
5582011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
559
560 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
561 the EFP register set size.
562 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
563 data from the VMX register.
564 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
565 and write data from/to the VMX register.
566
cdf99611
MS
5672011-02-14 Michael Snyder <msnyder@vmware.com>
568
569 * command.h (enum command_class): New class 'no_set_class', for
570 "show" commands without a corresponding "set" command.
571 * value.c (_initialize_values): Use 'no_set_class' for "show values".
572 * copying.c (_initialize_copying): Ditto for "show copying" and
573 "show warranty".
574 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
575 "show version".
576 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
577 which there is no corresponding "set" command (eg. "show copying").
578
424447ee
PA
5792011-02-14 Pedro Alves <pedro@codesourcery.com>
580 Jan Kratochvil <jan.kratochvil@redhat.com>
581
582 * exec.c (section_table_available_memory): Change `len' parameter
583 type to ULONGEST.
584 * exec.h (section_table_available_memory): Ditto.
585 * value.h (read_value_memory): Rename the `offset' parameter to
586 `embedded_offset'.
587
c0f61f9c 5882011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 589 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
590
591 * memrange.c (compare_mem_ranges): Mention sort order in
592 describing comment.
593 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
594 * tracepoint.c (traceframe_available_memory): Extend comment to
595 mention what happens to RESULT when the target does not support
596 the query.
597
6bfc80c7
PA
5982011-02-14 Pedro Alves <pedro@codesourcery.com>
599 Jan Kratochvil <jan.kratochvil@redhat.com>
600
601 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
602 range.
603
e7303042
PA
6042011-02-14 Pedro Alves <pedro@codesourcery.com>
605
606 * value.c (value_bits_valid, value_bits_synthetic_pointer):
607 No longer handle NULL values.
608
8af8e3bc
PA
6092011-02-14 Pedro Alves <pedro@codesourcery.com>
610
611 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
612 * value.c: Include "exceptions.h".
613 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
614 generic error.
615 * cp-abi.c: Include gdb_assert.h.
616 (baseclass_offset): Add `embedded_offset' and `val' parameters.
617 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
618 errors.
619 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
620 parameters. No longer returns -1 on error.
621 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
622 `val' parameters.
623 * cp-valprint.c: Include exceptions.h.
624 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
625 the baseclass_offset. Handle unavailable base classes. Use
626 val_print_invalid_address.
627 * p-valprint.c: Include exceptions.h.
628 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
629 when fetching the baseclass_offset. No longer expect
630 baseclass_offset returning -1. Handle unavailable base classes.
631 Use val_print_invalid_address.
632 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
633 `valaddr' parameter, and change its type to gdb_byte pointer. Add
634 `embedded_offset' and `val' parameters. Adjust.
635 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
636 parameter, and change its type to gdb_byte pointer. Add
637 `embedded_offset' and `val' parameters. Adjust. No longer expect
638 baseclass_offset returning -1.
639 (value_dynamic_cast): Use value_contents_for_printing rather than
640 value_contents. Adjust.
641 (search_struct_field): No longer expect baseclass_offset returning
642 -1.
643 (search_struct_method): If reading memory from the target is
644 necessary, wrap it in a new value to pass to baseclass_offset. No
645 longer expect baseclass_offset returning -1.
646 (find_method_list): No longer expect baseclass_offset returning
647 -1. Use value_contents_for_printing rather than value_contents.
648 * valprint.c (val_print_invalid_address): New function.
649 * valprint.h (val_print_invalid_address): Declare.
650 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
651 and `val' parameters. No longer expect baseclass_offset returning
652 -1. Adjust.
653 * gnu-v2-abi.c: Include "exceptions.h".
654 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
655 parameters. Handle unavailable memory. Recurse through
656 gnuv2_baseclass_offset directly, rather than through
657 baseclass_offset. No longer returns -1 on not found, instead
658 throw an error.
659 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
660 `val' parameters. Adjust.
661
1b28d0b3
PA
6622011-02-14 Pedro Alves <pedro@codesourcery.com>
663
664 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
665 almost but not quite adjacent.
666
ec0a52e1
PA
6672011-02-14 Pedro Alves <pedro@codesourcery.com>
668
669 * value.h (value_entirely_available): Declare.
670 * value.c (value_entirely_available): New function.
671 * c-valprint.c (c_value_print): Don't try fetching the pointer's
672 real type if the pointer is unavailable.
673
24e6bcee
PA
6742011-02-14 Pedro Alves <pedro@codesourcery.com>
675
676 * valops.c (value_repeat): Use read_value_memory instead of
677 read_memory.
678
39d37385
PA
6792011-02-14 Pedro Alves <pedro@codesourcery.com>
680
681 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
682 * value.c (value_contents_copy_raw, value_contents_copy): New
683 functions.
684 (value_primitive_field): Use value_contents_copy_raw instead of
685 memcpy.
686 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
687 memcpy.
688 (value_array, value_slice): Ditto.
689 * valarith.c (value_subscripted_rvalue): Use
690 value_contents_copy_raw instead of memcpy.
691
a3d34bf4
PA
6922011-02-14 Pedro Alves <pedro@codesourcery.com>
693
694 <unavailable> references.
695
696 * valops.c (get_value_at): Use value_from_contents_and_address,
697 avoiding read_memory.
698
9fc6d940
PA
6992011-02-14 Pedro Alves <pedro@codesourcery.com>
700
701 * c-valprint.c (c_val_print): Print a string with unavailable
702 contents as an array.
703
5467c6c8
PA
7042011-02-14 Pedro Alves <pedro@codesourcery.com>
705
706 * value.h (unpack_bits_as_long): Delete declaration.
707 (unpack_value_bits_as_long): Declare.
708 (unpack_value_field_as_long): Declare.
709 (value_field_bitfield): Declare.
710 * value.c (unpack_bits_as_long): Rename to...
711 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
712 value parameters. Return the extracted result in a new output
713 parameter. If the value contents are unavailable, return false,
714 otherwise return true.
715 (unpack_value_bits_as_long): New.
716 (unpack_field_as_long): Rename to...
717 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
718 Add embedded_offset and value parameters. Return the extracted
719 result in a new output parameter. If the value contents are
720 unavailable, return false, otherwise return true.
721 (unpack_value_field_as_long): New.
722 (unpack_field_as_long_1): New.
723 (unpack_field_as_long): Reimplement as wrapper around
724 unpack_value_field_as_long_1.
725 (value_field_bitfield): New function.
726 * valops.c (value_fetch_lazy): When fetching a bitfield, use
727 unpack_value_bits_as_long. Mark the value as unavailable, if it
728 is unavailable.
729 * jv-valprint.c (java_print_value_fields): Use
730 value_field_bitfield.
731 * p-valprint.c (pascal_object_print_value_fields): Use
732 value_field_bitfield.
733 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
734
3158c6ed
PA
7352011-02-14 Pedro Alves <pedro@codesourcery.com>
736
737 * value.c (get_internalvar_integer): Also return the int value of
738 TYPE_CODE_INT INTERNALVAR_VALUE values.
739 (set_internalvar): Don't special case TYPE_CODE_INT.
740
9fbdca0d
PA
7412011-02-14 Pedro Alves <pedro@codesourcery.com>
742
743 * value.c (struct internalvar) <enum internalvar_kind>: Remove
744 INTERNALVAR_POINTER.
745 <pointer>: Delete.
746 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
747 (set_internalvar): Remove special TYPE_CODE_PTR handling.
748 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
749
c8c1c22f
PA
7502011-02-14 Pedro Alves <pedro@codesourcery.com>
751
752 * value.h (value_available_contents_eq): Declare.
753 * value.c (find_first_range_overlap): New function.
754 (value_available_contents_eq): New function.
755 * valprint.c (val_print_array_elements): Use
756 value_available_contents_eq.
757 * ada-valprint.c (val_print_packed_array_elements): Use
758 value_available_contents_eq.
759 * jv-valprint.c (java_value_print): Use
760 value_available_contents_eq.
761
e6e4e701
PA
7622011-02-14 Pedro Alves <pedro@codesourcery.com>
763
764 * target.c (target_read_live_memory): New function.
765 (memory_xfer_live_readonly_partial): New.
766 (memory_xfer_partial): If reading from a traceframe, fallback to
767 reading unavailable read-only memory from read-only regions of
768 live target memory.
769 * tracepoint.c (disconnect_tracing): Adjust.
770 (set_current_traceframe): New, factored out from
771 set_traceframe_number.
772 (set_traceframe_number): Reimplement to only change the traceframe
773 number on the GDB side.
774 (do_restore_current_traceframe_cleanup): Adjust.
775 (make_cleanup_restore_traceframe_number): New.
776 (cur_traceframe_number): New global.
777 (tfile_open): Set cur_traceframe_number to no traceframe.
778 (set_tfile_traceframe): New function.
779 (tfile_trace_find): If looking up a traceframe using any method
780 other than by number, make sure the current tfile traceframe
781 matches gdb's current traceframe. Update the current tfile
782 traceframe if the lookup succeeded.
783 (tfile_fetch_registers, tfile_xfer_partial)
784 (tfile_get_trace_state_variable_value): Make sure the remote
785 traceframe matches gdb's current traceframe.
786 * remote.c (remote_traceframe_number): New global.
787 (remote_open_1): Set it to -1.
788 (set_remote_traceframe): New function.
789 (remote_fetch_registers, remote_store_registers)
790 (remote_xfer_memory, remote_xfer_partial)
791 (remote_get_trace_state_variable_value): Make sure the remote
792 traceframe matches gdb's current traceframe.
793 (remote_trace_find): If looking up a traceframe using any method
794 other than by number, make sure the current remote traceframe
795 matches gdb's current traceframe. Update the current remote
796 traceframe if the lookup succeeded.
797 * infrun.c (fetch_inferior_event): Adjust.
798 * tracepoint.h (set_current_traceframe): Declare.
799 (get_traceframe_number, set_traceframe_number): Add describing
800 comments.
801
e6ca34fc
PA
8022011-02-14 Pedro Alves <pedro@codesourcery.com>
803
804 Mark pieces of values as unavailable if the corresponding memory
805 is unavailable.
806
807 * valops.c: Include tracepoint.h.
808 (value_fetch_lazy): Use read_value_memory.
809 (read_value_memory): New.
810 * value.h (read_value_memory): Declare.
811 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
812 * exec.c (section_table_available_memory): New function.
813 * exec.h (section_table_available_memory): Declare.
814
2a7498d8
PA
8152011-02-14 Pedro Alves <pedro@codesourcery.com>
816
817 * Makefile.in (SFILES): Add memrange.c.
818 (HFILES_NO_SRCDIR): Add memrange.h.
819 (COMMON_OBS): Add memrange.o.
820 * memrange.c: New file.
821 * memrange.h: New file.
822 * tracepoint.c: Include memrange.h.
823 (struct mem_range): Delete.
824 (mem_range_s): Delete.
825 (traceframe_available_memory): New function.
826 * tracepoint.h (traceframe_available_memory): Declare.
827
b3b9301e
PA
8282011-02-14 Pedro Alves <pedro@codesourcery.com>
829
830 * target.h (struct traceframe_info): Forward declare.
831 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
832 (struct target_ops) <to_traceframe_info>: New field.
833 (target_traceframe_info): New.
834 * target.c (update_current_target): Inherit and default
835 to_traceframe_info.
836 * remote.c (PACKET_qXfer_traceframe_info): New.
837 (remote_protocol_features): Register qXfer:traceframe-info:read.
838 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
839 (remote_traceframe_info): New.
840 (init_remote_ops): Install it.
841 (_initialize_remote): Install "set/show remote traceframe-info"
842 commands.
843 * tracepoint.h (parse_traceframe_info): Declare.
844 * tracepoint.c (struct mem_range): New.
845 (mem_range_s): New typedef.
846 (struct traceframe_info): New.
847 (traceframe_info): New global.
848 (free_traceframe_info): New function.
849 (clear_traceframe_info): New function.
850 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
851 info.
852 (build_traceframe_info): New function.
853 (tfile_traceframe_info): New function.
854 (init_tfile_ops): Install tfile_traceframe_info.
855 (traceframe_info_start_memory, free_result): New functions.
856 (memory_attributes, traceframe_info_elements): New globals.
857 (parse_traceframe_info, get_traceframe_info): New functions.
858 * features/traceframe-info.dtd: New file.
859 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
860
4e07d55f
PA
8612011-02-14 Pedro Alves <pedro@codesourcery.com>
862
863 Base support for <unavailable> value contents.
864
4e07d55f
PA
865 * value.h (value_bytes_available): Declare.
866 (mark_value_bytes_unavailable): Declare.
867 * value.c (struct range): New struct.
868 (range_s): New typedef.
869 (ranges_overlap): New function.
870 (range_lessthan): New function.
871 (ranges_contain_p): New function.
872 (struct value) <unavailable>: New field.
873 (value_bytes_available): New function.
874 (mark_value_bytes_unavailable): New function.
875 (require_not_optimized_out): Constify parameter.
876 (require_available): New function.
877 (value_contents_all, value_contents): Require all bytes be
878 available.
879 (value_free): Free `unavailable'.
880 (value_copy): Copy `unavailable'.
881 * valprint.h (val_print_unavailable): Declare.
882 * valprint.c (valprint_check_validity): Rename `offset' parameter
883 to `embedded_offset'. If printing a scalar, check whether the
884 value chunk is available.
885 (val_print_unavailable): New.
886 (val_print_scalar_formatted): Check whether the value is
887 available.
888 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
889 pretty-printing unavailable values.
890
bc9a5551
JK
8912011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
892
893 Fix const/volatile qualifiers of C++ types, PR c++/12328.
894 * c-typeprint.c (c_type_print_args): Update the function comment. New
895 variable param_type, initialize it. Remove const/volatile qualifiers
896 for language_cplus and !show_artificial. Use param_type.
897
93b55aa1
JK
8982011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
901 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
902 * symtab.h (struct symtab) <next>: Comment extension.
903
181d9476
YQ
9042011-02-12 Yao Qi <yao@codesourcery.com>
905
906 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
907
b708a5c7
JK
9082011-02-11 Yao Qi <yao@codesourcery.com>
909
910 * common/Makefile.in: Add copyright header.
911
c5187ac6
PA
9122011-02-11 Pedro Alves <pedro@codesourcery.com>
913
914 * infrun.c (proceed): Move switching out and in of tfind mode from
915 here ...
916 (fetch_inferior_event): ... to here.
917
4f3e6fb7
YQ
9182011-02-11 Yao Qi <yao@codesourcery.com>
919
920 * Makefile.in: Remove signals.o from COMMON_OBS. Link
921 libcommon.a.
922 * configure.ac: Add common to sub dir.
923 * configure: Regenerate.
924
b708a5c7
JK
9252011-02-11 Yao Qi <yao@codesourcery.com>
926
927 Build libcommon.a.
928
929 * common/Makefile.in: New.
930 * common/configure.ac: New.
931 * common/aclocal.m4: New.
932 * common/configure: Generate.
933
2287cc7e
PA
9342011-02-10 Pedro Alves <pedro@codesourcery.com>
935
936 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
937 side of the parenthesis.
938
939 Merge from GCC:
940 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 941 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 942
fd62cb89
MS
9432011-02-08 Michael Snyder <msnyder@vmware.com>
944
945 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
946
56d2815c
JK
9472011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
948
949 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
950 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
951 psubd and paddd.
952
4f7d61a8
JK
9532011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
954
955 PR 12361.
956 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
957 phsubsw.
958 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
959 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
960
54fcddd0
UW
9612011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
962
963 * dwarf2read.c (read_subroutine_type): Set special calling
964 convention flag for functions compiled by IBM XL C for OpenCL.
965 * ppc-sysv-tdep.c: Include "dwarf2.h"
966 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
967 calling convention.
968 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
969 IBM OpenCL vector types calling convention.
970 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
971 (ppc_sysv_abi_broken_return_value): Likewise.
972 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
973 types calling convention.
974 (ppc64_sysv_abi_return_value): Likewise.
975 * spu-tdep.c: Include "dwarf2.h"
976 (spu_return_value): Implement IBM OpenCL vector types calling
977 convention.
978
d6dafb7c
UW
9792011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
980
981 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
982 correct ABI for AltiVec vector arguments.
983
32b72a42
PA
9842011-02-07 Pedro Alves <pedro@codesourcery.com>
985
986 * valprint.c (val_print): Extend comment.
987 * ada-valprint.c (ada_valprint): Rewrite comment deferring
988 interface explanation to val_print.
989 (ada_val_print_array): Adjust comment to current interface.
990 (print_field_values): Adjust comment to current interface.
991 * c-valprint.c (c_val_print): Rewrite comment deferring interface
992 explanation to val_print.
993 * f-valprint.c (f_val_print): Ditto.
994 * jv-valprint.c (java_val_print): Ditto.
995 * m2-valprint.c (m2_val_print): Ditto.
996 * p-valprint.c (pascal_val_print): Ditto.
997
9998af43
TJB
9982011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
999
1000 * breakpoint.c (parse_breakpoint_sals): Fix description.
1001
505500db 10022011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 1003 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
1004
1005 * python/py-inferior.c (python_on_normal_stop): New function.
1006 (python_on_resume): New function.
1007 (python_inferior_exit): New function.
1008 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
1009 inferior_exit observers.
1010 * python/py-evtregistry.c: New file.
1011 * python/py-threadevent.c : New file.
1012 * python/py-event.c: New file.
1013 * python/py-evts.c: New file.
1014 * python/py-continueevent.c: New file.
1015 * python/py-bpevent.c: New file.
1016 * python/py-signalevent.c: New file.
1017 * python/py-exetiedevent.c: New file.
1018 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
1019 Move struct breakpoint_object from here...
1020 * python/python-internal.h: ... to here.
1021 * python/py-event.h: New file.
1022 * python/py-events.h: New file.
1023 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
1024 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
1025 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
1026 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
1027 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
1028 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
1029 Add build rules for all the above.
1030
9e0ac564
TT
10312011-02-04 Tom Tromey <tromey@redhat.com>
1032
1033 * dwarf2read.c (dwarf2_section_empty_p): New function.
1034 (dwarf2_read_section): Use dwarf2_section_empty_p.
1035 (dwarf2_section_size): New function.
1036 (dwarf2_get_section_info): Unconditionally read section.
1037 (dwarf2_read_index): Use dwarf2_section_empty_p.
1038 (partial_read_comp_unit_head): Use dwarf2_section_size.
1039 (dwarf2_symbol_mark_computed): Likewise.
1040
eee5b35e
DD
10412011-02-04 David Daney <ddaney@caviumnetworks.com>
1042
1043 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
1044
385203ed
DD
10452011-02-04 David Daney <ddaney@caviumnetworks.com>
1046
1047 * mips-linux-tdep.c: Include xml-syscall.h.
1048 (mips_linux_get_syscall_number): New function.
1049 (mips_linux_init_abi): Add calls to
1050 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
1051 * data-directory/Makefile.in (SYSCALLS_FILES): Add
1052 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
1053 * syscalls/mips-n32-linux.xml: New file.
1054 * syscalls/mips-n64-linux.xml: New file.
1055 * syscalls/mips-o32-linux.xml: New file.
1056
9277c30c
UW
10572011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
1058
1059 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
1060 Complain about inverted range entries.
1061 (dwarf2_record_block_ranges): Likewise.
1062
a3be7890
TJB
10632011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
1064
1065 Fix some typos.
1066 * breakpoint.c (update_watchpoint): Fix name of the
1067 update_global_location_list function.
1068 (print_one_breakpoint): Fix typo.
1069 (_initialize_breakpoint): Remove extra space in hbreak help
1070 string.
1071 * breakpoint.h (struct bp_location) <length>: Fix field
1072 description.
1073
041274d8
PA
10742011-02-04 Pedro Alves <pedro@codesourcery.com>
1075
1076 * regcache.c (registers_changed_ptid): Don't explictly always
1077 clear `current_regcache'. Only clear current_thread_ptid and
1078 current_thread_arch when PTID matches. Only reinit the frame
1079 cache if PTID matches the current inferior_ptid. Move alloca(0)
1080 call to ...
1081 (registers_changed): ... here.
1082
c1c2ab58
UW
10832011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
1084
1085 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
1086 starts with __stack_chk_guard as stack guard symbol.
1087
9011945e
AB
10882011-02-03 Andrew Burgess <aburgess@broadcom.com>
1089
1090 * disasm.c (compare_lines): Handle the end of sequence markers
1091 within the line table to better support disassembling over
1092 compilation unit boundaries.
1093
e0634ccf
UW
10942011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1095
1096 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
1097 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
1098 implementation even if no symbols are available.
1099 (thumb_analyze_prologue): Update call to skip_prologue_function.
1100 (arm_analyze_prologue): Likewise.
1101
0e9e9abd
UW
11022011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1103
1104 * arm-tdep.c: Include "observer.h".
1105 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
1106 (arm_exidx_data_key): New static variable.
1107 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
1108 (struct arm_exidx_data): Likewise.
1109 (arm_exidx_data_free): New function.
1110 (arm_compare_exidx_entries): Likewise.
1111 (arm_obj_section_from_vma): Likewise.
1112 (arm_exidx_new_objfile): Likewise.
1113 (arm_find_exidx_entry): Likewise.
1114 (arm_exidx_fill_cache): Likewise.
1115 (arm_exidx_unwind_sniffer): Likewise.
1116 (arm_exidx_unwind): New global variable.
1117 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
1118 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
1119 observer. Register arm_exidx_data_key as objfile data.
1120
2e9e421f
UW
11212011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1122
1123 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
1124 due to accessing uninitialized variable. Fix indentation.
1125
580688f3
PA
11262011-02-02 Pedro Alves <pedro@codesourcery.com>
1127
1128 * c-valprint.c (c_value_print): When doing virtual base pointer
1129 adjustment, create a new value with adjusted contents rather than
1130 changing the contents of the value being printed (and getting it
1131 wrong).
1132
3d2c1d41
PA
11332011-02-02 Pedro Alves <pedro@codesourcery.com>
1134
1135 * xml-support.c (xml_find_attribute): New.
1136 (xinclude_start_include): Use it.
1137 * xml-support.h (xml_find_attribute): Declare.
1138 * memory-map.c (memory_map_start_memory)
1139 (memory_map_start_property): Use xml_find_attribute.
1140 * osdata.c (osdata_start_osdata, osdata_start_column): Use
1141 xml_find_attribute.
1142 * remote.c (start_thread): Use xml_find_attribute.
1143 * solib-target.c (library_list_start_segment)
1144 (library_list_start_section, library_list_start_library)
1145 (library_list_start_list): Use xml_find_attribute.
1146 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
1147 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
1148 (tdesc_start_field): Use xml_find_attribute.
1149
0af3e2db
UW
11502011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
1151
1152 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
1153 (BUILD_OCL_VTYPES): Update.
1154
c1039e3c
JB
11552011-02-02 Joel Brobecker <brobecker@adacore.com>
1156
1157 * configure.ac: Work around non-GNU sed limitation when computing
1158 python version number.
1159 * configure: Regenerate.
1160
600ea1be
JK
11612011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1162
1163 Fix debug printing of TYPE_INSTANCE.
1164 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
1165 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
1166
56c12414
JK
11672011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1168
1169 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
1170 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
1171 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
1172 * ada-operator.inc: Rename the file to ...
1173 * ada-operator.def: ... here, wrap all the entries by macro OP.
1174 * expprint.c (op_name_standard): Remove all the entries. Include
1175 "std-operator.def" instead.
1176 * expression.h (enum exp_opcode): Include "std-operator.def" and
1177 "ada-operator.def". Move all the entries ...
1178 * std-operator.def: ... here, wrap all the entries by macro OP.
1179
c52b559d
PP
11802011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
1181
1182 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
1183 * breakpoint.c (remove_jit_event_breakpoints): New function.
1184 * jit.c (jit_descriptor_addr): Delete.
1185 (registering_code): Delete.
1186 (clear_int): Delete.
1187 (jit_inferior_data): New variable.
1188 (struct jit_inferior_data): New type.
1189 (get_jit_inferior_data): New function.
1190 (jit_inferior_data_cleanup): New function.
1191 (jit_read_descriptor): Adjust.
1192 (jit_register_code): Adjust.
1193 (jit_breakpoint_re_set_internal): New function; move code here ...
1194 (jit_inferior_init): ... from here.
1195 (jit_breakpoint_re_set): Adjust.
1196 (jit_reset_inferior_data_and_breakpoints): New function.
1197 (jit_inferior_created_observer): Adjust.
1198 (jit_inferior_exit_hook): Adjust.
1199 (jit_executable_changed_observer): New function.
1200 (jit_event_handler): Adjust.
1201 (_initialize_jit): Adjust.
1202
e839132d
MS
12032011-01-31 Michael Snyder <msnyder@vmware.com>
1204
1205 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
1206 line.
1207
47a80e90
TT
12082011-01-31 Tom Tromey <tromey@redhat.com>
1209
1210 PR python/12216:
1211 * python/python.c (execute_gdb_command): Call
1212 prevent_dont_repeat.
1213 * top.c (suppress_dont_repeat): New global.
1214 (dont_repeat): Use it.
1215 (prevent_dont_repeat): New function.
1216 * command.h (prevent_dont_repeat): Declare.
1217
45a43567
TT
12182011-01-31 Tom Tromey <tromey@redhat.com>
1219
1220 * infcmd.c (finish_backward): Use breakpoint_set_silent.
1221 * python/py-breakpoint.c (bppy_set_silent): Use
1222 breakpoint_set_silent.
1223 (bppy_set_thread): Use breakpoint_set_thread.
1224 (bppy_set_task): Use breakpoint_set_task.
1225 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
1226 (breakpoint_set_task): Declare.
1227 (make_breakpoint_silent): Remove.
1228 * breakpoint.c (breakpoint_set_silent): New function.
1229 (breakpoint_set_thread): Likewise.
1230 (breakpoint_set_task): Likewise.
1231 (make_breakpoint_silent): Remove.
1232
09d682a4
TT
12332011-01-31 Tom Tromey <tromey@redhat.com>
1234
1235 * breakpoint.h (user_breakpoint_p): Declare.
1236 * breakpoint.c (user_breakpoint_p): New function.
1237 (breakpoint_1): Use it.
1238 (save_breakpoints): Likewise.
1239
9c4ea6c5
JB
12402011-01-31 Joel Brobecker <brobecker@adacore.com>
1241
1242 * configure.ac: Add handling of Python distribution on Windows.
1243 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
1244 sysconfig variables are not defined, then do not use them.
1245 On Windows, if LIBPL is not defined, then use prefix + '/libs'
1246 instead. On Windows, return all paths using forward-slashes
1247 rather than backslashes.
1248
ac534cba
JB
12492011-01-31 Joel Brobecker <brobecker@adacore.com>
1250
1251 * configure.ac: Remove fallback behavior for building
1252 against Python. Remove tweaking of Python include path.
1253 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
1254 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
1255 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
1256 Always restore CPPFLAGS and LIBS after linking test.
1257 * configure: Regenerated.
1258 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
1259 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
1260 * python/python-internal.h: Adjust includes of Python .h files.
1261
c2f0d045
JB
12622011-01-31 Joel Brobecker <brobecker@adacore.com>
1263
1264 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
1265 in error message.
1266
6b0c4c1f
JB
12672011-01-31 Joel Brobecker <brobecker@adacore.com>
1268
1269 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
1270 value test.
1271
672c9795
YQ
12722011-01-31 Yao Qi <yao@codesourcery.com>
1273
1274 * arm-linux-nat.c: Update calls to regcache_register_status
1275 instead of regcache_valid_p.
1276 * aix-thread.c: Likewise.
1277 * i386gnu-nat.c: Likewise.
1278
80b23b6a
JK
12792011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1280
1281 Fix crash.
1282 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
1283 touching TYPE_FIELD_ARTIFICIAL.
1284
4cd712bd
RE
12852011-01-28 Richard Earnshaw <rearnsha@arm.com>
1286
1287 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
1288 Committers.
1289
ffd5ec24
PA
12902011-01-28 Pedro Alves <pedro@codesourcery.com>
1291
1292 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
1293 selected, don't try iterating over the traceframe's blocks.
1294 (tfile_has_stack): If there's no traceframe selected, then there's
1295 no stack.
1296 (tfile_has_registers): If there's no traceframe selected, then
1297 there's no registers.
1298
e8c9e0a1
PA
12992011-01-28 Pedro Alves <pedro@codesourcery.com>
1300
1301 * target.c (memory_xfer_partial): No need to restore shadows if we
1302 haven't read anything.
1303
de15c4ab
PA
13042011-01-28 Pedro Alves <pedro@codesourcery.com>
1305
1306 * mips-tdep.c (mips_print_register): Use get_frame_register_value
1307 and val_print_scalar_formatted.
1308
9f41c731
PA
13092011-01-27 Pedro Alves <pedro@codesourcery.com>
1310
1311 * tracepoint.c (tfile_read): New.
1312 (tfile_open): Use it.
1313 (tfile_get_traceframe_address): Use it.
1314 (tfile_trace_find): Use it.
1315 (walk_blocks_callback_func): New typedef.
1316 (match_blocktype): New function.
1317 (traceframe_walk_blocks): New function.
1318 (traceframe_find_block_type): New function.
1319 (tfile_fetch_registers, tfile_xfer_partial)
1320 (tfile_get_trace_state_variable_value): Use
1321 traceframe_find_block_type and tfile_read.
1322
cdefc55d
KB
13232011-01-26 Kevin Buettner <kevinb@redhat.com>
1324
1325 * remote-mips.c: Add internationalization mark ups. Remove
1326 trailing \n from already marked up strings.
1327
a81766d8
TT
13282011-01-26 Tom Tromey <tromey@redhat.com>
1329
1330 * python/py-prettyprint.c (print_string_repr): Clear
1331 'addressprint' option when calling val_print_string.
1332 (print_children): Handle Val_pretty_default. Clear 'addressprint'
1333 option when calling val_print_string.
1334
74aedc46
TT
13352011-01-26 Tom Tromey <tromey@redhat.com>
1336
1337 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
1338 GDB_PY_LL_ARG.
1339 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
1340 macros.
1341 (gdb_py_longest, gdb_py_ulongest): New typedefs.
1342 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
1343 (gdb_py_long_as_ulongest): New defines.
1344 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
1345 (gdb_py_int_as_long): Declare.
1346 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
1347 GDB_PY_LL_ARG, gdb_py_object_from_longest.
1348 (valpy_long): Add comment.
1349 * python/py-utils.c (get_addr_from_python): Use
1350 gdb_py_long_as_ulongest. Handle overflow properly.
1351 (gdb_py_object_from_longest): New function.
1352 (gdb_py_object_from_ulongest): Likewise.
1353 (gdb_py_int_as_long): Likewise.
1354 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
1355 * python/py-symtab.c (salpy_get_pc): Use
1356 gdb_py_long_from_ulongest.
1357 (salpy_get_line): Use PyInt_FromLong.
1358 * python/py-param.c (set_parameter_value): Use
1359 gdb_py_int_as_long.
1360 * python/py-lazy-string.c (stpy_get_address): Use
1361 gdb_py_long_from_ulongest.
1362 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
1363 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
1364 * python/py-breakpoint.c (bppy_set_thread): Use
1365 gdb_py_int_as_long.
1366 (bppy_set_task): Likewise.
1367 (bppy_set_ignore_count): Likewise.
1368 (bppy_set_hit_count): Likewise.
1369 * python/py-block.c (blpy_get_start): Use
1370 gdb_py_object_from_ulongest.
1371 (blpy_get_end): Likewise.
1372 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
1373
e4f6d2ec
TJB
13742011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
1375
1376 PR/symtab 11766:
1377 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
1378 * gdb/solib.c (solib_read_symbols): Check for addr_low in
1379 equality test for objfile, initialize addr_low if needed.
1380
b30aa278
PA
13812011-01-25 Pedro Alves <pedro@codesourcery.com>
1382
1383 * tui/tui-regs.c (tui_register_format): Remove dead code.
1384
ab2188aa
PA
13852011-01-25 Pedro Alves <pedro@codesourcery.com>
1386
1387 * printcmd.c (print_formatted): Use val_print_scalar_formatted
1388 instead of print_scalar_formatted.
1389 (print_scalar_formatted): Don't handle 's' format strings here,
1390 and add an assertion that we never see such format here.
1391 * valprint.h (val_print_scalar_formatted): Declare.
1392 * valprint.c (val_print_scalar_formatted): New.
1393 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
1394 instead of print_scalar_formatted.
1395 * jv-valprint.c (java_val_print): Ditto.
1396 * p-valprint.c (pascal_val_print): Ditto.
1397 * ada-valprint.c (ada_val_print_1): Ditto.
1398 * f-valprint.c (f_val_print): Ditto.
1399 * infcmd.c (registers_info): Ditto.
1400 * m2-valprint.c (m2_val_print): Ditto.
1401
66d61a4c
PA
14022011-01-25 Pedro Alves <pedro@codesourcery.com>
1403
1404 * m2-valprint.c (print_unbounded_array): Pass
1405 value_contents_for_printing rather than value_contents, to
1406 m2_print_array_contents. Also pass in the value.
1407
831adc1f
JK
14082011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1409
1410 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
1411 (save_gdb_index_command): Switch to .gdb_index version 4.
1412
20622269
PA
14132011-01-25 Pedro Alves <pedro@codesourcery.com>
1414
1415 * mi/mi-main.c (get_register): Use get_frame_register_value rather
1416 than frame_register, and always pass a valid value to val_print.
1417
585fdaa1
PA
14182011-01-25 Pedro Alves <pedro@codesourcery.com>
1419
1420 Centralize printing "<optimized out>".
1421
1422 * valprint.h (val_print_optimized_out): Declare.
1423 * cp-valprint.c (cp_print_value_fields): Use
1424 val_print_optimized_out.
1425 * jv-valprint.c (java_print_value_fields): Ditto.
1426 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1427 * printcmd.c (print_formatted): Ditto.
1428 * valprint.c (valprint_check_validity): Ditto.
1429 (value_check_printable): Ditto.
1430 (val_print_optimized_out): New.
1431
29ec5263
PA
14322011-01-25 Pedro Alves <pedro@codesourcery.com>
1433
1434 * infcmd.c (default_print_registers_info): Allocate values so to
1435 never pass a NULL value to val_print.
1436
de4127a3
PA
14372011-01-25 Pedro Alves <pedro@codesourcery.com>
1438
1439 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
1440 boolean. Make sure to always pass a value that matches the
1441 contents buffer to callees. Preserve `address' for following
1442 iterations.
1443 * value.c (value_contents_for_printing_const): New.
1444 (value_address): Constify value argument.
1445 * value.h (value_contents_for_printing_const): Declare.
1446 (value_address): Constify value argument.
1447
ee99023e
PA
14482011-01-25 Pedro Alves <pedro@codesourcery.com>
1449
1450 * regcache.c (struct regcache_descr): Rename
1451 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
1452 and sizeof_cooked_register_valid_p to
1453 sizeof_cooked_register_status.
1454 (init_regcache_descr): Adjust.
1455 (struct regcache): Rename register_valid_p field to
1456 register_status.
1457 (regcache_xmalloc_1, regcache_xfree, regcache_save)
1458 (do_cooked_read): Adjust.
1459 (regcache_valid_p): Rename to ...
1460 (regcache_register_status): ... this. Adjust.
1461 (regcache_invalidate): Adjust.
1462 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
1463 Adjust.
1464 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
1465 as unavailable, not valid.
1466 (regcache_dump): Adjust.
1467 * regcache.h (enum register_status): New.
1468 (regcache_register_status): Declare.
1469 (regcache_invalidate): Delete declaration.
1470 * corelow.c (get_core_registers): Adjust.
1471 * tracepoint.c (tfile_fetch_registers): Adjust.
1472 * trad-frame.c (REG_VALUE): Rename to ...
1473 (TF_REG_VALUE): ... this.
1474 (REG_UNKNOWN): Rename to ...
1475 (TF_REG_UNKNOWN): ... this.
1476 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
1477 * mi/mi-main.c (register_changed_p): Adjust.
1478
99e42fd8
PA
14792011-01-25 Pedro Alves <pedro@codesourcery.com>
1480
1481 * regcache.c (struct regcache_descr): Remove outdated comment.
1482 (init_regcache_descr): Remove sizeof_raw_register_valid_p
1483 overallocate hack.
1484 (regcache_xmalloc): Rename to ...
1485 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
1486 Allocate the regcache type accordingly.
1487 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
1488 (regcache_xfree): Asser the source is also readonly. Copy sizeof
1489 cooked registers, not raw.
1490 (regcache_dup_no_passthrough): Delete.
1491 (get_thread_arch_regcache): Use regcache_xmalloc_1.
1492 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
1493 mention obsolete write_register_bytes.
1494 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
1495
f7605bc2
PA
14962011-01-25 Pedro Alves <pedro@codesourcery.com>
1497
1498 Stop remote_read_bytes from handling partial reads itself.
1499
1500 * remote-fileio.c: Include target.h.
1501 (remote_fileio_write_bytes): Delete.
1502 (remote_fileio_func_open, remote_fileio_func_write)
1503 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
1504 target_read_memory.
1505 (remote_fileio_func_stat): Use target_read_memory and
1506 target_write_memory.
1507 (remote_fileio_func_gettimeofday): Use target_write_memory.
1508 (remote_fileio_func_system): Use target_read_memory.
1509 * remote.c (remote_write_bytes): Make it static.
1510 (remote_read_bytes): Don't handle partial reads here.
1511 * remote.h (remote_read_bytes): Delete declaration.
1512
efc0eabd
PA
15132011-01-25 Pedro Alves <pedro@codesourcery.com>
1514
1515 Simplify XML parsing a bit.
1516
1517 * xml-support.h (gdb_xml_parse_quick): Declare.
1518 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
1519 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
1520 parameter.
1521 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
1522 gdb_xml_create_parser_and_cleanup_1.
1523 (gdb_xml_parse_quick): New.
1524 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
1525 * osdata.c (osdata_parse): Ditto.
1526 * remote.c (remote_threads_info): Ditto.
1527 * solib-target.c (solib_target_parse_libraries): Ditto.
1528 * xml-syscall.c (syscall_parse_xml): Ditto.
1529 * xml-tdesc.c (tdesc_parse_xml): Ditto.
1530
314d366a
KB
15312011-01-24 Kevin Buettner <kevinb@redhat.com>
1532
1533 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
1534 with remote-mips.o added to gdb_target_obs.
1535 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
1536
a491d753
PA
15372011-01-24 Pedro Alves <pedro@codesourcery.com>
1538
1539 * ada-valprint.c (val_print_packed_array_elements): Pass the
1540 correct struct value to val_print.
1541 (ada_val_print_1): Ditto.
1542
490f124f
PA
15432011-01-24 Pedro Alves <pedro@codesourcery.com>
1544
1545 Don't lose embedded_offset in printing routines throughout.
1546
1547 * valprint.h (val_print_array_elements): Change prototype.
1548 * valprint.c (val_print_array_elements): Add `embedded_offset'
1549 parameter, and adjust to pass it down to val_print, while passing
1550 `valaddr' or `address' unmodified. Take embedded_offset into
1551 account when checking repetitions.
1552 * c-valprint.c (c_val_print): Pass embedded_offset to
1553 val_print_array_elements instead of adjusting `valaddr' and
1554 `address'.
1555 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
1556 embedded_offset to val_print_array_elements instead of adjusting
1557 `valaddr'.
1558 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
1559 * p-valprint.c (pascal_val_print): Pass embedded_offset to
1560 val_print_array_elements and pascal_object_print_value_fields
1561 instead of adjusting `valaddr'.
1562 (pascal_object_print_value_fields): Add `offset' parameter, and
1563 adjust to use it.
1564 (pascal_object_print_value): Add `offset' parameter, and adjust to
1565 use it.
1566 (pascal_object_print_static_field): Use
1567 value_contents_for_printing/value_embedded_offset, rather than
1568 value_contents.
1569 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
1570 parameter, and adjust to use it. Use
1571 value_contents_for_printing/value_embedded_offset, rather than
1572 value_contents.
1573 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
1574 (ada_val_print_array): Add `offset' parameter, and adjust to use
1575 it.
1576 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
1577 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
1578 Instead work with offsets. Use
1579 value_contents_for_printing/value_embedded_offset, rather than
1580 value_contents. Change `defer_val_int' local type to CORE_ADDR,
1581 and use value_from_pointer to extract a target pointer, rather
1582 than value_from_longest.
1583 (print_variant_part): Add `offset' parameter. Replace
1584 `outer_valaddr' parameter by a new `outer_offset' parameter.
1585 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1586 (ada_value_print): Use
1587 value_contents_for_printing/value_embedded_offset, rather than
1588 value_contents.
1589 (print_record): Add `offset' parameter, and adjust to pass it
1590 down.
1591 (print_field_values): Add `offset' parameter. Replace
1592 `outer_valaddr' parameter by a new `outer_offset' parameter.
1593 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1594 Use value_contents_for_printing/value_embedded_offset, rather than
1595 value_contents.
1596 * d-valprint.c (dynamic_array_type): Use
1597 value_contents_for_printing/value_embedded_offset, rather than
1598 value_contents.
1599 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
1600 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
1601 (java_print_value_fields): Take `offset' into account. Don't
1602 re-adjust `valaddr'. Instead pass down adjusted offsets.
1603 (java_val_print): Take `embedded_offset' into account. Pass it to
1604 java_print_value_fields.
1605 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
1606 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
1607 down adjusted offsets.
1608 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
1609 (f_val_print): Take `embedded_offset' into account.
1610
7bfc9434
JB
16112011-01-21 Joel Brobecker <brobecker@adacore.com>
1612
1613 * inflow.c: Include "gdbcmd.h".
1614 (interactive_mode): New static global, moved here from top.c.
1615 (show_interactive_mode): New function, moved here from top.c.
1616 use gdb_has_a_terminal instead of input_from_terminal_p to
1617 determine the current mode.
1618 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
1619 setting.
1620 (_initialize_inflow): Add the "set/show interactive-mode"
1621 commands. Moved here from top.c, after having adjusted slightly
1622 the help text.
1623 * top.c (interactive_mode, show_interactive_mode): Delete, moved
1624 to inflow.c.
1625 (input_from_terminal_p): Remove handling of "interactive-mode"
1626 setting, moved to infow.c.
1627 (init_main): Remove creation of the "set/show interactive-mode"
1628 commands, moved to inflow.c.
1629
44603653
JB
16302011-01-19 Joel Brobecker <brobecker@adacore.com>
1631
1632 * NEWS: Add entry for native ia64-hpux support.
1633
4694da01
TT
16342011-01-19 Tom Tromey <tromey@redhat.com>
1635
1636 PR mi/8618:
1637 * thread.c (free_thread): Free 'name'.
1638 (print_thread_info): Emit thread name. Change CLI output.
1639 (thread_name_command): New function.
1640 (do_captured_thread_select): Emit newline.
1641 (_initialize_thread): Register 'thread name' command.
1642 * target.h (struct target_ops) <to_thread_name>: New field.
1643 (target_thread_name): New macro.
1644 * target.c (update_current_target): Handle to_thread_name.
1645 * python/py-infthread.c (thpy_get_name): New function.
1646 (thpy_set_name): Likewise.
1647 (thread_object_getset): Add "name".
1648 * linux-nat.c (linux_nat_thread_name): New function.
1649 (linux_nat_add_target): Set to_thread_name.
1650 * gdbthread.h (struct thread_info) <name>: New field.
1651
10d44370
JB
16522011-01-18 Joel Brobecker <brobecker@adacore.com>
1653
1654 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
1655 (ada_val_print_1): Likewise.
1656
e3acb115
JB
16572011-01-18 Joel Brobecker <brobecker@adacore.com>
1658
1659 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
1660 upper limit address is not greater than the function end address
1661 when the upper limit could not be computed using the debugging
1662 info.
1663
dc92e161
TT
16642011-01-17 Tom Tromey <tromey@redhat.com>
1665
1666 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
1667 get_regcomp_error.
1668 * utils.c: Include gdb_regex.h.
1669 (do_regfree_cleanup): New function.
1670 (make_regfree_cleanup): Likewise.
1671 (get_regcomp_error): Likewise.
1672 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
1673
f55af66d
TT
16742011-01-17 Tom Tromey <tromey@redhat.com>
1675
1676 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
1677 re_compile_fastmap.
1678
a5a44b53
PM
16792011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
1680
1681 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
1682 for internal variables.
1683 (last_was_structop): New static variable.
1684 (COMPLETE): New token.
1685 (field_exp): New rule to group all '.' suffix handling.
1686 Add mark_struct_expression calls when approriate to be able
1687 to correctly find fields for completion.
1688 (yylex): Adapt to handle field completion and set INTVAR when
1689 required.
1690
2c291032
YQ
16912011-01-14 Yao Qi <yao@codesourcery.com>
1692
1693 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
1694 save_reggroup, restore_reggroup and all_reggroup.
1695
447b483c
JB
16962011-01-14 Joel Brobecker <brobecker@adacore.com>
1697
1698 * ada-valprint. (ada_printchar): Use the correct type length
1699 in call to ada_emit_char.
1700 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
1701
7b64a93b
PM
17022011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
1703
1704 * solib-som.h (hpux_major_release): Declare variable here.
1705 * solib-som.c: Remove <sys/utsname.h> header.
1706 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
1707 (hpux_major_release): Make global, change default value to
1708 DEFAULT_HPUX_MAJOR_RELEASE.
1709 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
1710 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
1711 Add "solib-som.h" header.
1712 (set_hpux_major_release): New function.
1713 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
1714
4e18c053
MF
17152011-01-14 Mike Frysinger <vapier@gentoo.org>
1716
1717 * configure.tgt (*-*-uclinux*): Match more Linux os targets
1718
a9df6b22
JB
17192011-01-14 Joel Brobecker <brobecker@adacore.com>
1720
1721 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
1722 new-line at end of warning message.
1723 (ia64_hpux_store_register): Remove trailing new-line at end of
1724 error message.
1725 * ia64-hpux-tdep.c: Rephrase comment.
1726 * solib-ia64-hpux.c (struct dld_info): Change type of field
1727 dld_flags from "long long" to ULONGEST.
1728
ecb956dd
PA
17292011-01-14 Pedro Alves <pedro@codesourcery.com>
1730
1731 * target.h (deprecated_child_ops): Delete declaration.
1732 * target.c (deprecated_child_ops): Delete definition.
1733
76adfcae
PA
17342011-01-14 Pedro Alves <pedro@codesourcery.com>
1735
1736 * Makefile.in (hpux-thread.o): Delete rule.
1737 * configure.ac: Don't check for HPUX DCE threads support.
1738 * configure, config.in: Regenerate.
1739 * hppa-hpux-nat.c (child_suppress_run): Delete.
1740 (hppa_hpux_child_can_run): Delete.
1741 (_initialize_hppa_hpux_nat): Don't override to_can_run.
1742 * hpux-thread.c: Delete.
1743
042e866e
JB
17442011-01-13 Joel Brobecker <brobecker@adacore.com>
1745
1746 * hpux-thread.c (hpux_pid_to_str): Delete.
1747
4ffa5a33
JB
17482011-01-13 Joel Brobecker <brobecker@adacore.com>
1749
1750 * ada-valprint.c (ada_emit_char): Remove strange code.
1751 Check that c is <= UCHAR_MAX before passing it to isascii.
1752 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
1753
de8fa76c
JB
17542011-01-13 Joel Brobecker <brobecker@adacore.com>
1755
1756 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
1757 to the case where instream is stdin.
1758
c4de7027
JB
17592011-01-13 Joel Brobecker <brobecker@adacore.com>
1760
1761 * ia64-tdep.h (struct regcache): Forward declare.
1762 (struct ia64_infcall_ops): New struct type.
1763 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
1764 and "infcall_ops".
1765 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
1766 Renames ia64_find_global_pointer.
1767 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
1768 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
1769 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
1770 methods.
1771 (ia64_infcall_ops): New static global constant.
1772 (ia64_gdbarch_init): Set tdep->infcall_ops.
1773 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
1774 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
1775 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
1776 (ia64_hpux_dummy_code): New static global constant.
1777 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
1778 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
1779 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
1780 New function.
1781 (ia64_hpux_infcall_ops): New static global constant.
1782 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
1783 for inferior function calls to work properly on ia64-hpux.
1784
77ca787b
JB
17852011-01-13 Joel Brobecker <brobecker@adacore.com>
1786
1787 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
1788 * ia64-tdep.h (struct frame_info): forward declaration.
1789 (struct gdbarch_tdep): Add field size_of_register_frame.
1790 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
1791 to determine the size of the register frame.
1792 (ia64_size_of_register_frame): New function.
1793 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
1794 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
1795 (IA64_HPUX_UREG_REASON): New macro.
1796 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
1797 New functions.
1798 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
1799 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
1800 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
1801 objects.
1802
92c9a463
JB
18032011-01-13 Joel Brobecker <brobecker@adacore.com>
1804
1805 Add support for ia64-hpux.
1806 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
1807 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
1808
1809 * configure.host: Add handling for ia64-hpux hosts. Add associated
1810 floatformats.
1811 * configure.tgt: Add handling for ia64-hpux targets.
1812 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
1813 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
1814 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
1815
f688d93f
JB
18162011-01-13 Joel Brobecker <brobecker@adacore.com>
1817
1818 [ttrace] Compute thread list immediately after attach.
1819 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
1820 New subprogram.
1821 (inf_ttrace_attach): Use it.
1822
1b89e62f
JB
18232011-01-13 Joel Brobecker <brobecker@adacore.com>
1824
1825 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
1826 if we could not determine the frame's function address. Instead,
1827 use the frame's PC, and then continue.
1828
3e5e6e2a
JB
18292011-01-13 Joel Brobecker <brobecker@adacore.com>
1830
1831 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
1832 not already defined.
1833
825d6d8a
JB
18342011-01-13 Joel Brobecker <brobecker@adacore.com>
1835
1836 * ia64-tdep.c (ia64_struct_type_p): New function.
1837 (ia64_extract_return_value): Handle integral values that are
1838 less than 8 bytes long.
1839 (ia64_push_dummy_call): Likewise.
1840
7458e667
JB
18412011-01-13 Joel Brobecker <brobecker@adacore.com>
1842
1843 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
1844 floatformat_ia64_ext.
1845 (floatformat_ia64_ext_big): New static const.
1846 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
1847
1b05df00
TT
18482011-01-12 Tom Tromey <tromey@redhat.com>
1849
1850 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
1851 messages.
1852 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
1853 (mi_cmd_thread_list_ids): Likewise.
1854 (mi_cmd_data_list_changed_registers): Likewise.
1855 (mi_cmd_data_list_register_values): Likewise.
1856 (mi_cmd_data_write_register_values): Likewise.
1857 (mi_cmd_data_evaluate_expression): Likewise.
1858 (mi_cmd_data_read_memory): Likewise.
1859 (mi_cmd_data_read_memory_bytes): Likewise.
1860 (mi_cmd_data_write_memory): Likewise.
1861 (mi_cmd_enable_timings): Likewise.
1862 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
1863 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
1864 (mi_cmd_var_delete): Likewise.
1865 (mi_cmd_var_set_format): Likewise.
1866 (mi_cmd_var_show_format): Likewise.
1867 (mi_cmd_var_info_num_children): Likewise.
1868 (mi_cmd_var_list_children): Likewise.
1869 (mi_cmd_var_info_type): Likewise.
1870 (mi_cmd_var_info_expression): Likewise.
1871 (mi_cmd_var_show_attributes): Likewise.
1872 (mi_cmd_var_assign): Likewise.
1873 (mi_cmd_var_update): Likewise.
1874 (mi_cmd_enable_pretty_printing): Likewise.
1875 (mi_cmd_var_set_update_range): Likewise.
1876 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
1877 messages.
1878 (mi_cmd_target_file_put): Likewise.
1879 (mi_cmd_target_file_delete): Likewise.
1880 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
1881 messages.
1882 (mi_cmd_stack_info_depth): Likewise.
1883 (mi_cmd_stack_list_locals): Likewise.
1884 (mi_cmd_stack_list_args): Likewise.
1885 (mi_cmd_stack_select_frame): Likewise.
1886 (mi_cmd_stack_select_frame): Likewise.
1887 (mi_cmd_stack_info_frame): Likewise.
1888 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
1889 messages.
1890 (mi_cmd_file_list_exec_source_files): Likewise.
1891 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
1892 (mi_cmd_env_cd): Likewise.
1893 (mi_cmd_env_path): Likewise.
1894 (mi_cmd_env_dir): Likewise.
1895 (mi_cmd_inferior_tty_show): Likewise.
1896 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
1897 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
1898 (mi_cmd_break_watch): Likewise.
1899
ad422571
TJB
19002011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
1901
1902 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
1903 (ppc_linux_insert_hw_breakpoint): Likewise.
1904 (ppc_linux_remove_hw_breakpoint): Likewise.
1905 (ppc_linux_insert_watchpoint): Likewise.
1906
c2ff108b
JK
19072011-01-12 Andrew Burgess <aburgess@broadcom.com>
1908 Jan Kratochvil <jan.kratochvil@redhat.com>
1909
1910 PR fortran/11104 and DWARF unbound arrays detection.
1911 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
1912 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
1913 unspecified upper bound.
1914 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
1915 variables array_size_array, tmp_type and offset_item. New variable
1916 array. Remove call to f77_get_upperbound. New variables array_type
1917 and index. Call value_subscripted_rvalue for each dimenasion. Remove
1918 the final call to deprecated_set_value_type.
1919
41e8491f
JK
19202011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1921
1922 Make value allocations more lazy.
1923 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
1924 instead of allocate_value and set_value_lazy when possible.
1925 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
1926 instead of allocate_value and set_value_lazy.
1927 * findvar.c (value_of_register_lazy): Likewise.
1928 (read_var_value): Remove V preallocation, call just check_typedef in
1929 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
1930 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
1931 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
1932 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
1933 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
1934 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
1935 the end, remove set_value_lazy there.
1936 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
1937 instead of allocate_value and set_value_lazy when possible.
1938 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
1939 * value.c (allocate_computed_value): Use allocate_value_lazy instead
1940 of allocate_value and set_value_lazy.
1941 (value_from_contents_and_address): Use allocate_value_lazy instead of
1942 allocate_value and set_value_lazy when possible.
1943
b716877b
AB
19442011-01-12 Andrew Burgess <aburgess@broadcom.com>
1945
1946 * disasm.c (dump_insns): Support dumping opcodes for MI.
1947 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
1948 dumping of instruction opcodes.
1949
d5ae309f
JB
19502011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
1951
1952 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
1953 appropiately.
1954
98871305
TT
19552011-01-11 Tom Tromey <tromey@redhat.com>
1956
1957 * thread.c (do_captured_thread_select): Emit newline before
1958 printing frame.
1959
c378eb4e
MS
19602011-01-11 Michael Snyder <msnyder@vmware.com>
1961
1962 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
1963 * score-tdep.c: Ditto.
1964 * score-tdep.h: Ditto.
1965 * ser-base.c: Ditto.
1966 * ser-go32.c: Ditto.
1967 * serial.c: Ditto.
1968 * serial.h: Ditto.
1969 * ser-mingw.c: Ditto.
1970 * ser-pipe.c: Ditto.
1971 * ser-tcp.c: Ditto.
1972 * ser-unix.c: Ditto.
1973 * sh64-tdep.c: Ditto.
1974 * shnbsd-nat.c: Ditto.
1975 * sh-tdep.c: Ditto.
1976 * sh-tdep.h: Ditto.
1977 * solib.c: Ditto.
1978 * solib-darwin.c: Ditto.
1979 * solib-frv.c: Ditto.
1980 * solib.h: Ditto.
1981 * solib-irix.c: Ditto.
1982 * solib-osf.c: Ditto.
1983 * solib-pa64.c: Ditto.
1984 * solib-som.c: Ditto.
1985 * solib-spu.c: Ditto.
1986 * solib-sunos.c: Ditto.
1987 * solib-svr4.c: Ditto.
1988 * solist.h: Ditto.
1989 * sol-thread.c: Ditto.
1990 * somread.c: Ditto.
1991 * source.c: Ditto.
1992 * source.h: Ditto.
1993 * sparc64-linux-tdep.c: Ditto.
1994 * sparc64-tdep.c: Ditto.
1995 * sparc-linux-nat.c: Ditto.
1996 * sparc-linux-tdep.c: Ditto.
1997 * sparc-sol2-nat.c: Ditto.
1998 * sparc-sol2-tdep.c: Ditto.
1999 * sparc-tdep.c: Ditto.
2000 * sparc-tdep.h: Ditto.
2001 * spu-tdep.c: Ditto.
2002 * stabsread.c: Ditto.
2003 * stabsread.h: Ditto.
2004 * stack.c: Ditto.
2005 * symfile.c: Ditto.
2006 * symfile.h: Ditto.
2007 * symmisc.c: Ditto.
2008 * symtab.c: Ditto.
2009 * symtab.h: Ditto.
2010 * target.c: Ditto.
2011 * target-descriptions.c: Ditto.
2012 * target-descriptions.h: Ditto.
2013 * target.h: Ditto.
2014 * target-memory.c: Ditto.
2015 * terminal.h: Ditto.
2016 * thread.c: Ditto.
2017 * top.c: Ditto.
2018 * tracepoint.c: Ditto.
2019 * tracepoint.h: Ditto.
2020 * trad-frame.h: Ditto.
2021 * typeprint.c: Ditto.
2022
581e13c1
MS
20232011-01-11 Michael Snyder <msnyder@vmware.com>
2024
2025 * ui-file.c: Comment cleanup, mostly periods and spaces.
2026 * ui-file.h: Ditto.
2027 * ui-out.c: Ditto.
2028 * ui-out.h: Ditto.
2029 * utils.c: Ditto.
2030 * v850-tdep.c: Ditto.
2031 * valarith.c: Ditto.
2032 * valops.c: Ditto.
2033 * valprint.c: Ditto.
2034 * valprint.h: Ditto.
2035 * value.c: Ditto.
2036 * value.h: Ditto.
2037 * varobj.c: Ditto.
2038 * varobj.h: Ditto.
2039 * vax-tdep.c: Ditto.
2040 * vec.c: Ditto.
2041 * vec.h: Ditto.
2042 * version.h: Ditto.
2043 * windows-nat.c: Ditto.
2044 * windows-tdep.c: Ditto.
2045 * xcoffread.c: Ditto.
2046 * xcoffsolib.c: Ditto.
2047 * xml-support.c: Ditto.
2048 * xstormy16-tdep.c: Ditto.
2049 * xtensa-tdep.c: Ditto.
2050 * xtensa-tdep.h: Ditto.
2051
90e4670f
TJB
20522011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2053
2054 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
2055 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
2056
e09342b5
TJB
20572011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
2058 Thiago Jung Bauermann <bauerman@br.ibm.com>
2059
2060 Implement support for PowerPC BookE ranged watchpoints.
2061 * breakpoint.h
2062 (struct breakpoint_ops) <resources_needed>: New method.
2063 Initialize to NULL in all existing breakpoint_ops instances.
2064 (struct breakpoint) <exact>: New field.
2065 (target_exact_watchpoints): Declare external global.
2066 * breakpoint.c (target_exact_watchpoints): New global flag.
2067 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
2068 b->enable_state to bp_enabled before calling
2069 hw_watchpoint_used_count.
2070 (hw_watchpoint_used_count): Iterate over all bp_locations in a
2071 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
2072 if available.
2073 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
2074 if the watchpoint is exact.
2075 (resources_needed_watchpoint): New function.
2076 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
2077 (watch_command_1): Set b->exact if the user asked for an exact
2078 watchpoint and one can be set.
2079 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
2080 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
2081 the user asks for an exact watchpoint and one can be set. Return
2082 number of needed debug registers to watch the expression.
2083 * gdbtypes.c (is_scalar_type): New function, based on
2084 valprint.c:scalar_type_p.
2085 (is_scalar_type_recursive): New function.
2086 * gdbtypes.h (is_scalar_type_recursive): Declare.
2087 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
2088 handle regions when ranged watchpoints are available.
2089 (create_watchpoint_request): New function.
2090 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
2091 create_watchpoint_request.
2092 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
2093 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
2094 `set powerpc' and `show powerpc' commands.
2095 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
2096 Mention documentation comment in the target macro.
2097 (target_region_ok_for_hw_watchpoint): Document return value.
2098
9fa40276
TJB
20992011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2100
2101 * breakpoint.c (update_watchpoint): Decide on using a software or
2102 hardware watchpoint after the bp_locations are created.
2103
77b06cd7
TJB
21042010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
2105
2106 Convert hardware watchpoints to use breakpoint_ops.
2107 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
2108 <insert_location>: ... this. Return int instead of void.
2109 Accept pointer to struct bp_location instead of pointer to
2110 struct breakpoint. Adapt all implementations.
2111 (breakpoint_ops) <remove>: Rename to...
2112 <remove_location>: ... this. Accept pointer to struct bp_location
2113 instead of pointer to struct breakpoint. Adapt all implementations.
2114 * breakpoint.c (insert_catchpoint): Delete function.
2115 (insert_bp_location): Call the watchpoint or catchpoint's
2116 breakpoint_ops.insert method.
2117 (remove_breakpoint_1): Call the watchpoint or catchpoint's
2118 breakpoint_ops.remove method.
2119 (insert_watchpoint, remove_watchpoint): New functions.
2120 (watchpoint_breakpoint_ops): New structure.
2121 (watch_command_1): Initialize the OPS field.
2122 * inf-child.c (inf_child_insert_fork_catchpoint)
2123 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
2124 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
2125 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
2126 Delete functions.
2127 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
2128 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
2129 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
2130 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
2131 * target.c (update_current_target): Change default implementation of
2132 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
2133 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
2134 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
2135 to_set_syscall_catchpoint to return_one.
2136 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
2137 (debug_to_insert_exec_catchpoint): Report return value.
2138 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
2139 (to_insert_exec_catchpoint): Change declaration to return int instead
2140 of void.
2141
9b20d036
MS
21422011-01-11 Michael Snyder <msnyder@vmware.com>
2143
2144 * arm-tdep.c: Internationalization.
2145 * c-lang.c: Ditto.
2146 * charset.c: Ditto.
2147 * fork-child.c: Ditto.
2148 * nto-procfs.c: Ditto.
2149 * ppc-sysv-tdep.c: Ditto.
2150 * procfs.c: Ditto.
2151 * remote-mips.c: Ditto.
2152 * remote.c: Ditto.
2153 * rs6000-nat.c: Ditto.
2154 * rs6000-tdep.c: Ditto.
2155 * target.c: Ditto.
2156 * valops.c: Ditto.
2157 * value.c: Ditto.
2158 * xml-support.c: Ditto.
2159 * mi/mi-cmd-break.c: Ditto.
2160 * mi/mi-cmd-var.c: Ditto.
2161 * mi/mi-interp.c: Ditto.
2162 * mi/mi-main.c: Ditto.
2163
dae477fe
AB
21642011-01-11 Andrew Burgess <aburgess@broadcom.com>
2165
2166 * remote-sim.c (gdbsim_store_register): Update API to
2167 sim_store_register to check more error conditions.
2168
0df8b418
MS
21692011-01-10 Michael Snyder <msnyder@vmware.com>
2170
2171 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
2172 * nto-tdep.c: Ditto.
2173 * nto-tdep.h: Ditto.
2174 * objc-exp.y: Ditto.
2175 * objc-lang.c: Ditto.
2176 * objfiles.c: Ditto.
2177 * objfiles.h: Ditto.
2178 * observer.c: Ditto.
2179 * opencl-lang.c: Ditto.
2180 * osabi.c: Ditto.
2181 * parse.c: Ditto.
2182 * parser-defs.h: Ditto.
2183 * p-exp.y: Ditto.
2184 * p-lang.c: Ditto.
2185 * posix-hdep.c: Ditto.
2186 * ppcbug-rom.c: Ditto.
2187 * ppc-linux-nat.c: Ditto.
2188 * ppc-linux-tdep.c: Ditto.
2189 * ppc-linux-tdep.h: Ditto.
2190 * ppcnbsd-tdep.c: Ditto.
2191 * ppcobsd-tdep.c: Ditto.
2192 * ppcobsd-tdep.h: Ditto.
2193 * ppc-sysv-tdep.c: Ditto.
2194 * ppc-tdep.h: Ditto.
2195 * printcmd.c: Ditto.
2196 * proc-abi.c: Ditto.
2197 * proc-flags.c: Ditto.
2198 * procfs.c: Ditto.
2199 * proc-utils.h: Ditto.
2200 * progspace.h: Ditto.
2201 * prologue-value.c: Ditto.
2202 * prologue-value.h: Ditto.
2203 * psympriv.h: Ditto.
2204 * psymtab.c: Ditto.
2205 * p-typeprint.c: Ditto.
2206 * p-valprint.c: Ditto.
2207 * ravenscar-sparc-thread.c: Ditto.
2208 * ravenscar-thread.c: Ditto.
2209 * ravenscar-thread.h: Ditto.
2210 * record.c: Ditto.
2211 * regcache.c: Ditto.
2212 * regcache.h: Ditto.
2213 * remote.c: Ditto.
2214 * remote-fileio.c: Ditto.
2215 * remote-fileio.h: Ditto.
2216 * remote.h: Ditto.
2217 * remote-m32r-sdi.c: Ditto.
2218 * remote-mips.c: Ditto.
2219 * remote-sim.c: Ditto.
2220 * rs6000-aix-tdep.c: Ditto.
2221 * rs6000-nat.c: Ditto.
2222 * rs6000-tdep.c: Ditto.
2223
0d7a18f7
MS
22242011-01-10 Michael Snyder <msnyder@vmware.com>
2225
2226 * charset.c (validate): Internationalization.
2227 * coffread.c (read_one_sym): Ditto.
2228 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
2229 * h8300-tdep.c (H8300_extract_return_value): Ditto.
2230 * inflow.c (new_tty): Ditto.
2231 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
2232 * m32c-tdep.c (m32c_return_value): Ditto.
2233 * mep-tdep.c (mep_store_return_value): Ditto.
2234 * score-tdep.c (score7_fetch_insn): Ditto.
2235 * ser-mingw.c (pipe_windows_open): Ditto.
2236 * sh64-tdep.c (sh64_extract_return_value): Ditto.
2237 * spu-tdep.c (spu_register_type): Ditto.
2238 * tracepoint.c (trace_find_command): Ditto.
2239 * valarith.c (value_pos): Ditto.
2240
9a153e0b
JB
22412011-01-10 Joel Brobecker <brobecker@adacore.com>
2242
2243 * ada-valprint.c (printstr): Minor comment reformatting.
2244
35ecd2d6
MS
22452011-01-08 Michael Snyder <msnyder@vmware.com>
2246
2247 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
2248 markup.
2249
1777feb0
MS
22502011-01-08 Michael Snyder <msnyder@vmware.com>
2251
2252 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
2253 * hppa-hpux-tdep.c: Ditto.
2254 * hppa-linux-nat.c: Ditto.
2255 * hppa-linux-tdep.c: Ditto.
2256 * hppanbsd-tdep.c: Ditto.
2257 * hppa-tdep.c: Ditto.
2258 * hppa-tdep.h: Ditto.
2259 * hpux-thread.c: Ditto.
2260 * i386-cygwin-tdep.c: Ditto.
2261 * i386-darwin-nat.c: Ditto.
2262 * i386gnu-nat.c: Ditto.
2263 * i386-linux-nat.c: Ditto.
2264 * i386-linux-tdep.c: Ditto.
2265 * i386-nat.c: Ditto.
2266 * i386-nat.h: Ditto.
2267 * i386nbsd-tdep.c: Ditto.
2268 * i386-sol2-nat.c: Ditto.
2269 * i386-stub.c: Ditto.
2270 * i386-tdep.c: Ditto.
2271 * i386-tdep.h: Ditto.
2272 * i387-tdep.c: Ditto.
2273 * ia64-linux-nat.c: Ditto.
2274 * ia64-linux-tdep.c: Ditto.
2275 * ia64-tdep.c: Ditto.
2276 * infcall.c: Ditto.
2277 * infcall.h: Ditto.
2278 * infcmd.c: Ditto.
2279 * inferior.c: Ditto.
2280 * inferior.h: Ditto.
2281 * infloop.c: Ditto.
2282 * inflow.c: Ditto.
2283 * infrun.c: Ditto.
2284 * interps.c: Ditto.
2285 * interps.h: Ditto.
2286 * iq2000-tdep.c: Ditto.
2287 * irix5-nat.c: Ditto.
2288 * jit.c: Ditto.
2289 * jit.h: Ditto.
2290 * jv-exp.y: Ditto.
2291 * jv-lang.c: Ditto.
2292 * jv-lang.h: Ditto.
2293 * jv-typeprint.c: Ditto.
2294 * jv-valprint.c: Ditto.
2295 * language.c: Ditto.
2296 * language.h: Ditto.
2297 * linespec.c: Ditto.
2298 * linux-fork.c: Ditto.
2299 * linux-nat.c: Ditto.
2300 * linux-thread-db.c: Ditto.
2301 * lm32-tdep.c: Ditto.
2302
025bb325
MS
23032011-01-08 Michael Snyder <msnyder@vmware.com>
2304
2305 * m2-exp.y: Comment cleanup, mostly periods and spaces.
2306 * m2-lang.c: Ditto.
2307 * m2-typeprint.c: Ditto.
2308 * m2-valprint.c: Ditto.
2309 * m32c-tdep.c: Ditto.
2310 * m32r-linux-nat.c: Ditto.
2311 * m32r-rom.c: Ditto.
2312 * m32r-tdep.c: Ditto.
2313 * m32r-tdep.h: Ditto.
2314 * m68hc11-tdep.c: Ditto.
2315 * m58klinux-nat.c: Ditto.
2316 * m68k-tdep.c: Ditto.
2317 * m88k-tdep.c: Ditto.
2318 * m88k-tdep.h: Ditto.
2319 * machoread.c: Ditto.
2320 * macrocmd.c: Ditto.
2321 * macroexp.c: Ditto.
2322 * macrotab.c: Ditto.
2323 * main.c: Ditto.
2324 * maint.c: Ditto.
2325 * mdebugread.c: Ditto.
2326 * mdebugread.h: Ditto.
2327 * memattr.c: Ditto.
2328 * memattr.h: Ditto.
2329 * memory-map.h: Ditto.
2330 * mep-tdep.c: Ditto.
2331 * microblaze-rom.c: Ditto.
2332 * microblaze-tdep.c: Ditto.
2333 * minsyms.c: Ditto.
2334 * mips-irix-tdep.c: Ditto.
2335 * mips-linux-nat.c: Ditto.
2336 * mips-linux-tdep.c: Ditto.
2337 * mips-linux-tdep.h: Ditto.
2338 * mipsnbsd-nat.c: Ditto.
2339 * mipsnbsd-tdep.c: Ditto.
2340 * mipsread.c: Ditto.
2341 * mips-tdep.c: Ditto.
2342 * mips-tdep.h: Ditto.
2343 * mn10300-linux-tdep.c: Ditto.
2344 * mn10300-tdep.c: Ditto.
2345 * mn10300-tdep.h: Ditto.
2346 * monitor.c: Ditto.
2347 * monitor.h: Ditto.
2348 * moxie-tdep.c: Ditto.
2349 * moxie-tdep.h: Ditto.
2350 * mt-tdep.c: Ditto.
2351
1642781b
MF
23522011-01-08 Mike Frysinger <vapier@gentoo.org>
2353
2354 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
2355
394b0adb
JB
23562011-01-08 Robert Millan <rmh@gnu.org>
2357
2358 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
2359
b670013c
MS
23602011-01-07 Michael Snyder <msnyder@vmware.com>
2361
2362 * charset.c (_initialize_charset): Fix typo in string.
2363
a743e542
MS
23642011-01-07 Michael Snyder <msnyder@vmware.com>
2365
2366 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
2367 for i18n.
2368 * tui/tui-layout.c (tui_set_layout_for_display_command):
2369 Split line so that operator goes to beginning of line.
2370 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
2371 assignment out of if statement.
2372
0963b4bd
MS
23732011-01-07 Michael Snyder <msnyder@vmware.com>
2374
2375 * ada-lang.c: Comment cleanup, mostly periods and spaces.
2376 * ada-lang.h: Ditto.
2377 * ada-tasks.c: Ditto.
2378 * ada-valprint.c: Ditto.
2379 * aix-threads.c: Ditto.
2380 * alpha-linux-nat.c: Ditto.
2381 * alpha-linux-tdep.c: Ditto.
2382 * alpha-mdebug-tdep.c: Ditto.
2383 * alpha-nat.c: Ditto.
2384 * alpha-osf1-tdep.c: Ditto.
2385 * alpha-tdep.c: Ditto.
2386 * alphabsd-nat.c: Ditto.
2387 * alphabsd-tdep.c: Ditto.
2388 * amd64-darwin-tdep.c: Ditto.
2389 * amd64-linux-nat.c: Ditto.
2390 * amd64-linux-tdep.c: Ditto.
2391 * amd64-sol2-tdep.c: Ditto.
2392 * amd64-tdep.c: Ditto.
2393 * amd64-fbsd-tdep.c: Ditto.
2394 * amd64-nbsd-tdep.c: Ditto.
2395 * amd64-obsd-tdep.c: Ditto.
2396 * amd64-linux-nat.c: Ditto.
2397 * amd64-linux-tdep.c: Ditto.
2398 * arm-tdep.c: Ditto.
2399 * arm-tdep.h: Ditto.
2400 * armnbsd-nat.c: Ditto.
2401 * avr-tdep.c: Ditto.
2402 * bfin-tdep.c: Ditto.
2403 * bsd-kvm.c: Ditto.
2404 * c-typeprintc: Ditto.
2405 * c-valprint.c: Ditto.
2406 * coff-pe-read.h: Ditto.
2407 * coffreead.c: Ditto.
2408 * cris-tdep.c: Ditto.
2409 * d-lang.c: Ditto.
2410 * darwin-nat-info.c: Ditto.
2411 * darwin-nat.c: Ditto.
2412 * dbug-rom.c: Ditto.
2413 * dbxread.c: Ditto.
2414 * dcache.c: Ditto.
2415 * dcache.h: Ditto.
2416 * dec-thread.c: Ditto.
2417 * defs.h: Ditto.
2418 * demangle.c: Ditto.
2419 * dicos-tdep.c: Ditto.
2420 * dictionary.c: Ditto.
2421 * dictionary.h: Ditto.
2422 * dink32-rom.c: Ditto.
2423 * disasm.c: Ditto.
2424 * doublest.c: Ditto.
2425 * dsrec.c: Ditto.
2426 * dummy-frame.c: Ditto.
2427 * dwarf2-frame.c: Ditto.
2428 * dwarf2expr.c: Ditto.
2429 * dwarf2loc.c: Ditto.
2430 * dwarf2read.c: Ditto.
2431 * elfread.c: Ditto.
2432 * environ.c: Ditto.
2433 * eval.c: Ditto.
2434 * event-top.h: Ditto.
2435 * exceptions.c: Ditto.
2436 * exceptions.h: Ditto.
2437 * exec.c: Ditto.
2438 * expprint.c: Ditto.
2439 * expression.h: Ditto.
2440 * f-exp.y: Ditto.
2441 * f-lang.c: Ditto.
2442 * f-lang.h: Ditto.
2443 * f-typeprint.c: Ditto.
2444 * f-valprint.c: Ditto.
2445 * fbsd-nat.c: Ditto.
2446 * findvar.c: Ditto.
2447 * fork-child.c: Ditto.
2448 * frame.c: Ditto.
2449 * frame.h: Ditto.
2450 * frv-linux-tdep.c: Ditto.
2451 * frv-tdep.c: Ditto.
2452 * gcore.c: Ditto.
2453 * gdb-stabs.h: Ditto.
2454 * gdb_assert.h: Ditto.
2455 * gdb_string.h: Ditto.
2456 * gdb_thread_db.h: Ditto.
2457 * gdb_wait.h: Ditto.
2458 * gdbarch.sh: Ditto.
2459 * gdbcore.h: Ditto.
2460 * gdbthread.h: Ditto.
2461 * gdbtypes.c: Ditto.
2462 * gdbtypes.h: Ditto.
2463 * gnu-nat.c: Ditto.
2464 * gnu-nat.h: Ditto.
2465 * gnu-v2-abi.c: Ditto.
2466 * gnu-v3-abi.c: Ditto.
2467 * go32-nat.c: Ditto.
2468 * gdbarch.c: Regenerate.
2469 * gdbarch.h: Regenerate.
2470
ac74f770
MS
24712011-01-07 Michael Snyder <msnyder@vmware.com>
2472
2473 * ax-gdb.c: Adjust some long output strings.
2474 * breakpoint.c: Ditto.
2475 * charset.c: Ditto.
2476 * cp-abi.c: Ditto.
2477 * infcall.c: Ditto.
2478 * infrun.c: Ditto.
2479 * linux-nat.c: Ditto.
2480 * solib-pa64.c: Ditto.
2481 * solib-som.c: Ditto.
2482
d8e22779
TT
24832011-01-06 Tom Tromey <tromey@redhat.com>
2484
2485 PR python/12367:
2486 * NEWS: Add item.
2487 * python/python.c (GdbMethods): Add "newest_frame" method.
2488 * python/python-internal.h (gdbpy_newest_frame): Declare.
2489 * python/py-frame.c (gdbpy_newest_frame): New function.
2490
a255712f
PP
24912010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
2492
2493 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
2494 * jit.c (jit_debug): New variable.
2495 (show_jit_debug): New function.
2496 (struct target_buffer): Use ULONGEST.
2497 (bfd_open_from_target_memory): Likewise.
2498 (jit_register_code, jit_inferior_init): Add debug output.
2499 (_initialize_jit): Register "debug jit" command.
2500
ccfc3d6e
TT
25012011-01-06 Tom Tromey <tromey@redhat.com>
2502
2503 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
2504 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
2505 and ARCH_FRAME.
2506
57126e4a
TT
25072011-01-06 Tom Tromey <tromey@redhat.com>
2508
2509 * python/py-frame.c (frapy_block): Use get_frame_block.
2510
16dfc9ce
JB
25112011-01-06 Joel Brobecker <brobecker@adacore.com>
2512
2513 Do not stop on SIGPRIO signals by default
2514 * infrun.c (_initialize_infrun): Unset signal_stop and
2515 signal_print for TARGET_SIGNAL_PRIO.
2516
b1ce2347
JB
25172011-01-06 Joel Brobecker <brobecker@adacore.com>
2518
2519 * ada-tasks.c: Fix style violation in comment.
2520
8f7e195f
JB
25212011-01-06 Joel Brobecker <brobecker@adacore.com>
2522
2523 * linespec.c (decode_compound, find_method): Remove trailing \n
2524 at end of error string.
2525 * solib-irix.c (irix_current_sos): Likewise.
2526 * varobj.c (uninstall_variable): Likewise.
2527
e9bdf92c
JB
25282011-01-06 Joel Brobecker <brobecker@adacore.com>
2529
2530 * copyright.py: New script.
2531 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
2532 Launch emacs without exec'ing. Call copyright.py afterwards.
2533
3e43a32a
MS
25342011-01-05 Michael Snyder <msnyder@vmware.com>
2535
2536 * addrmap.c: Shorten lines of >= 80 columns.
2537 * arch-utils.c: Ditto.
2538 * arch-utils.h: Ditto.
2539 * ax-gdb.c: Ditto.
2540 * ax-general.c: Ditto.
2541 * bcache.c: Ditto.
2542 * blockframe.c: Ditto.
2543 * breakpoint.c: Ditto.
2544 * buildsym.c: Ditto.
2545 * c-lang.c: Ditto.
2546 * c-typeprint.c: Ditto.
2547 * charset.c: Ditto.
2548 * coffread.c: Ditto.
2549 * command.h: Ditto.
2550 * corelow.c: Ditto.
2551 * cp-abi.c: Ditto.
2552 * cp-namespace.c: Ditto.
2553 * cp-support.c: Ditto.
2554 * dbug-rom.c: Ditto.
2555 * dbxread.c: Ditto.
2556 * defs.h: Ditto.
2557 * dfp.c: Ditto.
2558 * dfp.h: Ditto.
2559 * dictionary.c: Ditto.
2560 * disasm.c: Ditto.
2561 * doublest.c: Ditto.
2562 * dwarf2-frame.c: Ditto.
2563 * dwarf2expr.c: Ditto.
2564 * dwarf2loc.c: Ditto.
2565 * dwarf2read.c: Ditto.
2566 * elfread.c: Ditto.
2567 * eval.c: Ditto.
2568 * event-loop.c: Ditto.
2569 * event-loop.h: Ditto.
2570 * exceptions.h: Ditto.
2571 * exec.c: Ditto.
2572 * expprint.c: Ditto.
2573 * expression.h: Ditto.
2574 * f-lang.c: Ditto.
2575 * f-valprint.c: Ditto.
2576 * findcmd.c: Ditto.
2577 * frame-base.c: Ditto.
2578 * frame-unwind.c: Ditto.
2579 * frame-unwind.h: Ditto.
2580 * frame.c: Ditto.
2581 * frame.h: Ditto.
2582 * gcore.c: Ditto.
2583 * gdb-stabs.h: Ditto.
2584 * gdb_assert.h: Ditto.
2585 * gdb_dirent.h: Ditto.
2586 * gdb_obstack.h: Ditto.
2587 * gdbcore.h: Ditto.
2588 * gdbtypes.c: Ditto.
2589 * gdbtypes.h: Ditto.
2590 * inf-ttrace.c: Ditto.
2591 * infcall.c: Ditto.
2592 * infcmd.c: Ditto.
2593 * inflow.c: Ditto.
2594 * infrun.c: Ditto.
2595 * inline-frame.h: Ditto.
2596 * language.c: Ditto.
2597 * language.h: Ditto.
2598 * libunwind-frame.c: Ditto.
2599 * libunwind-frame.h: Ditto.
2600 * linespec.c: Ditto.
2601 * linux-nat.c: Ditto.
2602 * linux-nat.h: Ditto.
2603 * linux-thread-db.c: Ditto.
2604 * machoread.c: Ditto.
2605 * macroexp.c: Ditto.
2606 * macrotab.c: Ditto.
2607 * main.c: Ditto.
2608 * maint.c: Ditto.
2609 * mdebugread.c: Ditto.
2610 * memattr.c: Ditto.
2611 * minsyms.c: Ditto.
2612 * monitor.c: Ditto.
2613 * monitor.h: Ditto.
2614 * objfiles.c: Ditto.
2615 * objfiles.h: Ditto.
2616 * osabi.c: Ditto.
2617 * p-typeprint.c: Ditto.
2618 * p-valprint.c: Ditto.
2619 * parse.c: Ditto.
2620 * printcmd.c: Ditto.
2621 * proc-events.c: Ditto.
2622 * procfs.c: Ditto.
2623 * progspace.c: Ditto.
2624 * progspace.h: Ditto.
2625 * psympriv.h: Ditto.
2626 * psymtab.c: Ditto.
2627 * record.c: Ditto.
2628 * regcache.c: Ditto.
2629 * regcache.h: Ditto.
2630 * remote-fileio.c: Ditto.
2631 * remote.c: Ditto.
2632 * ser-mingw.c: Ditto.
2633 * ser-tcp.c: Ditto.
2634 * ser-unix.c: Ditto.
2635 * serial.c: Ditto.
2636 * serial.h: Ditto.
2637 * solib-frv.c: Ditto.
2638 * solib-irix.c: Ditto.
2639 * solib-osf.c: Ditto.
2640 * solib-pa64.c: Ditto.
2641 * solib-som.c: Ditto.
2642 * solib-sunos.c: Ditto.
2643 * solib-svr4.c: Ditto.
2644 * solib-target.c: Ditto.
2645 * solib.c: Ditto.
2646 * somread.c: Ditto.
2647 * source.c: Ditto.
2648 * stabsread.c: Ditto.
2649 * stabsread.c: Ditto.
2650 * stack.c: Ditto.
2651 * stack.h: Ditto.
2652 * symfile-mem.c: Ditto.
2653 * symfile.c: Ditto.
2654 * symfile.h: Ditto.
2655 * symmisc.c: Ditto.
2656 * symtab.c: Ditto.
2657 * symtab.h: Ditto.
2658 * target-descriptions.c: Ditto.
2659 * target-memory.c: Ditto.
2660 * target.c: Ditto.
2661 * target.h: Ditto.
2662 * terminal.h: Ditto.
2663 * thread.c: Ditto.
2664 * top.c: Ditto.
2665 * tracepoint.c: Ditto.
2666 * tracepoint.h: Ditto.
2667 * ui-file.c: Ditto.
2668 * ui-file.h: Ditto.
2669 * ui-out.h: Ditto.
2670 * user-regs.c: Ditto.
2671 * user-regs.h: Ditto.
2672 * utils.c: Ditto.
2673 * valarith.c: Ditto.
2674 * valops.c: Ditto.
2675 * valprint.c: Ditto.
2676 * valprint.h: Ditto.
2677 * value.c: Ditto.
2678 * varobj.c: Ditto.
2679 * varobj.h: Ditto.
2680 * vec.h: Ditto.
2681 * xcoffread.c: Ditto.
2682 * xcoffsolib.c: Ditto.
2683 * xcoffsolib.h: Ditto.
2684 * xml-syscall.c: Ditto.
2685 * xml-tdesc.c: Ditto.
2686
9a2b4c1b
MS
26872011-01-05 Michael Snyder <msnyder@vmware.com>
2688
2689 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
2690 * cli/cli-decode.c: Ditto.
2691 * cli/cli-dump.c: Ditto.
2692 * cli/cli-logging.c: Ditto.
2693 * cli/cli-script.c: Ditto.
2694 * cli/cli-setshow.c: Ditto.
2695 * common/signals.c: Ditto.
2696 * mi/mi-cmd-break.c: Ditto.
2697 * mi/mi-cmd-disas.c: Ditto.
2698 * mi/mi-cmd-stack.c: Ditto.
2699 * mi/mi-cmd-var.c: Ditto.
2700 * mi/mi-cmds.c: Ditto.
2701 * mi/mi-common.h: Ditto.
2702 * mi/mi-console.c: Ditto.
2703 * mi/mi-interp.c: Ditto.
2704 * mi/mi-main.c: Ditto.
2705 * osf-share/cma_attr.c: Ditto.
2706 * osf-share/cma_deb_core.h: Ditto.
2707 * osf-share/cma_debug_client.h: Ditto.
2708 * osf-share/cma_handle.h: Ditto.
2709 * osf-share/cma_mutex.h: Ditto.
2710 * osf-share/cma_stack_int.h: Ditto.
2711 * osf-share/cma_tcb_defs.h: Ditto.
2712 * python/py-auto-load.c: Ditto.
2713 * python/py-breakpoint.c: Ditto.
2714 * python/py-cmd.c: Ditto.
2715 * python/py-frame.c: Ditto.
2716 * python/py-objfile.c: Ditto.
2717 * python/py-param.c: Ditto.
2718 * python/py-progspace.c: Ditto.
2719 * python/py-symbol.c: Ditto.
2720 * python/py-value.c: Ditto.
2721 * python/python-internal.h: Ditto.
2722 * python/python.c: Ditto.
2723 * tui/tui-data.c: Ditto.
2724 * tui/tui-disasm.c: Ditto.
2725 * tui/tui-hooks.c: Ditto.
2726 * tui/tui-io.c: Ditto.
2727 * tui/tui-layout.c: Ditto.
2728 * tui/tui-regs.c: Ditto.
2729 * tui/tui-source.c: Ditto.
2730 * tui/tui-stack.c: Ditto.
2731 * tui/tui-win.c: Ditto.
2732 * tui/tui-windata.c: Ditto.
2733 * tui/tui-winsource.c: Ditto.
2734
44944448
JB
27352011-01-05 Joel Brobecker <brobecker@adacore.com>
2736
2737 * configure.ac, gdb.1: Copyright year update.
2738
ebedcab5
JK
27392011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2740
2741 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
2742 this_pc_in_block, morestack_msym and morestack_name. Check for
2743 "__morestack" minimal symbol there.
2744
e5cc9f32
JB
27452011-01-03 Joel Brobecker <brobecker@adacore.com>
2746
2747 * symfile.c (find_sym_fns): Add call to dont_repeat.
2748
7b6bb8da
JB
27492011-01-01 Joel Brobecker <brobecker@adacore.com>
2750
2751 Copyright year update in most files (performed by copyright.sh).
2752
71ce852c
JB
27532011-01-01 Joel Brobecker <brobecker@adacore.com>
2754
2755 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 2756
c3c1ebe8 2757For older changes see ChangeLog-2010.
c906108c
SS
2758\f
2759Local Variables:
2760mode: change-log
2761left-margin: 8
2762fill-column: 74
2763version-control: never
57da7796 2764coding: utf-8
c906108c 2765End:
This page took 1.438153 seconds and 4 git commands to generate.