sim: fix minor --sysroot mem leak
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
432b4d03
JK
12011-05-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Doug Evans <dje@google.com>
3
4 Fix PR 10970, PR 12702.
5 * linux-nat.c (linux_lwp_is_zombie): New function.
6 (wait_lwp): Initialize status. New variable prev_mask. Block signals.
7 Check for linux_lwp_is_zombie. Use WNOHANG and sigsuspend.
8
b0f260d6
PA
92011-05-27 Pedro Alves <pedro@codesourcery.com>
10
11 * defs.h (continuation_ftype, continuation_free_arg_ftype): New
12 typedefs.
13 (add_continuation, add_intermediate_continuation)
14 (add_inferior_continuation): Use them.
15 * continuations.c (struct continuation): Use them.
16 (make_continuation_ftype): Delete.
17 (make_continuation, add_inferior_continuation, add_continuation)
18 (add_intermediate_continuation): Use continuation_ftype and
19 continuation_free_arg_ftype. Rename parameters to shorter names.
20
af1e9a32
PA
212011-05-27 Pedro Alves <pedro@codesourcery.com>
22
23 * continuations.c (make_continuation): Make it return void.
24 (do_my_continuations): Rename to ...
25 (do_my_continuations_1): ... this. Remove old_chain parameter and
26 adjust.
27 (do_my_continuations): New.
28 (discard_my_continuations): Rename to ...
29 (discard_my_continuations_1): ... this. Remove old_chain
30 parameter and adjust.
31 (discard_my_continuations): New.
32 (add_inferior_continuation): Simplify.
33 (do_all_inferior_continuations): Reimplement on top
34 do_my_continuations.
35 (discard_all_inferior_continuations): Simplify.
36 (add_continuation): Simplify.
37 (do_all_continuations_ptid): Simplify.
38 (discard_all_continuations_thread_callback): Simplify.
39 (add_intermediate_continuation): Simplify.
40 (discard_all_intermediate_continuations_thread_callback):
41 Simplify.
42
50c0c017
PA
432011-05-27 Pedro Alves <pedro@codesourcery.com>
44
45 * utils.c (struct continuation, add_continuation)
46 (add_inferior_continuation)
47 (do_all_inferior_continuations, discard_all_inferior_continuations)
48 (restore_thread_cleanup, do_all_continuations_ptid)
49 (do_all_continuations_thread_callback)
50 (do_all_continuations_thread, do_all_continuations)
51 (discard_all_continuations_thread_callback)
52 (discard_all_continuations_thread, discard_all_continuations)
53 (add_intermediate_continuation)
54 (do_all_intermediate_continuations_thread_callback)
55 (do_all_intermediate_continuations_thread)
56 (do_all_intermediate_continuations)
57 (discard_all_intermediate_continuations_thread_callback)
58 (discard_all_intermediate_continuations_thread)
59 (discard_all_intermediate_continuations): Move to ...
60 * continuations.c: ... this new file, and adjust to no longer
61 implement continuations on top of cleanups.
62 * Makefile.in (SFILES): Add continuations.c.
63 (COMMON_OBS): Add continuations.o.
64
d8b34453
PA
652011-05-26 Pedro Alves <pedro@codesourcery.com>
66
67 * inferior.h (enum exec_direction_kind): Delete EXEC_ERROR.
68 * infrun.c (show_exec_direction_func): Don't handle EXEC_ERROR.
69 Internal error on invalid values.
70 * reverse.c: Don't handle EXEC_ERROR.
71 * mi/mi-main.c: Don't handle EXEC_ERROR.
72
32231432
PA
732011-05-26 Pedro Alves <pedro@codesourcery.com>
74
75 * record.c: Include event-loop.h, inf-loop.h.
76 (record_beneath_to_async): New global.
77 (tmp_to_async): New global.
78 (record_async_inferior_event_token): New global.
79 (record_open_1): Don't error out if async is enabled.
80 (record_open): Handle to_async. Create an async event source in
81 the event loop.
82 (record_close): Delete the async event source.
83 (record_resumed): New global.
84 (record_execution_dir): New global.
85 (record_resume, record_core_resume): Set them. Register the
86 target on the event loop.
87 (record_wait): Rename to ...
88 (record_wait_1): ... this. Add more debug output. Handle
89 TARGET_WNOHANG, and the target beneath returning
90 TARGET_WAITKIND_IGNORE.
91 (record_wait): Reimplement on top of record_wait_1.
92 (record_async_mask_value): New global.
93 (record_async, record_async_mask, record_can_async_p)
94 (record_is_async_p, record_execution_direction): New functions.
95 (init_record_ops, init_record_core_ops): Install new methods.
96 * infrun.c (fetch_inferior_event): Temporarily switch the global
97 execution direction to the direction the target was going.
98 (execution_direction): Change type to int.
99 * target.c (default_execution_direction): New function.
100 (update_current_target): Inherit and de_fault
101 to_execution_direction.
102 * target.h (struct target_ops) <to_execution_direction>: New
103 field.
104 (target_execution_direction): New macro.
105 * inferior.h (execution_direction): Change type to int.
106
949dc678
PA
1072011-05-26 Pedro Alves <pedro@codesourcery.com>
108
109 * infcall.c (call_function_by_hand): Don't allow calling functions
110 in reverse execution mode.
111
c13bd2b5
PA
1122011-05-26 Pedro Alves <pedro@codesourcery.com>
113
114 * infcmd.c (finish_command): Allow async finish in reverse.
115
6938fd34
YQ
1162011-05-26 Yao Qi <yao@codesourcery.com>
117
118 * gdb_thread_db.h: Delete. Move to ...
119 * common/gdb_thread_db.h: ... here.
120
9da8c2a0
PA
1212011-05-26 Pedro Alves <pedro@codesourcery.com>
122
123 * infcmd.c (finish_backward): Set a step-resume breakpoint at the
124 function's entry point instead of a manually managed momentary
125 breakpoint, and only ever issue one proceed call.
126 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_STEP_RESUME>: If
127 doing a reverse-finish, switch to stepi mode, to do another step.
128 (insert_step_resume_breakpoint_at_sal): Make public.
129 (normal_stop): No need to save function value return registers if
130 going reverse.
131 * inferior.h (insert_step_resume_breakpoint_at_sal): Declare.
132
2c03e5be
PA
1332011-05-26 Pedro Alves <pedro@codesourcery.com>
134
135 * breakpoint.h (enum bptype) <bp_hp_step_resume>: New.
136 (enum bpstat_what_main_action): Move BPSTAT_WHAT_STEP_RESUME
137 before BPSTAT_WHAT_STOP_SILENT. Add BPSTAT_WHAT_HP_STEP_RESUME
138 at the end.
139 * breakpoint.c (update_breakpoints_after_exec): Also delete hp
140 step-resume breakpoints.
141 (print_it_typical): Handle bp_hp_step_resume.
142 (bpstat_what): Ditto.
143 (bptype_string): Ditto.
144 (print_one_breakpoint_location): Ditto.
145 (allocate_bp_location): Ditto.
146 (mention): Ditto.
147 (breakpoint_re_set_one): Ditto.
148 * infrun.c (handle_inferior_event): Adjust. Split
149 BPSTAT_WHAT_STEP_RESUME handling in BPSTAT_WHAT_STEP_RESUME and
150 BPSTAT_WHAT_HP_STEP_RESUME.
151 (insert_step_resume_breakpoint_at_sal): Rename to ...
152 (insert_step_resume_breakpoint_at_sal_1): ... this. Add bptype
153 parameter. Handle it.
154 (insert_step_resume_breakpoint_at_sal): Reimplement on top of
155 insert_step_resume_breakpoint_at_sal_1.
156 (insert_step_resume_breakpoint_at_frame): Rename to ...
157 (insert_hp_step_resume_breakpoint_at_frame): ... this. Adjust to
158 set a high-priority step-resume breakpoint.
159 (insert_step_resume_breakpoint_at_frame): Adjust comment.
160 (insert_step_resume_breakpoint_at_caller): Ditto.
161
51be5b68
PA
1622011-05-26 Pedro Alves <pedro@codesourcery.com>
163
164 * breakpoint.c (iterate_over_related_breakpoints): New.
165 (do_map_delete_breakpoint): New.
166 (delete_command): Pass do_map_delete_breakpoint to
167 map_breakpoint_numbers.
168 (do_disable_breakpoint): New.
169 (do_map_disable_breakpoint): Iterate over the breakpoint's related
170 breakpoints.
171 (do_enable_breakpoint): Rename to ...
172 (enable_breakpoint_disp): ... this.
173 (enable_breakpoint): Adjust.
174 (do_enable_breakpoint): New.
175 (enable_once_breakpoint): Delete.
176 (do_map_enable_breakpoint): New.
177 (do_map_enable_once_breakpoint): New.
178 (enable_once_command, enable_delete_command)
179 (delete_trace_command): Iterate over the breakpoint's related
180 breakpoints.
181
4a1be8d2
PA
1822011-05-26 Pedro Alves <pedro@codesourcery.com>
183
184 * alpha-tdep.c (alpha_cannot_fetch_register): Don't return true
185 for ALPHA_ZERO_REGNUM.
186 (alpha_supply_int_regs): Explicitly supply zero as the value for
187 ALPHA_ZERO_REGNUM in the register cache.
188 * alpha-nat.c (fetch_osf_core_registers): Ditto.
189
59d70315
YQ
1902011-05-26 Yao Qi <yao@codesourcery.com>
191
192 * gdb/gdb_thread_db.h: Remove HAVE_UINTPTR_T.
193
251d32d9
TG
1942011-05-26 Tristan Gingold <gingold@adacore.com>
195
196 * symfile.h (struct dwarf2_section_names): New type.
197 (struct dwarf2_debug_sections): New type.
198 (dwarf2_has_info): Add parameter.
199 * dwarf2read.c (dwarf2_elf_names): New variable.
200 (INFO_SECTION, ABBREV_SECTION, LINE_SECTION, LOC_SECTION)
201 (MACINFO_SECTION, STR_SECTION, RANGES_SECTION, TYPES_SECTION)
202 (FRAME_SECTION, EH_FRAME_SECTION, GDB_INDEX_SECTION): Remove.
203 (dwarf2_has_info): Add names parameter. Pass names
204 to dwarf2_locate_sections.
205 (section_is_p): Rewrite using the names parameter.
206 (dwarf2_locate_sections): Use section names from the names parameter.
207 * coffread.c (coff_symfile_read): Adjust call to dwarf2_has_info.
208 * elfread.c (read_psyms): Ditto.
209 * machoread.c (macho_symfile_read): Ditto.
210
652c71b4
AS
2112011-05-25 Andreas Schwab <schwab@redhat.com>
212
213 PR gdb/8677
214 * event-loop.c (handle_file_event): Don't handle POLLHUP as error.
215
f17170e5
KS
2162011-05-24 Keith Seitz <keiths@redhat.com>
217
218 PR breakpoint/12803
219 * linespec.c (keep_name_info): Add handling for "volatile" keyword.
220 (decode_compound): Unconditionally call keep_name_info.
221
cdac0397
PA
2222011-05-24 Pedro Alves <pedro@codesourcery.com>
223
224 * breakpoint.c (watchpoint_check): If the watchpoint went out of
225 scope, clear its command list.
226 (map_breakpoint_numbers): Don't walk the related breakpoints list
227 of each breakpoint.
228
91d4fe3f
TT
2292011-05-24 Tom Tromey <tromey@redhat.com>
230
231 * MAINTAINERS: Move Jim Blandy to past maintainers.
232
3017a003
TG
2332011-05-24 Tristan Gingold <gingold@adacore.com>
234
235 * symfile.h (enum dwarf2_section_enum): New type.
236 (dwarf2_get_section_info): New prototype.
237 * dwarf2read.c (dwarf2_get_section_info): Replace parameter
238 section_name by sect. Use a switch to select the info.
239 * dwarf2-frame.c (warf2_get_section_info): Remove prototype.
240 (dwarf2_build_frame_info): Adjust calls to dwarf2_get_section_info.
241
c91c8c16
PA
2422011-05-24 Pedro Alves <pedro@codesourcery.com>
243
244 * solib-svr4.c (svr4_solib_create_inferior_hook): Skip setting
245 shared library event breakpoint if there's no execution.
246
77bc418a
TJB
2472011-05-24 Thiago Jung Bauermann <bauerman@br.ibm.com>
248
249 * breakpont.c (remove_hw_watchpoints): Remove unused function.
250 * breakpoint.h remove_hw_watchpoints(): Remove prototype.
251
c50491a7
TT
2522011-05-23 Tom Tromey <tromey@redhat.com>
253
254 * c-lang.c (evaluate_subexp_c): Use expect_type if it is not
255 NULL.
256
6d64e6d4
DE
2572011-05-23 Doug Evans <dje@google.com>
258
259 * python/lib/gdb/printing.py (register_pretty_printer): Add missing
260 entry for RuntimeError to doc string.
261
2067c8d4
JG
2622011-05-23 Jerome Guitton <guitton@adacore.com>
263
264 * sparc-tdep.c (sparc_skip_stack_check): Recognize a new instruction
265 sequence for probing loops.
266
b136cd05
PA
2672011-05-23 Pedro Alves <pedro@codesourcery.com>
268
269 * infrun.c (user_visible_resume_ptid): Fix typos in describing
270 comment.
271
22e74ef9
MK
2722011-05-21 Mark Kettenis <kettenis@gnu.org>
273
274 * sparc-nat.c (sparc_fetch_inferior_registers): Explicitly supply
275 zero as the value for %g0 in the register cache.
276 * sparc-tdep.c (sparc32_supply_gregset): Likewise.
277 * sparc64-tdep.c (sparc64_supply_gregset): Likewise.
278
842951eb
PA
2792011-05-20 Pedro Alves <pedro@codesourcery.com>
280
281 * infrun.c (proceed): Set previous_inferior_ptid here.
282 (init_wait_for_inferior): Initialize previous_inferior_ptid from
283 inferior_ptid, not null_ptid.
284 (wait_for_inferior): Don't initialize previous_inferior_ptid here.
285 (fetch_inferior_event): Nor here.
286
46cf51e6
PA
2872011-05-20 Pedro Alves <pedro@codesourcery.com>
288
289 * inf-loop.c (inferior_event_handler): Only output a message if
290 verbose.
291
29ef4c46
LM
2922011-05-20 Luis Machado <lgustavo@codesourcery.com>
293
294 * MAINTAINERS: Update my e-mail address.
295
f148b27e
PA
2962011-05-20 Pedro Alves <pedro@codesourcery.com>
297
298 * infrun.c (proceed): Switch the inferior event loop to
299 INF_EXEC_COMPLETE if the target refused to resume from a
300 vfork/fork.
301
09cee04b
PA
3022011-05-20 Pedro Alves <pedro@codesourcery.com>
303
304 * infcmd.c: Include "inf-loop.h".
305 (step_once): When stepping into an inline subroutine, pretend the
306 target has run. If the target can async, switch the inferior
307 event loop to INF_EXEC_COMPLETE.
308 * inferior.h (user_visible_resume_ptid): Declare.
309 * infrun.c (user_visible_resume_ptid): New function, factored out
310 from `resume'.
311 (resume): Use it.
312 * mi/mi-main.c (mi_execute_async_cli_command): Remove assertion
313 that the current thread is running. Merge async and sync
314 branches.
315
751b8ce1
PA
3162011-05-20 Pedro Alves <pedro@codesourcery.com>
317
318 * infcmd.c (step_1): Simplify synchronous case.
319
e93a69ed
PA
3202011-05-20 Pedro Alves <pedro@codesourcery.com>
321
322 * tracepoint.c: Include exceptions.h.
323 (TFILE_PID): Move higher in file.
324 (tfile_open): Delay pushing the tfile target until we're assured
325 the tfile header is present in the file. Wrap reading the initial
326 newline-terminated lines in TRY_CATCH. Pop the target if the
327 initial setup failed. Add the tfile's thread immediately
328 aftwards, before any non-essential setup. Don't skip
329 post_create_inferior if there are no traceframes present in the
330 file.
331 (tfile_close): Remove redundant check for null before xfree call.
332 (tfile_thread_alive): New function.
333 (init_tfile_ops): Register it as to_thread_alive callback.
334
6823e2b1
PA
3352011-05-20 Pedro Alves <pedro@codesourcery.com>
336
337 * tracepoint.c (tfile_open): Delete #if 0'd code.
338
b3c8eb43
JK
3392011-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
340
341 Fix -readnow for -gdwarf-4 unused type units.
342 * dwarf2read.c (struct signatured_type): Remove the field offset.
343 (create_signatured_type_table_from_index): Remove its initialization.
344 (create_debug_types_hash_table): Likewise. Initialize per_cu.offset
345 instead. Add a complaint call.
346 (process_psymtab_comp_unit): Change assignment to gdb_assert.
347 (process_type_comp_unit, lookup_die_type, dump_die_shallow)
348 (lookup_signatured_type_at_offset, read_signatured_type)
349 (write_one_signatured_type): Update the field for per_cu.
350
310afc76
TT
3512011-05-19 Tom Tromey <tromey@redhat.com>
352
353 * python/py-inferior.c (python_inferior_exit): Use
354 target_gdbarch.
355 (python_on_resume): Likewise.
356
cf6c5ffb
TT
3572011-05-19 Matt Rice <ratmice@gmail.com>
358
359 * breakpoint.c (bpstat_do_actions_1): Call prevent_dont_repeat.
360
fb80a3c5
HZ
3612011-05-19 Hui Zhu <teawater@gmail.com>
362
363 * tracepoint.c (tfile_trace_find): Return directly when num is -1.
364
3672b1be
HZ
3652011-05-19 Hui Zhu <teawater@gmail.com>
366
367 * xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.
368
ff355380
TT
3692011-05-18 Tom Tromey <tromey@redhat.com>
370
371 * dwarf2read.c (dwarf2_add_field): Constify.
372 * value.c (value_static_field): Constify.
373 * gdbtypes.h (struct main_type) <field.field_location.physname>:
374 Now const.
375 * ax-gdb.c (gen_static_field): Constify
376
ed731959
JK
3772011-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
378
379 * linux-nat.c (kill_callback): Use SIGKILL first.
380
967cff16
JB
3812011-05-18 Joel Brobecker <brobecker@adacore.com>
382
383 * ada-lang.c (print_it_exception): Avoid use of sprintf.
384
1d06ead6
TT
3852011-05-18 Tom Tromey <tromey@redhat.com>
386
387 * value.c (value_fn_field): Constify.
388 * symtab.c (gdb_mangle_name): Constify.
389 * stabsread.c (update_method_name_from_physname): Make 'physname'
390 argument const.
391 * p-typeprint.c (pascal_type_print_method_args): Make arguments
392 const. Use explicit fputc_filtered loop.
393 (pascal_type_print_base): Constify.
394 * p-lang.h (pascal_type_print_method_args): Update.
395 * linespec.c (add_matching_methods): Constify.
396 (add_constructors): Likewise.
397 * jv-typeprint.c (java_type_print_base): Constify.
398 * gdbtypes.h (struct cplus_struct_type)
399 <fn_fieldlist.fn_field.physname>: Now const.
400 * dwarf2read.c (compute_delayed_physnames): Constify.
401 (dwarf2_add_member_fn): Likewise.
402 * c-typeprint.c (c_type_print_base): Constify. Use cleanups.
403
0d9a9a5f
PA
4042011-05-18 Pedro Alves <pedro@codesourcery.com>
405
406 * infrun.c (resume): Mention which is the current thread, and its
407 current PC in debug output.
408 (prepare_to_proceed): Mention the thread switching in debug
409 output.
410
05386e9e
TT
4112011-05-18 Tom Tromey <tromey@redhat.com>
412
413 * linux-thread-db.c (try_thread_db_load_from_pdir_1): Fix absolute
414 path check. Use xmalloc and cleanups.
415 (try_thread_db_load_from_dir): Use xmalloc and cleanups.
416
ee86786c
TT
4172011-05-17 Tom Tromey <tromey@redhat.com>
418
419 * cp-valprint.c (cp_print_value_fields): Catch errors from
420 value_static_field.
421
9ff3b74f
TT
4222011-05-17 Tom Tromey <tromey@redhat.com>
423
424 * dwarf2read.c (dwarf2_get_die_type): Call
425 get_die_type_at_offset.
426 * dwarf2expr.c (dwarf_get_base_type): Handle NULL return from
427 get_base_type function.
428
cd3da28e
PA
4292011-05-17 Tomas Martinec <fyzmat@gmail.com>
430
431 * infrun.c (handle_inferior_event) <handling deferred step>: Clear
432 trap_expected.
433
fd20d931
DE
4342011-05-16 Doug Evans <dje@google.com>
435
436 * python/py-auto-load.c (source_section_scripts): Mention objfile
437 name in warning.
438
75fc9810
DE
4392011-05-15 Doug Evans <dje@google.com>
440
290351b8
DE
441 * linux-thread-db.c (try_thread_db_load_from_pdir_1): New function.
442 (try_thread_db_load_from_pdir): Call it. If unable to find
443 libthread_db in directory of libpthread, see if we're looking at
444 the separate-debug-info copy.
445
75fc9810
DE
446 * python/py-autoload.c (print_script): Print "Missing" instead of
447 "No" for missing scripts.
448 (info_auto_load_scripts): Tweak "Loaded" column to fit "Missing".
449
9f7bc587
DE
4502011-05-13 Doug Evans <dje@google.com>
451
452 * ui-file.c (stdio_file_write_async_safe): Add comment.
453
093cee7d
HZ
4542011-05-14 Hui Zhu <teawater@gmail.com>
455
456 * ui-file.c (stdio_file_write_async_safe): Add empty check for build.
457
dbaefcf7
DE
4582011-05-13 Doug Evans <dje@google.com>
459
98a5dd13
DE
460 Support $pdir and $sdir in libthread-db-search-path.
461 * NEWS: Mention $sdir,$pdir.
462 * gdb_thread_db.h (LIBTHREAD_DB_SEARCH_PATH): Add $sdir:$pdir.
463 * linux-thread-db.c (try_thread_db_load_from_pdir): New function.
464 (try_thread_db_load_from_sdir): New function.
465 (try_thread_db_load_from_dir): New function.
466 (thread_db_load_search): Handle $pdir, $sdir. Remove trying of
467 system directories if search of libthread-db-search-path fails,
468 that is now done via $sdir.
469 (has_libpthread): New function.
470 (thread_db_load): Remove search for libthread_db in directory of
471 libpthread, that is now done via $pdir.
472
dbaefcf7
DE
473 * NEWS: Mention "info auto-load-scripts".
474 * python/py-auto-load.c (struct auto_load_pspace_info): New member
475 script_not_found_warning_printed.
476 (init_loaded_scripts_info): Renamed from create_loaded_scripts_hash,
477 all callers updated. Initialize script_not_found_warning_printed.
478 (get_auto_load_pspace_data_for_loading): New function.
479 (maybe_add_script): New function.
480 (source_section_scripts): Simplify. Only print one warning regardless
481 of the number of auto-load scripts not found.
482 (clear_section_scripts): Clear script_not_found_warning_printed.
483 (auto_load_objfile_script): Record script in hash table.
484 (count_matching_scripts): New function.
485 (maybe_print_script): Renamed from maybe_print_section_script, all
486 callers updated. Rewrite to use ui_out_*.
487 (info_auto_load_scripts): Renamed from
488 maintenance_print_section_scripts, all callers updated.
489 (gdbpy_initialize_auto_load): "maintenance print section-scripts"
490 renamed as "info auto-load-scripts".
491
9930639c
TT
4922011-05-13 Tom Tromey <tromey@redhat.com>
493
494 * dwarf2expr.c (read_uleb128): Cast intermediate result.
495 (read_sleb128): Likewise.
496
06826322
TT
4972011-05-13 Tom Tromey <tromey@redhat.com>
498
499 * dwarf2loc.c (disassemble_dwarf_expression): Fix instruction
500 offset display.
501
01124a23
DE
5022011-05-13 Doug Evans <dje@google.com>
503
504 * linux-nat.c (debug_linux_nat_async): Delete.
505 Replace all references to use debug_linux_nat instead.
506 (show_debug_linux_nat_async): Delete.
507 (sigchld_handler): Call ui_file_write_async_safe instead of
508 fprintf_unfiltered.
509 (_initialize_linux_nat): Remove `set debug lin-lwp-async'.
510 * ui-file.c (struct ui_file): New member to_write_async_safe.
511 (null_file_write_async_safe): New function.
512 (ui_file_write_async_safe): New function.
513 (set_ui_file_write_async_safe): New function.
514 (ui_file_new): Initialize to_write_async_safe.
515 (stdio_file_write_async_safe): New function.
516 (struct stdio_file): New member fd.
517 (stdio_file_new): Initialize to_write_async_safe, fd.
bbfac39e
DE
518 (stdio_file_read, stdio_file_isatty): New stdio->fd instead of calling
519 fileno.
01124a23
DE
520 * ui-file.h (ui_file_write_async_safe_ftype): New typedef.
521 (set_ui_file_write_async_safe): Declare.
522 (ui_file_write_async_safe): Declare.
523
72fc29ff
TT
5242011-05-13 Tom Tromey <tromey@redhat.com>
525
526 * utils.c (do_value_free): New function.
527 (make_cleanup_value_free): Likewise.
528 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle value
529 freeing correctly.
530 (dwarf2_loc_desc_needs_frame): Call
531 make_cleanup_value_free_to_mark.
532 * dwarf2expr.h (struct dwarf_expr_context) <mark>: Remove field.
533 * dwarf2expr.c (free_dwarf_expr_context): Don't call
534 value_free_to_mark.
535 (new_dwarf_expr_context): Don't call value_mark.
536 * dwarf2-frame.c (execute_stack_op): Call
537 make_cleanup_value_free_to_mark.
538 * defs.h (make_cleanup_value_free): Declare.
539
028d0ed5
TJB
5402011-05-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
541
542 * mi/mi-main.c (mi_cmd_execute): Use cleanup from
543 prepare_execute_command.
544 * top.c (prepare_execute_command): Return cleanup.
545 (execute_command): Use cleanup from prepare_execute_command.
546 * top.h (prepare_execute_command): Change prototype to return
547 cleanup.
548 * defs.h (struct value): Add opaque declaration.
549 (make_cleanup_value_free_to_mark): Add prototype.
550 * utils.c (do_value_free_to_mark): New function.
551 (make_cleanup_value_free_to_mark): Likewise.
552
b087e0ed
TT
5532011-05-12 Tom Tromey <tromey@redhat.com>
554
555 * dwarf2expr.c (execute_stack_op) <DW_OP_shr>: Unconditionally
556 cast left-hand-side to unsigned.
557
8a9b8146
TT
5582011-05-12 Tom Tromey <tromey@redhat.com>
559
560 PR gdb/12617:
561 * value.h (value_from_contents): Declare.
562 * value.c (value_from_contents): New function.
563 * dwarf2read.c (dwarf_stack_op_name): Add new values.
564 (dwarf2_get_die_type): New function.
565 * dwarf2loc.c (dwarf_expr_get_base_type): New function.
566 (allocate_piece_closure): Acquire reference to values.
567 (read_pieced_value): Update for value-based expressions.
568 (write_pieced_value): Likewise.
569 (free_pieced_value_closure): Call value_free as needed.
570 (dwarf2_evaluate_loc_desc_full): Set get_base_type field.
571 Update for value-based expressions.
572 * dwarf2loc.h (dwarf2_get_die_type): Declare.
573 * dwarf2expr.h (struct dwarf_stack_value) <value>: Change type.
574 <get_base_type>: New field.
575 (struct dwarf_expr_piece) <v.value>: Change type.
576 <v.regno>: New field.
577 (struct dwarf_expr_context) <mark>: New field.
578 (dwarf_expr_piece, dwarf_expr_fetch): Update.
579 (dwarf_expr_pop, dwarf_expr_push): Remove.
580 (dwarf_expr_push_address): Declare.
581 * dwarf2expr.c (dwarf_arch_cookie): New global.
582 (struct dwarf_gdbarch_types): New.
583 (dwarf_gdbarch_types_init, dwarf_expr_address_type): New
584 functions.
585 (dwarf_expr_push): Change type of 'value' argument. Update. Now
586 static.
587 (dwarf_expr_push_address): New function.
588 (dwarf_expr_pop): Now static.
589 (dwarf_expr_fetch): Change return type.
590 (dwarf_require_integral): New function.
591 (dwarf_expr_fetch): Simplify.
592 (add_piece): Update.
593 (base_types_equal_p, dwarf_get_base_type, get_unsigned_type): New
594 functions.
595 (execute_stack_op) <sign_ext>: Remove.
596 Use values for DWARF stack.
597 <DW_OP_GNU_const_type, DW_OP_GNU_deref_type,
598 DW_OP_GNU_regval_type, DW_OP_GNU_convert, DW_OP_GNU_reinterpret>:
599 New cases.
600 (_initialize_dwarf2expr): New function.
601 (add_piece): Update.
602 (new_dwarf_expr_context): Set new field.
603 (free_dwarf_expr_context): Call value_free_to_mark.
604 * dwarf2-frame.c (no_base_type): New function.
605 (execute_stack_op): Set get_base_type field. Update.
606
e8d28ef4
TT
6072011-05-12 Tom Tromey <tromey@redhat.com>
608
609 * dwarf2read.c (read_common_block): Fix formatting.
610
d248b706
KY
6112011-05-12 Kwok Cheung Yeung <kcy@codesourcery.com>
612
613 * breakpoint.c (disable_breakpoint): Disable all locations
614 associated with a tracepoint on target if a trace experiment is
615 running.
616 (disable_command): Disable a specific tracepoint location on target if
617 a trace experiment is running.
618 (do_enable_breakpoint): Enable all locations associated with a
619 tracepoint on target if a trace experiment is running.
620 (enable_command) Enable a specific tracepoint location on target if a
621 trace experiment is running.
622 * target.c (update_current_target): Add INHERIT and de_fault clauses for
623 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
624 to_disable_tracepoint.
625 * target.h: Add declaration of struct bp_location.
626 (struct target_ops): Add new functions
627 to_supports_enable_disable_tracepoint, to_enable_tracepoint and
628 to_disable_tracepoint to target operations.
629 (target_supports_enable_disable_tracepoint): New macro.
630 (target_enable_tracepoint): New macro.
631 (target_disable_tracepoint): New macro.
632 * remote.c (struct remote_state): Add new field.
633 (remote_enable_disable_tracepoint_feature): New.
634 (remote_protocol_features): Add new entry.
635 (remote_supports_enable_disable_tracepoint): New.
636 (remote_enable_tracepoint): New.
637 (remote_disable_tracepoint): New.
638 (init_remote_ops): Add remote_enable_tracepoint,
639 remote_disable_tracepoint and remote_supports_enable_disable_tracepoint
640 to remote operations.
641 * tracepoint.c (start_tracing): Allow tracing to start without any
642 tracepoints enabled with just a warning if they can be re-enabled
643 later.
644 * NEWS: Add news item for the new behaviour of the enable and disable
645 GDB commands when applied to tracepoints.
646 Add news items for the new remote packets QTEnable and QTDisable.
647
cc88a640
JK
6482011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
649
650 * config.in: Regenerate.
651 * configure: Regenerate.
652 * configure.ac <--with-system-readline> (for readline_echoing_p):
653 Remove the test.
654 * tui/tui-io.c (tui_old_readline_echoing_p): Rename to ...
655 (tui_old_rl_echoing_p): ... here.
656 (tui_setup_io): Rename extern declaration readline_echoing_p to
657 _rl_echoing_p. Adjust assignments for the both renames.
658
1f84b619
TJB
6592011-05-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
660
661 * symtab.c (lookup_symtab): Run cleanup before returning.
662
74ac6d43
TT
6632011-05-11 Tom Tromey <tromey@redhat.com>
664
665 * dwarf2read.c (handle_data_member_location): New function.
666 (dwarf2_add_field): Use it.
667 (read_common_block): Likewise.
668
5488dafb
JK
6692011-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
670
671 Make addrs->SECTINDEX always defined.
672 * symfile.c (relative_addr_info_to_section_offsets): Check for
673 SECTINDEX -1, not for zero ADDR.
674 (addrs_section_compar): Remove checking for invalid SECTINDEX.
675 (addr_info_make_relative): Set SECTINDEX to -1 for unmatched entries.
676 * symfile.h (struct section_addr_info) <sectindex>: Update the comment
677 on its validity.
678
84e578fb
DE
6792011-05-10 Doug Evans <dje@google.com>
680
2471d008
DE
681 * linux-thread-db.c: Whitespace cleanup.
682 (try_thread_db_load_1): Fix comment.
683
84e578fb
DE
684 * linux-thread-db.c (set_libthread_db_search_path): New function.
685 (_initialize_thread_db): Add setter for libthread-db-search-path.
686
673c2bbe
DE
6872011-05-09 Doug Evans <dje@google.com>
688
478aac75
DE
689 * NEWS: Mention --with-iconv-bin.
690 * configure.ac: New option --with-iconv-bin.
691 * configure: Regenerate.
692 * config.in: Regenerate.
693 * defs.h (relocate_gdb_directory): Declare.
694 * main.c (relocate_gdb_directory): Renamed from relocate_directory,
695 removed progname parameter, and exported. All callers updated.
696 * charset.c (find_charset_names): Use --with-iconv-bin if specified.
697
673c2bbe
DE
698 * linux-nat.c (lin_lwp_attach_lwp): For !WIPSTOPPED case,
699 adding missing call to restore_child_signals_mask.
700
e4c8541f
PA
7012011-05-09 Pedro Alves <pedro@codesourcery.com>
702
703 * inferior.h (wait_for_inferior): Remove `thread_exec_as_sigtrap'
704 parameter.
705 * infrun.c (proceed, start_remote): Adjust.
706 (wait_for_inferior): Remove `thread_exec_as_sigtrap' parameter,
707 and adjust to not handle it.
708 * solib-irix.c (irix_solib_create_inferior_hook): Adjust.
709 * solib-osf.c (osf_solib_create_inferior_hook): Adjust.
710 * solib-sunos.c (sunos_solib_create_inferior_hook): Adjust.
711 * solib-svr4.c (svr4_solib_create_inferior_hook): Adjust.
712 * windows-nat.c (do_initial_windows_stuff): Adjust.
713 * infcmd.c (attach_command): Adjust.
714 (notice_new_inferior): Adjust.
715
a536c6d7
UW
7162011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
717
718 * ppc-linux-tdep.c (ppu2spu_prev_register): Handle pseudo registers.
719 (ppu2spu_unwind_register): Mark pseudo registers unavailable.
720 * spu-tdep.c (op_selb): Use correct value.
721
7845b013
UW
7222011-05-06 Ulrich Weigand <uweigand@de.ibm.com>
723
724 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Add NULL
725 "parent" parameter to symbol_file_add_from_bfd call.
726
9c06b0b4
TJB
7272011-05-06 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
728 Thiago Jung Bauermann <bauerman@br.ibm.com>
729
730 Implement support for PowerPC BookE masked watchpoints.
731 * NEWS: Mention masked watchpoint support. Create "Changed commands"
732 section.
733 * breakpoint.h (struct breakpoint_ops) <works_in_software_mode>: New
734 method. Initialize to NULL in all existing breakpoint_ops instances.
735 (struct breakpoint) <hw_wp_mask>: New field.
736 * breakpoint.c (is_masked_watchpoint): Add prototype.
737 (update_watchpoint): Don't set b->val for masked watchpoints. Call
738 breakpoint's breakpoint_ops.works_in_software_mode if available.
739 (watchpoints_triggered): Handle the case of a hardware masked
740 watchpoint trigger.
741 (watchpoint_check): Likewise.
742 (works_in_software_mode_watchpoint): New function.
743 (insert_masked_watchpoint, remove_masked_watchpoint)
744 (resources_needed_masked_watchpoint)
745 (works_in_software_mode_masked_watchpoint, print_it_masked_watchpoint)
746 (print_one_detail_masked_watchpoint, print_mention_masked_watchpoint)
747 (print_recreate_masked_watchpoint, is_masked_watchpoint): New
748 functions.
749 (masked_watchpoint_breakpoint_ops): New structure.
750 (watch_command_1): Check for the existence of the `mask' parameter.
751 Set b->ops according to the type of hardware watchpoint being created.
752 * ppc-linux-nat.c (ppc_linux_insert_mask_watchpoint)
753 (ppc_linux_remove_mask_watchpoint)
754 (ppc_linux_masked_watch_num_registers): New functions.
755 (_initialize_ppc_linux_nat): Initialize to_insert_mask_watchpoint,
756 to_remove_mask_watchpoint and to_masked_watch_num_registers.
757 * target.c (update_current_target): Mention to_insert_mask_watchpoint,
758 to_remove_mask_watchpoint, and to_masked_watch_num_registers.
759 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
760 (target_masked_watch_num_registers): New functions.
761 * target.h (struct target_ops) <to_insert_mask_watchpoint>,
762 <to_remove_mask_watchpoint>, <to_masked_watch_num_registers>: New
763 methods.
764 (target_insert_mask_watchpoint, target_remove_mask_watchpoint)
765 (target_masked_watch_num_registers): Add prototypes.
766
8be455d7
JK
7672011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
768
769 PR 12573
770 * dwarf2read.c (struct dwarf2_cu): New field has_loclist.
771 (producer_is_gcc_ge_4_0): New function.
772 (process_full_comp_unit): Set also symtab->locations_valid. Move the
773 symtab->language code.
774 (var_decode_location): Set cu->has_loclist.
775 * symtab.c (skip_prologue_sal): New variables saved_pc, force_skip and
776 skip. Intialize force_skip from locations_valid. Move the prologue
777 skipping code into two passes.
778 * symtab.h (struct symtab): Make the primary field a bitfield. New
779 field locations_valid.
780
d8228535
JK
7812011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
782
783 * c-exp.y (qualified_name): Call destructor_name_p with $1.type.
784 (classify_inner_name): Call cp_lookup_nested_type with
785 yylval.tsym.type.
786 * cp-namespace.c (cp_lookup_nested_type): New variable
787 saved_parent_type. Call CHECK_TYPEDEF for parent_type. Call
788 type_name_no_tag_or_error with saved_parent_type.
789 * dwarf2read.c (load_partial_dies): Read in any children of
790 DW_TAG_typedef with complaint in such case.
791 * gdbtypes.c (type_name_no_tag_or_error): New function.
792 * gdbtypes.h (type_name_no_tag_or_error): New prototype.
793 * valops.c (destructor_name_p): New comment for parameter type. Remove
794 type const. Make dname and cp const. Call type_name_no_tag_or_error.
795 * value.h (destructor_name_p): Remove type const.
796
1976171a
JK
7972011-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
798
799 * symtab.c (compare_symbol_name): New function.
800 (completion_list_add_name, expand_partial_symbol_name): Call it,
801 remove the variable ncmp.
802 (default_make_symbol_completion_list_break_on): Reduce SYM_TEXT_LEN,
803 gdb_assert it.
804
a9634178
TJB
8052011-05-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
806
807 Demote to sw watchpoint only in update_watchpoint.
808 * breakpoint.c (update_watchpoint): Change between software and
809 hardware watchpoint for all kinds of watchpoints, not just
810 read/write ones. Determine b->exact value here instead of
811 in watch_command_1. Error out if there are not enough resources
812 for a read or access hardware watchpoint.
813 (watch_command_1): Remove logic of checking whether there are
814 enough resources available, since update_watchpoint will do that
815 work now. Don't set b->exact here. Catch exceptions thrown by
816 update_watchpoint and delete the watchpoint.
817 (can_use_hardware_watchpoint): Remove exact_watchpoints argument.
818 Use target_exact_watchpoints instead.
819 (delete_breakpoint): Notify observers only if deleted watchpoint
820 has a breakpoint number assigned to it.
821
4c67c798
JJ
8222011-05-05 Janis Johnson <janisjo@codesourcery.com>
823
824 * MAINTAINERS: Add myself as a write-after-approval maintainer.
825
a3fcb948
JG
8262011-05-05 Jerome Guitton <guitton@adacore.com>
827
828 * i386-tdep.c (i386_in_stack_tramp_p, i386_stack_tramp_frame_sniffer):
829 New functions.
830 (i386_stack_tramp_frame_unwind): New static global.
831 (i386_match_pattern): New function, extracted from i386_match_insn.
832 (i386_match_insn): Use i386_match_pattern.
833 (i386_match_insn_block): New function.
834 (i386_tramp_chain_in_reg_insns)
835 (i386_tramp_chain_on_stack_insns): New static variables.
836 (i386_gdbarch_init): Add i386_stack_tramp_frame_unwind to list
837 of unwinders.
838
4d393d60
JM
8392011-05-04 Joseph Myers <joseph@codesourcery.com>
840
841 * configure.host (xscale*): Don't handle target.
842 * configure.tgt (thumb*-*-* | strongarm*-*-* | xscale-*-*): Don't
843 handle targets.
844
f70bd40b
YQ
8452011-05-04 Yao Qi <yao@codesourcery.com>
846
847 * gdb_wait.h: remove WAITTYPE and WCOREDUMP.
848
dd3295ee
JB
8492011-05-03 Joel Brobecker <brobecker@adacore.com>
850
851 Revert:
852 | 2011-03-07 Michael Snyder <msnyder@vmware.com>
853 | * elfread.c (elf_symtab_read): Stop memory leak.
854
90375a0e
PM
8552011-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
856
857 * nto-tdep.c (nto_target): Replace deprecated call to
858 cygwin_conv_to_posix_path functions by cygwin_conv_path calls.
859
d07205c2
JK
8602011-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
861
862 Fix false GCC warning.
863 * breakpoint.c (do_enable_breakpoint): Initialize orig_enable_state.
864
1e718ff1
TJB
8652011-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
866
867 * breakpoint.c (update_watchpoint): Move code to change
868 the enable state of breakpoint from here ...
869 (do_enable_breakpoint): ... to here.
870
35bef4fd
TT
8712011-04-26 Andrew Gontarek <andrewg@cray.com>
872
78290264
PP
873 * valprint.c (val_print_array_elements): Fixed poor performance
874 of printing very large arrays with repeat_count_threshold set
875 to unlimited. New comment.
35bef4fd 876
38a714bb
TT
8772011-04-29 Tom Tromey <tromey@redhat.com>
878
879 * mi/mi-parse.c (mi_parse): Remove incorrect sizeof.
880 (mi_parse): Likewise.
881 * breakpoint.c (break_range_command): Use sizeof char*, not
882 char**.
883 (create_breakpoint): Likewise.
884 (parse_breakpoint_sals): Likewise.
885
eb73ad13
PA
8862011-04-29 Pedro Alves <pedro@codesourcery.com>
887
888 * linux-nat.c (linux_child_remove_fork_catchpoint)
889 (linux_child_remove_vfork_catchpoint)
890 (linux_child_remove_exec_catchpoint): New functions.
891 (linux_target_install_ops): Install them.
892
d65aec65
PM
8932011-04-29 Phil Muldoon <pmuldoon@redhat.com>
894
895 PR mi/12531
896
897 * varobj.c (install_default_visualizer): Do not install a
898 visualizer if the varobj is CPLUS_FAKE_CHILD.
899 (construct_visualizer): Likewise.
900
165195f4
JK
9012011-04-28 Jan Kratochvil <jan.kratochvil@redhat.com>
902
903 * symtab.c (expand_partial_symbol_name): New variable NCMP. Support
904 case insensitive comparison.
905
30852783
UW
9062011-04-28 Ulrich Weigand <ulrich.weigand@linaro.org>
907
908 * infrun.c (proceed): Revert previous change.
909 (resume): Instead, handle the case of signal delivery while stepping
910 off a breakpoint location here, and only if software single-stepping
911 is used. Handle nested signals.
912
7ff120b4
YQ
9132011-04-28 Yao Qi <yao@codesourcery.com>
914
915 * arm-tdep.c (copy_unmodified): Rename to ...
916 (arm_copy_unmodified): .. this. New.
917 (copy_preload): Move common part to ...
918 (install_preload): .. this. New.
919 (arm_copy_preload): New.
920 (copy_preload_reg): Move common part to ...
921 (install_preload_reg): ... this. New.
922 (arm_copy_preload_reg): New.
923 (copy_b_bl_blx): Move common part to ...
924 (install_b_bl_blx): .. this. New.
925 (arm_copy_b_bl_blx): New.
926 (copy_bx_blx_reg): Move common part to ...
927 (install_bx_blx_reg): ... this. New.
928 (arm_copy_bx_blx_reg): New.
929 (copy_alu_reg): Move common part to ...
930 (install_alu_reg): ... this. New.
931 (arm_copy_alu_reg): New.
932 (copy_alu_shifted_reg): Move common part to ...
933 (install_alu_shifted_reg): ... this. New.
934 (copy_ldr_str_ldrb_strb): Move common part to ...
935 (install_ldr_str_ldrb_strb): ... this. New.
936 (arm_copy_ldr_str_ldrb_strb): New.
937 (copy_copro_load_store): Move some common part to ...
938 (install_copy_copro_load_store): ... this. New.
939 (arm_copy_copro_load_store): New.
940 (copy_svc): Delete.
941 (arm_copy_svc): Renamed from copy_svc.
942 (copy_undef): Delete.
943 (arm_copy_undef): Renamed from copy_undef.
944 (decode_ext_reg_ld_st): Delete.
945 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
946 (decode_svc_copro): Delete.
947 (arm_decode_svc_copro): Renamed from decode_svc_copro.
948 (copy_copro_load_store, copy_alu_imm): update callers.
949 (copy_extra_ld_st, copy_block_xfer): Likewise.
950 (decode_misc_memhint_neon, decode_unconditional): Likewise.
951 (decode_miscellaneous, decode_dp_misc): Likewise.
952 (decode_ld_st_word_ubyte, decode_media): Likewise.
953 (decode_b_bl_ldmstm, decode_ext_reg_ld_st): Likewise.
954 (decode_svc_copro, decode_misc_memhint_neon): Likewise.
955 (decode_unconditional, decode_miscellaneous): Likewise.
956 (decode_media, decode_b_bl_ldmstm): Likewise.
957 (arm_process_displaced_insn): Likewise..
958 (decode_misc_memhint_neon): Delete.
959 (arm_decode_misc_memhint_neon): Renamed from decode_misc_memhint_neon.
960 (decode_miscellaneous): Delete.
961 (arm_decode_miscellaneous): Renamed from decode_miscellaneous.
962 (decode_dp_misc): Delete.
963 (arm_decode_dp_misc): Renamed from decode_dp_misc.
964 (decode_ld_st_word_ubyte): Delete.
965 (arm_decode_ld_st_word_ubyte): Renamed from decode_ld_st_word_ubyte.
966 (decode_media): Delete.
967 (arm_decode_media): Renamed from decode_media.
968 (decode_b_bl_ldmstm): Delete.
969 (arm_decode_b_bl_ldmstm): Renamed from decode_b_bl_ldmstm.
970 (decode_ext_reg_ld_st): Delete.
971 (arm_decode_ext_reg_ld_st): Renamed from decode_ext_reg_ld_st.
972 (decode_unconditional): Delete.
973 (arm_decode_unconditional): Renamed from decode_unconditional.
974
559a7a62
JK
9752011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
976
977 Case insensitive lookups implementation.
978 * dwarf2read.c: Include ctype.h.
979 (struct mapped_index): New field version.
980 (mapped_index_string_hash): New parameter index_version. New comment
981 for it. Call tolower appropriately.
982 (find_slot_in_mapped_hash): New variable cmp, initialize it, use it.
983 Choose the right index version for mapped_index_string_hash.
984 (dwarf2_read_index): Support also the index version 5. Initialize the
985 new struct mapped_index field version.
986 (hash_strtab_entry): Pass INT_MAX for the new parameter, explain why.
987 (find_slot): Explain the version needs. Pass INT_MAX for the new
988 parameter.
989 (write_psymtabs_to_index): Produce version 5.
990 * minsyms.c (lookup_minimal_symbol): New variable cmp, initialize it,
991 use it. New comment for SYMBOL_MATCHES_SEARCH_NAME.
992 * psymtab.c (lookup_partial_symbol): Find the
993 SYMBOL_MATCHES_SEARCH_NAME start of the found block of matching
994 entries.
995 * symtab.c (lookup_symbol_in_language): Remove the case_sensitive_off
996 NAME lowercasing.
997 (search_symbols): Pass REG_ICASE to regcomp for case_sensitive_off.
998 (completion_list_add_name): New variable ncmp, initialize it, use it.
999 * symtab.h (SYMBOL_HASH_NEXT): Always call tolower.
1000 * utils.c (strcmp_iw): Support case_sensitive_off.
1001 (strcmp_iw_ordered): Sort in a way compatible with case_sensitive_off.
1002 New function comment part. New variables saved_string1,
1003 saved_string2 and case_pass. Add a proper second pass.
1004
681bf369
JK
10052011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1006
1007 Replace re_comp/re_exec by regcomp/regexec.
1008 * symtab.c (struct search_symbols_data): New fields preg, preg_p.
1009 (search_symbols_name_matches): Use them, use regexec.
1010 (search_symbols): New variable retval_chain, adjust the use of
1011 old_chain against it. Replace re_comp by regcomp. Use the new struct
1012 search_symbols_data fields, use regexec instead of re_exec.
1013
b11b1f88
JK
10142011-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1015
1016 Format the code for the next patch.
1017 * dwarf2read.c (struct mapped_index): Include delimiting newlines.
1018 * utils.c (strcmp_iw_ordered): Reformat the code for the next patch.
1019 New variables c1 and c2.
1020
2484c66b
UW
10212011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1022
1023 * infrun.c (proceed): Do not single-step into signal delivery
1024 when stepping off a breakpoint location.
1025 (insert_step_resume_breakpoint_at_frame): Move prototype earlier.
1026 (insert_step_resume_breakpoint_at_caller): Likewise.
1027 (insert_step_resume_breakpoint_at_sal): Likewise.
1028 (insert_longjmp_resume_breakpoint): Likewise.
1029
47423772
YQ
10302011-04-27 Yao Qi <yao@codesourcery.com>
1031
1032 * common/linux-ptrace.h: Remove include <sys/wait.h>.
1033
13bdd2e7
JB
10342011-04-27 Joel Brobecker <brobecker@adacore.com>
1035
1036 * procfs.c (procfs_pass_signals): Fix advance declaration.
1037
2455069d
UW
10382011-04-27 Ulrich Weigand <ulrich.weigand@linaro.org>
1039
1040 * target.h (struct target_ops): Remove to_notice_signals;
1041 add to_pass_signals.
1042 (target_notice_signals): Remove.
1043 (target_pass_signals): Add prototype.
1044 * target.c (update_current_target): Remove to_notice_signals;
1045 mention to_pass_signals.
1046 (target_pass_signals): New function.
1047 (debug_to_notice_signals): Remove.
1048 (setup_target_debug): Do not install debug_to_notice_signals.
1049
1050 * infrun.c (signal_pass): New global.
1051 (resume): Call target_pass_signals.
1052 (handle_inferior_event): Report all signals while stepping over
1053 non-steppable watchpoint. Reset trap_expected to ensure breakpoints
1054 are re-inserted when stepping over a signal handler.
1055 (signal_cache_update): New function.
1056 (signal_stop_update): Call it.
1057 (signal_print_update): Likewise.
1058 (signal_pass_update): Likewise.
1059 (handle_command): Call signal_cache_update and target_pass_signals
1060 instead of target_notice_signals.
1061 (_initialize_infrun): Initialize signal_pass.
1062
1063 * linux-nat.c (pass_mask): New global.
1064 (linux_nat_pass_signals): New function.
1065 (linux_nat_create_inferior): Report all signals initially.
1066 (linux_nat_attach): Likewise.
1067 (linux_nat_resume): Use pass_mask to decide whether to directly
1068 handle an inferior signal.
1069 (linux_nat_wait_1): Likewise.
1070 (linux_nat_add_target): Install to_pass_signals callback.
1071
1072 * nto-procfs.c (notice_signals): Remove.
1073 (procfs_resume): Do not call notice_signals.
1074 (procfs_notice_signals): Remove.
1075 (procfs_pass_signals): New function.
1076 (init_procfs_ops): Install to_pass_signals callback instead of
1077 to_notice_signals callback.
1078 (_initialize_procfs): Report all signals initially.
1079
1080 * procfs.c (procfs_notice_signals): Remove.
1081 (procfs_pass_signals): New function.
1082 (procfs_target): Install to_pass_signals callback instead of
1083 to_notice_signals callback.
1084 (register_gdb_signals): Remove.
1085 (procfs_debug_inferior): Report all signals initially.
1086 (procfs_init_inferior): Remove redundant register_gdb_signals call.
1087
1088 * remote.c (remote_pass_signals): Add numsigs and pass_signals
1089 parameters; use them instead of calling signal_..._state routines.
1090 (remote_notice_signals): Remove.
1091 (remote_start_remote): Report all signals initially.
1092 (remote_resume): Do not call remote_pass_signals.
1093 (_initialize_remote): Install to_pass_signals callback instead of
1094 to_notice_signals callback.
1095
46c6471b
PA
10962011-04-27 Pedro Alves <pedro@codesourcery.com>
1097
1098 * breakpoint.c (user_settable_breakpoint): Delete.
1099 (user_breakpoint_p): Remove check on user_settable_breakpoint.
1100 (delete_command): Check user_breakpoint_p instead of looking at
1101 the breakpoint's type.
1102 (disable_command): Ditto.
1103 (enable_command): Ditto.
1104 (delete_trace_command): Use user_breakpoint_p instead of looking
1105 at the breakpoint number directly. When checking if there are
1106 user visible tracepoints, in order to know whether to ask the user
1107 for confirmation, check whether the breakpoint is actually a
1108 tracepoint.
1109
f6d90398
VP
11102011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1111
1112 * python/py-breakpoint.c (gdbpy_breakpoint_created): Fix
1113 compilation.
1114
8d3788bd
VP
11152011-04-27 Vladimir Prus <vladimir@codesourcery.com>
1116
1117 MI breakpoint notifications.
1118
f33edef8
PP
1119 * annotate.c (breakpoint_changed): Adjust parameter type.
1120 * breakpoint.c (set_breakpoint_condition): Adjust to change
1121 in breakpoint_modified type.
1122 (breakpoint_set_commands): Likewise.
1123 (do_map_commands_command): Likewise.
1124 (bpstat_check_breakpoint_conditions): Notify that breakpoint has
1125 changed after bumping hit count.
1126 (bpstat_stop_status): Likewise.
1127 (print_one_breakpoint_location): Don't wrap in tuple here.
1128 (print_one_breakpoint): Always print individual locations.
1129 For locations, use unnamed tuple.
1130 (disable_breakpoints_in_unloaded_shlib): Notify that breakpoint
1131 has changed.
1132 (create_catchpoint, create_syscall_event_catchpoint): Call
1133 breakpoint_created obsever.
1134 (mention): Don't call breakpoint_created observer.
1135 (create_breakpoint_sal): Call breakpoint_created observer.
1136 (create_breakpoint, watch_command_1): Likewise.
1137 (create_ada_exception_breakpoint): Likewise.
1138 (delete_breakpoint): Call breakpoint_deleted breakpoint.
1139 (locations_are_equal): New.
1140 (update_breakpoint_locations): If locations were changed, notify.
1141 (set_ignore_count, disable_breakpoint, do_enable_breakpoint):
1142 Call breakpoint_modified observer.
1143
1144 * mi/mi-cmd-break.c (breakpoint_notify): Adjust.
1145 (mi_cmd_break_insert): Don't set observers for modify and delete.
1146 * mi/mi-interp.c (mi_suppress_breakpoint_notifications): New.
1147 (mi_breakpoint_created, mi_breakpoint_deleted)
1148 (mi_breakpoint_modified): New.
1149 (mi_interpreter_init): Hook the above.
1150 * mi/mi-main.c (mi_cmd_execute): Disable breakpoint notifications
1151 while -break-* commands are executing.
1152 * mi/mi-main.h (mi_suppress_breakpoint_notifications): New.
1153 * mi/mi-out.c (struct ui_out_data): New field original_buffer.
1154 (mi_redirect): New.
1155 (mi_ui_out_impl): Hook in mi_redirect.
1156 (mi_field_skip): True to the name, skip the field, don't output
1157 a field with an empty value.
1158
1159 * python/py-breakpoint.c (gdbpy_breakpoint_created)
1160 (gdbpy_breakpoint_deleted): Adjust.
1161 * tui/tui-hooks.c (tui_event_create_breakpoint)
1162 (tui_event_delete_breakpoint, tui_event_modify_breakpoint): Adjust.
8d3788bd 1163
a8f42b45
UW
11642011-04-26 Aleksandar Ristovski <aristovski@qnx.com>
1165
1166 * nto-procfs.c (procfs_insert_hw_watchpoint): Fix prototype.
1167 (procfs_remove_hw_watchpoint): Likewise.
1168
57e12211
TT
11692011-04-26 Michael Walle <michael@walle.cc>
1170
1171 * remote.c (remote_start_remote): Ack packet after sending the
1172 interrupt sequence.
1173
af96c192
YQ
11742011-04-26 Yao Qi <yao@codesourcery.com>
1175
f33edef8
PP
1176 * linux-nat.c: Move common macros to ...
1177 Include linux-ptrace.h.
1178 * common/linux-ptrace.h: ... here. New.
af96c192 1179
3e03848b
JK
11802011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1181
1182 * elfread.c (elf_symfile_read): Protect dwarf2_initialize_objfile by
1183 !objfile_has_partial_symbols. New comment.
1184 * objfiles.c (objfile_has_partial_symbols): Call HAS_SYMBOLS if
1185 SYM_READ_PSYMBOLS is not present. Extend the comment.
1186 * symfile.h (struct sym_fns): Extend the sym_read_psymbols comment.
1187
1ae0d051
JK
11882011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1189
1190 * defs.h (ENUM_BITFIELD): Remove.
1191
03f2bd59
JK
11922011-04-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1193 Eli Zaretskii <eliz@gnu.org>
1194
1195 * NEWS: Document the new gdbserver --once option.
1196
4161fbb0
JZ
11972011-04-21 Jie Zhang <jzhang918@gmail.com>
1198
1199 * MAINTAINERS: Update my email address.
1200
bcb28afc
PM
12012011-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
1202
1203 * gdb_wchar.h (USE_INTERMEDIATE_ENCODING_FUNCTION): New macro.
1204 (INTERMEDIATE_ENCODING): Change value to intermediate_encoding
1205 function call if __STDC_ISO_10646__ macro is defined.
1206 (intermediate_encoding): New prototype.
1207 * charset.c (your_gdb_wchar_t_is_bogus): New extern test variable
1208 to generate compile time error for unsupported gdb_wchar_t size.
1209 (ENDIAN_SUFFIX): New macro.
1210 (intermediate_encoding): New function.
1211
7b08b9eb
JK
12122011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1213
1214 * ada-lang.c (struct add_partial_datum): Update the comment for
1215 expand_partial_symbol_name.
1216 (ada_add_partial_symbol_completions): Rename to ...
1217 (ada_expand_partial_symbol_name): ... here, change return type, update
1218 function comment, call symbol_completion_match instead of
1219 symbol_completion_add.
1220 (ada_make_symbol_completion_list): Use now expand_partial_symbol_names
1221 and ada_expand_partial_symbol_name.
1222 * dwarf2read.c (dw2_expand_symtabs_matching): Support NULL
1223 FILE_MATCHER.
1224 (dw2_map_symbol_names): Remove.
1225 (dwarf2_gdb_index_functions): Unlist dw2_map_symbol_names.
1226 * psymtab.c (map_symbol_names_psymtab): Remove.
1227 (expand_symtabs_matching_via_partial): Support NULL FILE_MATCHER.
1228 Support KIND == ALL_DOMAIN. Exchange the NAME_MATCHER and KIND check
1229 order.
1230 (psym_functions): Unlist map_symbol_names_psymtab.
1231 (map_partial_symbol_names): Rename to ...
1232 (expand_partial_symbol_names): ... here, change the FUN type, call
1233 expand_symtabs_matching with ALL_DOMAIN and NULL FILE_MATCHER now.
1234 * psymtab.h (map_partial_symbol_names): Rename to ...
1235 (expand_partial_symbol_names): ... here, change the FUN type.
1236 * symfile.h (struct quick_symbol_functions): Update the description of
1237 expand_symtabs_matching. Remove map_symbol_names.
1238 * symtab.c (search_symbols): Add ALL_DOMAIN to the function comment.
1239 (struct add_name_data): Update the comment for
1240 expand_partial_symbol_name.
1241 (add_partial_symbol_name): Rename to ...
1242 (expand_partial_symbol_name): ... here. Replace
1243 completion_list_add_name call by strncmp.
1244 (default_make_symbol_completion_list_break_on): Use now
1245 expand_partial_symbol_names and expand_partial_symbol_name.
1246 * symtab.h (enum search_domain): New element ALL_DOMAIN.
1247
90476074
TT
12482011-04-20 Tom Tromey <tromey@redhat.com>
1249
1250 * dwarf2read.c (save_gdb_index_command): Replace format
1251 documentation with a pointer to the manual.
1252
c21236dc
PA
12532011-04-20 Pedro Alves <pedro@codesourcery.com>
1254
1255 * regcache.c: Include remote.h.
1256 (enum regcache_dump_what) <regcache_dump_remote>: New enum value.
1257 (regcache_dump): Handle regcache_dump_remote.
1258 (maintenance_print_remote_registers): New function.
1259 (_initialize_regcache): Install "maint print remote-registers"
1260 command.
1261 * remote.c (map_regcache_remote_table): New function, factored out
1262 from ...
1263 (init_remote_state): ... here.
1264 (remote_register_number_and_offset): New.
1265 * remote.h (remote_register_number_and_offset): Declare.
1266
b78974c3
PA
12672011-04-20 Pedro Alves <pedro@codesourcery.com>
1268
1269 * regcache.c (get_thread_arch_regcache): If creating a regcache for
1270 null_ptid, assume and allow a NULL address space, instead of
1271 asking the target for the ptid's address space.
1272 * infrun.c (ptid_is_pid): Remove assertion.
1273
7a9dd1b2
TT
12742011-04-19 Tom Tromey <tromey@redhat.com>
1275
1276 * windows-tdep.c (windows_xfer_shared_library):
1277 * windows-nat.c (get_module_name, windows_make_so):
1278 * v850-tdep.c (v850_handle_pushm):
1279 * utils.c (null_cleanup, gdb_realpath):
1280 * ui-out.c (get_next_header):
1281 * tracepoint.c (clear_traceframe_info):
1282 * symtab.c (lookup_symtab):
1283 * serial.h (struct serial_ops):
1284 * mipsread.c (read_alphacoff_dynamic_symtab):
1285 * infcmd.c (print_return_value):
1286 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address):
1287 * f-exp.y (parse_number):
1288 * exceptions.c (catch_exceptions):
1289 * dummy-frame.c (dummy_frame_this_id):
1290 * defs.h (struct cleanup):
1291 * breakpoint.c (disable_breakpoints_in_unloaded_shlib):
1292 * arm-tdep.c (arm_push_dummy_call):
1293 * amd64-tdep.h (amd64_collect_xsave):
1294 * amd64-tdep.c (amd64_collect_xsave):
1295 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache):
1296 * README (typing): Remove duplicate words.
1297 * cli/cli-decode.c (lookup_cmd_composition): Add comma.
1298 * infrun.c (siginfo_value_read): Fix typo.
1299 * solib-frv.c (frv_fdpic_find_global_pointer): Likewise.
1300 * top.c (source_line_number): Add comma.
1301
9941e0c5
MK
13022011-04-19 Marc Khouzam <marc.khouzam@ericsson.com>
1303
1304 * thread.c (any_live_thread_of_process): Prioritize threads
1305 that are not executing.
1306 * gdbthread.h (any_live_thread_of_process): Update comment
1307 as per above change.
1308
ed4b0e6a
AS
13092011-04-19 Andreas Schwab <schwab@linux-m68k.org>
1310
1311 * xcoffread.c (process_xcoff_symbol): Remove useless cast.
1312 (scan_xcoff_symtab): Likewise.
1313
9b13a2db
PM
13142011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1315
1316 * xcoffread.c (process_xcoff_symbol): ARI fix: Avoid assignment
1317 inside if clause.
1318
1c6e1b0d
PM
13192011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1320 Pedro Alves <pedro@codesourcery.com>
1321
1322 * xstormy16-tdep.c (xstormy16_push_dummy_call): Add local
1323 variables to simplify code and avoid == operator at end of
1324 line as this is against GNU coding standards.
1325
74de0234
PM
13262011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1327
1328 * solib-svr4.c (svr4_keep_data_in_core): Rename local variable
1329 lm_name to name_lm to avoid conflict with lm_name function.
1330
b23518f0
PM
13312011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1332
1333 ARI fixes: Use only lowercase function name for static functions.
1334 * nto-tdep.c (LM_ADDR): Rename to...
1335 (lm_addr): New function name.
1336 (nto_relocate_section_addresses): Adapt to change above.
1337 * solib-sunos.c (LM_ADDR): Rename to...
1338 (lm_addr): New function name.
1339 (LM_NEXT): Rename to...
1340 (lm_next): New function name.
1341 (sunos_current_sos, sunos_relocate_section_addresses): Adapt to
1342 function name changes above.
1343 * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Rename to...
1344 (lm_addr_from_link_map): New function name.
1345 (HAS_LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1346 (has_lm_dynamic_from_link_map): New function name.
1347 (LM_DYNAMIC_FROM_LINK_MAP): Rename to...
1348 (lm_dynamic_from_link_map): New function name.
1349 (LM_ADDR_CHECK): Rename to...
1350 (lm_addr_check): New function name.
1351 (LM_NEXT): Rename to...
1352 (lm_next): New function name.
1353 (LM_PREV): Rename to...
1354 (lm_prev): New function name.
1355 (LM_NAME): Rename to...
1356 (lm_name): New function name.
1357 (IGNORE_FIRST_LINK_MAP_ENTRY): Rename to...
1358 (ignore_first_link_map_entry): New function name.
1359 (svr4_keep_data_in_core): Adapt to function name changes above.
1360 (svr4_current_sos): Likewise.
1361 (enable_break): Likewise.
1362 (svr4_relocate_section_addresses): Likewise.
1363
1448a0a2
PM
13642011-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
1365
1366 ARI cleanup.
1367 * xtensa-tdep.c (xtensa_register_type): Use xstrprintf instead of
1368 sprintf. Simplify code and avoid loosing memory.
1369 (xtensa_register_reggroup_p): Extract assignment out of IF clause.
1370 (call0_frame_cache): Remove && operator from end of line.
1371
02835898
JK
13722011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1373
1374 Fix libraries displacement if they change whether they were prelinked.
1375 * solib-svr4.c (LM_ADDR_CHECK): Set L_ADDR even if the DYNAMIC pointer
1376 does not match. Comment why.
1377
9a845ea2
JK
13782011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1379
1380 * corelow.c: Include wrapper.h.
1381 (core_open): Call now gdb_target_find_new_threads.
1382 * wrapper.c: Include target.h.
1383 (gdb_target_find_new_threads): New.
1384 * wrapper.h (gdb_target_find_new_threads): New declaration.
1385
254f582e
JK
13862011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1387
1388 * linux-thread-db.c (find_new_threads_callback): Exit on zero TI_TID
1389 even if !TARGET_HAS_EXECUTION.
1390
63524580
JK
13912011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1392
1393 Fix convert_code_addr_to_desc_addr for ppc64 files after eu-strip.
1394 * elfread.c (elf_symfile_read): New variable synth_abfd, pass it to
1395 bfd_get_synthetic_symtab.
1396 * jit.c (jit_register_code): Pass NULL to the new parameter parent.
1397 * machoread.c (macho_add_oso_symfile): Pass main_objfile to the new
1398 parameter parent, remove the call to add_separate_debug_objfile.
1399 * solib.c (solib_read_symbols): Pass NULL to the new parameter parent.
1400 * symfile-mem.c (symbol_file_add_from_memory): Likewise.
1401 * symfile.c (symbol_file_add_with_addrs_or_offsets): New parameter
1402 parent, new comment for it, call add_separate_debug_objfile for it.
1403 (symbol_file_add_separate): Pass objfile as the parameter parent,
1404 remove the call to add_separate_debug_objfile.
1405 (symbol_file_add_from_bfd): New parameter parent, pass it.
1406 (symbol_file_add): Pass NULL to the new parameter parent.
1407 * symfile.h (symbol_file_add_from_bfd): New parameter parent.
1408
90359a16
JK
14092011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1410
1411 * elfread.c (elf_symtab_read): Do not ignore .L symbols if they are
1412 BSF_SYNTHETIC.
1413
626e7282
JK
14142011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1415
1416 Fix Python access to inlined frames.
1417 * python/py-frame.c (frapy_read_var): Find BLOCK using get_frame_block.
1418 * python/py-symbol.c (gdbpy_lookup_symbol): Likewise.
1419
cf31e6f9
TT
14202011-04-15 Tom Tromey <tromey@redhat.com>
1421
1422 * dwarf2read.c (add_index_entry): Use VEC_last, not VEC_length.
1423
c8d895f1
GB
14242011-04-15 Gary Benson <gbenson@redhat.com>
1425
1426 * MAINTAINERS: Add myself to write-after-approval section.
1427
56a9aa1d
MF
14282011-04-14 Mike Frysinger <vapier@gentoo.org>
1429
1430 * remote-sim.c (sim_command_completer): New function.
1431 (_initialize_remote_sim): Set completer to sim_command_completer.
1432
ba770c9c
TJB
14332011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1434
1435 * breakpoint.c (print_exception_catchpoint): Rename to ...
1436 (print_it_exception_catchpoint): ... this.
1437 (gnu_v3_exception_catchpoint_ops): Update with new name
1438 for print_it_exception_catchpoint.
1439
51bf2553
EBM
14402011-04-13 Edjunior Machado <emachado@linux.vnet.ibm.com>
1441
1442 * MAINTAINERS: Add myself for write after approval privileges.
1443
d242658c
MP
14442011-04-13 Marek Polacek <mpolacek@redhat.com>
1445
1446 * MAINTAINERS: Add myself as a write-after-approval maintainer.
1447
4a4106ca
TJB
14482011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1449
1450 * breakpoint.c (watch_command_1): Remove colon from exp_string.
1451
26063d49
TJB
14522011-04-13 Thiago Jung Bauermann <bauerman@br.ibm.com>
1453
1454 * breakpoint.c (save_breakpoints): Verify whether
1455 breakpoint_ops.print_recreate is defined before calling it.
1456
7782b183
GB
14572011-04-11 Gary Benson <gbenson@redhat.com>
1458
1459 Fix failure with --enable-maintainer-mode.
1460 * Makefile.in (aclocal_m4_deps): Updated gnulib dependencies.
1461
e8930875
JK
14622011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1463
1464 Code cleanup.
1465 * symtab.c (search_symbols): Reorder the KIND description in the
1466 function comment. Remove the unused 4th element of types, types2,
1467 types3 and types4. New gdb_assert on KIND.
1468 (symtab_symbol_info): Remove the unused 4th element of classnames.
1469 New gdb_assert on KIND.
1470 * symtab.h (enum search_domain): New warning in the enum comment.
1471 Assign numbers to the elements VARIABLES_DOMAIN, FUNCTIONS_DOMAIN and
1472 TYPES_DOMAIN.
1473
b4f2f049
JK
14742011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1475
1476 Fix crash of gdb save-index on a STABS file.
1477 * dwarf2read.c (write_psymtabs_to_index): Return also on no
1478 PSYMTABS_ADDRMAP.
1479
60d5a603
JK
14802011-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1481
1482 Fix DW_AT_accessibility compatibility with gcc-4.6+.
1483 * dwarf2read.c: Include ctype.h.
1484 (producer_is_gxx_lt_4_6, dwarf2_default_access_attribute): New
1485 functions.
1486 (dwarf2_add_field): Fix new_field->accessibility by calling
1487 dwarf2_default_access_attribute. Restructure setting accessibility
1488 vs. virtuality.
1489 (dwarf2_add_member_fn): New variable accessibility. Fix fnp
1490 is_private and is_protected by calling
1491 dwarf2_default_access_attribute.
1492
e0f68161
KB
14932011-04-08 Kevin Buettner <kevinb@redhat.com>
1494
1495 * rx-tdep.c (rx_frame_unwind): Add default_frame_unwind_stop_reason
1496 to the initialization.
1497
2e1aae43
SE
14982011-04-08 Steve Ellcey <sje@cup.hp.com>
1499
1500 * Add default_frame_unwind_stop_reason value to libunwind_frame_unwind
1501 initalization.
1502
c6ca3dab
PM
15032011-04-07 Pierre Muller <muller@ics.u-strasbg.fr>
1504
1505 Remove support for old Cygwin 1.5 versions.
1506 * remote-fileio.c: Remove macros used to emulate new cygwin_conv_path
1507 function on old Cygwin version.
1508 * windows-nat.c: Remove cygwin version check and always define
1509 __USEWIDE for Cygwin compilation.
1510
bd18283a
YQ
15112011-04-07 Yao Qi <yao@codesourcery.com>
1512
1513 * arm-linux-tdep.c (arm_linux_copy_svc): Remove parameters INSN
1514 and TO.
1515 * arm-tdep.c (cleanup_svc): Handle variable instruction size.
1516 (arm_copy_svc): Remove parameters INSN and TO.
1517 (decode_svc_copro): Update caller.
1518 * arm-tdep.h (struct displaced_step_closure): Remove parameters
1519 from function pointer `copy_svc_os'.
1520
8c8dba6d
YQ
15212011-04-07 Yao Qi <yao@codesourcery.com>
1522
1523 * arm-tdep.c (cleanup_branch): Set a correct return address in
1524 LR for ARM and Thumb.
1525
59d7bcaf
JK
15262011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1527
1528 Code cleanup.
1529 * dictionary.c (dict_hash): Use SYMBOL_HASH_NEXT.
1530 * dwarf2read.c (mapped_index_string_hash): Refer to SYMBOL_HASH_NEXT
1531 in the function comment, a new note on values compatibility.
1532 * minsyms.c (msymbol_hash_iw, msymbol_hash): Use SYMBOL_HASH_NEXT.
1533 * symtab.h (SYMBOL_HASH_NEXT): New.
1534
e7db58ea
TJB
15352011-04-06 Thiago Jung Bauermann <bauerman@br.ibm.com>
1536
1537 * ppc-linux-nat.c (check_condition): Add len output parameter.
1538 Set it based on the memory region referenced in the condition
1539 expression. Update all callers.
1540
9f743ef6
JK
15412011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1542
1543 Fix crash regression on systems featuring .gdb_index.
1544 * objfiles.c (free_objfile): Move the
1545 forget_cached_source_info_for_objfile call earlier. Comment it.
1546 Extend the comment for objfile_free_data.
1547
9182c5bc
JK
15482011-04-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1549
1550 Fix regression of displaying the debug format.
1551 * buildsym.c (end_symtab): Set symtab's debugformat and producer from
1552 subfile.
1553
04bd08de
TT
15542011-04-04 Tom Tromey <tromey@redhat.com>
1555
1556 * cli/cli-interp.c (struct captured_execute_command_args):
1557 Remove.
1558 (do_captured_execute_command): Remove.
1559 (safe_execute_command): Use TRY_CATCH.
1560 * cli/cli-script.c (struct wrapped_read_command_file_args):
1561 Remove.
1562 (wrapped_read_command_file): Remove.
1563 (script_from_file): Use TRY_CATCH.
1564 * exceptions.c (catch_exception): Remove.
1565 * exceptions.h (catch_exception): Remove.
1566 (deprecated_throw_reason): Update comment.
1567 * mi/mi-main.c (captured_mi_execute_command): Change 'data'
1568 argument to 'context'.
1569 (mi_execute_command): Use TRY_CATCH.
1570 * remote.c (struct start_remote_args): Remove.
1571 (remote_start_remote): Update; change arguments.
1572 (remote_open_1): Use TRY_CATCH.
1573
58438ac1
TT
15742011-04-04 Tom Tromey <tromey@redhat.com>
1575
1576 * tracepoint.c (scope_info): Update.
1577 * symtab.c (decode_line_spec): Update.
1578 * python/python.c (gdbpy_decode_line): Update.
1579 * linespec.h (decode_line_1): Update.
1580 * linespec.c (decode_line_1): Remove 'not_found_ptr' argument.
1581 (decode_compound, find_method, symtab_from_filename)
1582 (decode_variable): Likewise.
1583 * cli/cli-cmds.c (edit_command): Update.
1584 (list_command): Update.
1585 * breakpoint.c (parse_breakpoint_sals): Remove 'not_found_ptr'
1586 argument.
1587 (create_breakpoint): Update.
1588 (until_break_command): Update.
1589 (addr_string_to_sals): Update.
1590 (decode_line_spec_1): Update.
1591
b78a6381
TT
15922011-04-04 Tom Tromey <tromey@redhat.com>
1593
1594 * breakpoint.c (struct captured_parse_breakpoint_args): Remove.
1595 (do_captured_parse_breakpoint): Remove.
1596 (create_breakpoint): `e' is now volatile. Remove `parse_args'.
1597 Use TRY_CATCH directly.
1598
00174a86
TT
15992011-04-04 Tom Tromey <tromey@redhat.com>
1600
1601 * symtab.h (free_symtab): Remove.
1602 (forget_cached_source_info_for_objfile): Declare.
1603 * symmisc.c (free_symtab): Remove.
1604 * source.c (forget_cached_source_info_for_objfile): New function.
1605 (forget_cached_source_info): Use it.
1606 * objfiles.c (free_objfile): Simplify check before calling
1607 clear_current_source_symtab_and_line. Call
1608 forget_cached_source_info_for_objfile.
1609
30cc903e
TT
16102011-04-04 Tom Tromey <tromey@redhat.com>
1611
1612 * mdebugread.c (psymtab_to_symtab_1): Copy linetable to obstack.
1613 (new_symtab): Don't set `free_code' on symtab.
1614 (new_linetable): Properly handle size==0.
1615 * symtab.h (struct symtab) <free_code, free_func>: Remove.
1616 * symmisc.c (free_symtab): Don't free the linetable. Don't call
1617 free_func.
1618 * jv-lang.c (struct jv_per_objfile_data): New.
1619 (jv_per_objfile_free): Free the data.
1620 (get_dynamics_objfile): Allocate a jv_per_objfile_data.
1621 (get_java_class_symtab): Set the `dict' field on the
1622 jv_per_objfile_data.
1623 (free_class_block): Remove.
1624 * buildsym.c (end_symtab): Don't set `free_code' or `free_func' on
1625 the symtab.
1626
0c2e6019
TT
16272011-04-04 Tom Tromey <tromey@redhat.com>
1628
1629 * symfile.c (reread_symbols): Update.
1630 * objfiles.h (struct objfile) <cp_namespace_symtab>: Remove
1631 field.
1632 * objfiles.c (allocate_objfile): Update.
1633 * cp-support.h (cp_check_possible_namespace_symbols): Don't
1634 declare.
1635 * cp-namespace.c (lookup_symbol_file): Don't call
1636 lookup_possible_namespace_symbol.
1637 (initialize_namespace_symtab, get_possible_namespace_block)
1638 (free_namespace_block, cp_check_possible_namespace_symbols)
1639 (check_possible_namespace_symbols_loop)
1640 (check_one_possible_namespace_symbol)
1641 (lookup_possible_namespace_symbol): Remove.
1642 (maintenance_cplus_namespace): Replace with notice.
1643 (_initialize_cp_namespace): Deprecate `maint cplus namespace'.
1644
554d387d
TT
16452011-04-04 Tom Tromey <tromey@redhat.com>
1646
1647 * xcoffread.c (read_xcoff_symtab): Make `debugfmt' const.
1648 * symtab.h (struct symtab) <producer, debugformat>: Now const.
1649 * symmisc.c (free_symtab): Don't free debugformat.
1650 * buildsym.h (struct subfile) <producer, debugformat>: Now const.
1651 (record_debugformat, record_producer): Document.
1652 * buildsym.c (end_symtab): Don't save debugformat and producer
1653 names on obstack.
1654 (end_symtab): Don't free debugformat and producer fields.
1655 (record_debugformat): Don't call xstrdup.
1656 (record_producer): Likewise.
1657
d4d4db8a
TT
16582011-04-04 Tom Tromey <tromey@redhat.com>
1659
1660 * source.c (find_source_lines): Remove LSEEK_NOT_LINEAR code.
1661 (source_line_charpos, source_charpos_line): Remove.
1662
8903c50d
TT
16632011-04-04 Tom Tromey <tromey@redhat.com>
1664
1665 * symtab.h (domain_enum): Split in two...
1666 (enum search_domain): New.
1667 (search_symbols): Update.
1668 * symtab.c (print_symbol_info, symtab_symbol_info): Remove
1669 redundant declarations.
1670 (search_symbols): Change 'kind' argument to search_domain.
1671 Update.
1672 (print_symbol_info): Likewise.
1673 (symtab_symbol_info): Likewise.
1674 * symfile.h (struct quick_symbol_functions)
1675 <pre_expand_symtabs_matching>: Change type of 'kind' argument.
1676 <expand_symtabs_matching>: Likewise.
1677 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Update.
1678 (expand_symtabs_matching_via_partial): Update.
1679 * dwarf2read.c (dw2_pre_expand_symtabs_matching): Update.
1680 (dw2_expand_symtabs_for_function): Update.
1681 * block.h: Moved anonymous enum...
1682 * defs.h (enum block_enum): ... here. Now named.
1683
d9351f5f 16842011-04-03 Joel Brobecker <brobecker@adacore.com>
1685
1686 GDB 7.3 branch created (branch timestamp: 2011-04-01 01:00 UTC)
1687 * version.in: Bump version to 7.3.50.20110403-cvs.
1688
d6e00af6
JB
16892011-04-03 Joel Brobecker <brobecker@adacore.com>
1690
1691 * NEWS: Create a new section for the next release branch.
1692 Rename the section of the current branch, now that it has
1693 been cut.
1694
2b9e5ea6
UW
16952011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1696
1697 * arm-tdep.c (arm_gdbarch_init): Enfore correct register number
1698 for "fpscr" in target description.
1699
0cf03b49
JK
17002011-04-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 * dwarf2read.c (find_slot_in_mapped_hash): New variable back_to,
1703 initialize it. Delay HASH initialization. Strip the part after open
1704 parenthesis for languages with qualifiers. Call do_cleanups.
1705
5d901a73
TT
17062011-04-01 Tom Tromey <tromey@redhat.com>
1707
1708 * utils.c (report_command_stats): Don't print `-' for negative
1709 number.
1710
b0dd7688
JB
17112011-04-01 Eric Botcazou <ebotcazou@adacore.com>
1712
1713 * ada-lang.c (ada_is_simple_array_type, ada_value_slice_from_ptr)
1714 (ada_value_slice, empty_array, to_fixed_array_type): Deal with
1715 typedefs.
1716
956a9fb9
JB
17172011-04-01 Joel Brobecker <brobecker@adacore.com>
1718
1719 * breakpoint.h (bpdisp_text): Add declaration.
1720 * breakpoint.c (bpdisp_text): Make non-static.
1721 * ada-lang.c: #include "mi/mi-common.h".
1722 (print_it_exception): Rewrite to improve GDB/MI output.
1723
3352110b
PA
17242011-04-01 Pedro Alves <pedro@codesourcery.com>
1725
1726 * arm-tdep.h (struct address_space): Add forward declaration.
1727
18819fa6
UW
17282011-04-01 Ulrich Weigand <ulrich.weigand@linaro.org>
1729
1730 * arm-tdep.h (arm_insert_single_step_breakpoint): Add prototype.
1731 * arm-tdep.c (arm_override_mode): New global.
1732 (arm_pc_is_thumb): Respect arm_override_mode. Remove single-step
1733 execution mode heuristics.
1734 (thumb_get_next_pc_raw): Remove INSERT_BKTP argument; always insert
1735 second single-step breakpoint if needed, using
1736 arm_insert_single_step_breakpoint.
1737 (arm_get_next_pc_raw): Remove INSERT_BKTP argument. Only handle
1738 ARM execution mode, do not call thumb_get_next_pc_raw.
1739 (arm_get_next_pc): Encode execution mode in return value. Call
1740 either arm_get_next_pc_raw or thumb_get_next_pc_raw.
1741 (arm_insert_single_step_breakpoint): New function.
1742 (arm_software_single_step): Call it.
1743 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): Add IS_THUMB
1744 argument to return execution mode of sigreturn target.
1745 (arm_linux_syscall_next_pc): Use it.
1746 (arm_linux_copy_svc): Update call.
1747 (arm_linux_software_single_step): Call
1748 arm_insert_single_step_breakpoint.
1749
a6e293d1
JK
17502011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1751
1752 * dwarf2read.c (dwarf2_read_index): Fix .gdb_index version number in
1753 the comment.
1754
a4c8e806
TT
17552011-03-31 Tom Tromey <tromey@redhat.com>
1756
1757 * varobj.c (update_dynamic_varobj_children): Properly handle
1758 errors from iterator.
1759
df5c6c50
JK
17602011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1761
1762 * dwarf2read.c (dwarf2_name): Initialize DEMANGLED. Avoid demangling
1763 struct linkage name twice.
1764
1dae3efc
TT
17652011-03-31 Tom Tromey <tromey@redhat.com>
1766
1767 * python/py-prettyprint.c (print_stack_unless_memory_error): Add
1768 missing ">" to message.
1769
f4f7ab05
TT
17702011-03-31 Tom Tromey <tromey@redhat.com>
1771
1772 * varobj.c (instantiate_pretty_printer): Remove duplicate
1773 'return'.
1774
fcf250e2
UW
17752011-03-31 Ulrich Weigand <ulrich.weigand@linaro.org>
1776
1777 * i386-tdep.c (i386_frame_prev_register): Unwind SP from memory
1778 if neither saved value nor register available (e.g. signal frame).
1779
ee6436e3
TJB
17802011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1781
1782 * macroexp.c (expand): Avoid uninitialized variable
1783 compiler warning.
1784
423f41a5
TJB
17852011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1786
1787 * breakpoint.c (break_range_command): Fix typo in comment.
1788
f1310107
TJB
17892011-03-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
1790 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1791
1792 Implement support for PowerPC BookE ranged breakpoints.
1793 * NEWS: Mention support for ranged breakpoints on embedded PowerPC.
1794 * breakpoint.h (struct bp_target_info) <length>: New member
1795 variable.
1796 (struct breakpoint_ops) <breakpoint_hit>: Take struct bp_location
1797 instead of struct breakpoint as argument, and also add ASPACE
1798 and BP_ADDR arguments. Update all callers.
1799 (struct breakpoint_ops) <print_one_detail>: New method.
1800 (struct breakpoint) <addr_string_range_end>: New member variable.
1801 * breakpoint.c (breakpoint_location_address_match): Add function
1802 prototype.
1803 (insert_bp_location): Set bl->target_info.length.
1804 (breakpoint_here_p): Call breakpoint_location_address_match.
1805 (moribund_breakpoint_here_p): Likewise.
1806 (regular_breakpoint_inserted_here_p): Likewise.
1807 (breakpoint_thread_match): Likewise.
1808 (bpstat_stop_status): Likewise.
1809 (bpstat_check_location): Move call to
1810 breakpoint_ops.breakpoint_hit to the top.
1811 (print_one_breakpoint_location): Call
1812 breakpoint_ops.print_one_detail if available.
1813 (breakpoint_address_match_range): New function.
1814 (breakpoint_location_address_match): Likewise.
1815 (breakpoint_locations_match): Compare the length field of the
1816 locations too.
1817 (hw_breakpoint_used_count): Count resources used by all locations
1818 in a breakpoint, and use breakpoint_ops.resources_needed if
1819 available.
1820 (breakpoint_hit_ranged_breakpoint): New function.
1821 (resources_needed_ranged_breakpoint): Likewise.
1822 (print_it_ranged_breakpoint): Likewise.
1823 (print_one_ranged_breakpoint): Likewise.
1824 (print_one_detail_ranged_breakpoint): Likewise.
1825 (print_mention_ranged_breakpoint): Likewise.
1826 (print_recreate_ranged_breakpoint): Likewise.
1827 (ranged_breakpoint_ops): New structure.
1828 (find_breakpoint_range_end): New function.
1829 (break_range_command): Likewise.
1830 (delete_breakpoint): Free addr_string_range_end.
1831 (update_breakpoint_locations): Add SALS_END argument. Update
1832 all callers. Calculate breakpoint length if a non-zero SALS_END
1833 is given. Call breakpoint_locations_match instead of
1834 breakpoint_address_match.
1835 (reset_breakpoint): Find SaL of the end of the range if B is a
1836 ranged breakpoint.
1837 (_initialize_breakpoint): Register break-range command.
1838 * defs.h (print_core_address): Add function prototype.
1839 * ppc-linux-nat.c (ppc_linux_ranged_break_num_registers): New
1840 function.
1841 (ppc_linux_insert_hw_breakpoint): Support ranged breakpoints.
1842 (ppc_linux_remove_hw_breakpoint): Likewise.
1843 (_initialize_ppc_linux_nat): Initialize
1844 to_ranged_break_num_registers.
1845 * target.c (update_current_target): Add comment about
1846 to_ranged_break_num_registers.
1847 (target_ranged_break_num_registers): New function.
1848 * target.h (struct target_ops) <to_ranged_break_num_registers>:
1849 New method.
1850 (target_ranged_break_num_registers): Add function prototype.
1851 * ui-out.c (ui_out_field_core_addr): Move address-printing logic to ...
1852 * utils.c (print_core_address): ... here.
1853
02d20e4a
UW
18542011-03-31 Ulrich Weigand <uweigand@de.ibm.com>
1855
1856 * breakpoint.c (addr_string_to_sals): Avoid uninitialized
1857 variable compiler warning.
1858
ef23e705
TJB
18592011-03-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
1860
1861 * breakpoint.c (breakpoint_re_set_one): Factor out breakpoint-resetting
1862 code from here ...
1863 (re_set_breakpoint): ... to here ...
1864 (addr_string_to_sals): ... and here.
1865
311e6ab3
PM
18662011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1867
1868 * Makefile.in (SFILES): Add missing C sources.
1869 (HFILES_NO_SRCDIR): Remove gdbserver subdirectory headers.
1870 Add missing headers.
1871
acd1d99c
MF
18722011-03-29 Mike Frysinger <vapier@gentoo.org>
1873
1874 * .gitignore: New file.
1875
66ee2731
MF
18762011-03-29 Mike Frysinger <vapier@gentoo.org>
1877
1878 * NEWS: Mention new cfi device simulation.
1879
53832f31
TT
18802011-03-29 Tom Tromey <tromey@redhat.com>
1881
1882 * dwarf2read.c (fixup_partial_die): Handle linkage name on
1883 otherwise anonymous types.
1884 (dwarf2_name): Likewise.
1885 * valops.c (value_struct_elt_for_reference): Refine artificial
1886 type logic. Call error if j==-1.
1887
09b58708
JK
18882011-03-29 Andreas Tobler <andreast-list@fgznet.ch>
1889
1890 Fix false GCC warning.
1891 * infcall.c (find_function_addr): Initialize funaddr.
1892
6023c606
PM
18932011-03-29 Pierre Muller <muller@ics.u-strasbg.fr>
1894
1895 Fix mingw compilation with --enable-targets=all.
1896 * remote-mips.c (gdb_usleep.h): Include header.
1897 (mips_enter_debug): Use gdb_usleep instead of sleep.
1898
0e30163f
JK
18992011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1900
1901 Support resolution of STT_GNU_IFUNC via breakpoints.
1902 * breakpoint.c (print_it_typical): Support bp_gnu_ifunc_resolver and
1903 bp_gnu_ifunc_resolver_return.
1904 (bpstat_what): Rename parameter to bs_head, new variable bs, adjust
1905 the loop. Support bp_gnu_ifunc_resolver and
1906 bp_gnu_ifunc_resolver_return. New comment after the loop. New loop
1907 for bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return
1908 breakpoints.
1909 (bptype_string, print_one_breakpoint_location): Support
1910 bp_gnu_ifunc_resolver and bp_gnu_ifunc_resolver_return.
1911 (user_settable_breakpoint): Return true also for
1912 bp_gnu_ifunc_resolver.
1913 (allocate_bp_location): Support bp_gnu_ifunc_resolver and
1914 bp_gnu_ifunc_resolver_return.
1915 (set_breakpoint_location_function): New parameter explicit_loc,
1916 describe it. Call find_pc_partial_function_gnu_ifunc with new
1917 variable IS_GNU_IFUNC and adjust the address for STT_GNU_IFUNC if
1918 EXPLICIT_LOC is not set.
1919 (set_raw_breakpoint): Set EXPLICIT_LOC for
1920 set_breakpoint_location_function.
1921 (clone_momentary_breakpoint): Use true for EXPLICIT_LOC of
1922 set_breakpoint_location_function.
1923 (mention): Support bp_gnu_ifunc_resolver and
1924 bp_gnu_ifunc_resolver_return.
1925 (add_location_to_breakpoint): Set EXPLICIT_LOC for
1926 set_breakpoint_location_function.
1927 (update_breakpoint_locations): Remove static.
1928 (breakpoint_re_set_one): Support bp_gnu_ifunc_resolver and
1929 bp_gnu_ifunc_resolver_return.
1930 * breakpoint.h (enum bptype): New fields bp_gnu_ifunc_resolver and
1931 bp_gnu_ifunc_resolver_return.
1932 (update_breakpoint_locations): New declaration.
1933 * elfread.c: Include gdbthread.h and regcache.h.
1934 (elf_gnu_ifunc_resolver_stop, elf_gnu_ifunc_resolver_return_stop): New
1935 functions.
1936 (elf_gnu_ifunc_fns): Install them.
1937 * minsyms.c (stub_gnu_ifunc_resolver_stop)
1938 (stub_gnu_ifunc_resolver_return_stop): New functions.
1939 (stub_gnu_ifunc_fns): Install them.
1940 * symtab.h (struct gnu_ifunc_fns): New fields gnu_ifunc_resolver_stop
1941 and gnu_ifunc_resolver_return_stop.
1942 (gnu_ifunc_resolver_stop, gnu_ifunc_resolver_return_stop): New.
1943
07be84bf
JK
19442011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1945
1946 STT_GNU_IFUNC reader implementation.
1947 * elfread.c: Include gdbtypes.h, value.h and infcall.h.
1948 (SYMBOL_GOT_PLT_SUFFIX, elf_rel_plt_read)
1949 (elf_objfile_gnu_ifunc_cache_data, struct elf_gnu_ifunc_cache)
1950 (elf_gnu_ifunc_cache_hash, elf_gnu_ifunc_cache_eq)
1951 (elf_gnu_ifunc_record_cache, elf_gnu_ifunc_resolve_by_cache)
1952 (elf_gnu_ifunc_resolve_by_got, elf_gnu_ifunc_resolve_name)
1953 (elf_gnu_ifunc_resolve_addr): New.
1954 (elf_symfile_read): Call elf_rel_plt_read.
1955 (elf_gnu_ifunc_fns): New.
1956 (_initialize_elfread): Initialize elf_objfile_gnu_ifunc_cache_data.
1957 Install elf_gnu_ifunc_fns.
1958 * infcall.c (find_function_return_type): New function.
1959 (find_function_addr): Resolve TYPE_GNU_IFUNC functions, if possible.
1960 * minsyms.c (stub_gnu_ifunc_resolve_addr)
1961 (stub_gnu_ifunc_resolve_name): New functions.
1962 (stub_gnu_ifunc_fns, gnu_ifunc_fns_p): New variables.
1963 * symtab.h (struct gnu_ifunc_fns, gnu_ifunc_resolve_addr)
1964 (gnu_ifunc_resolve_name, gnu_ifunc_fns_p): New.
1965
300f8e10
JK
19662011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1967
1968 Code cleanup for later STT_GNU_IFUNC support.
1969 * infcall.c (find_function_addr): Remove variable code, use explicit
1970 dereferences for it. Move VALUE_TYPE initialization later.
1971
11c81455
JK
19722011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1973
1974 GDB find_pc_partial_function support for STT_GNU_IFUNC.
1975 * blockframe.c (cache_pc_function_is_gnu_ifunc): New variable.
1976 (clear_pc_function_cache): Clear it.
1977 (find_pc_partial_function): Rename to ...
1978 (find_pc_partial_function_gnu_ifunc): ... this function. New
1979 parameter is_gnu_ifunc_p, describe it. Set *IS_GNU_IFUNC_P.
1980 (find_pc_partial_function): New wrapper for this function.
1981 * symtab.h (find_pc_partial_function_gnu_ifunc): New declaration.
1982
0875794a
JK
19832011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1984
1985 GDB internal type support for STT_GNU_IFUNC.
1986 * elfread.c (record_minimal_symbol): Support mst_text_gnu_ifunc.
1987 (elf_symtab_read): Set mst_text_gnu_ifunc for
1988 BSF_GNU_INDIRECT_FUNCTION.
1989 * eval.c (evaluate_subexp_standard): Support TYPE_GNU_IFUNC.
1990 * gdbtypes.c (init_type): Support TYPE_FLAG_GNU_IFUNC,
1991 builtin_func_func, nodebug_text_gnu_ifunc_symbol and
1992 nodebug_got_plt_symbol.
1993 * gdbtypes.h (enum type_flag_value): New entry TYPE_FLAG_GNU_IFUNC.
1994 (TYPE_GNU_IFUNC): New.
1995 (struct main_type): New field flag_gnu_ifunc.
1996 (struct builtin_type): New field builtin_func_func.
1997 (struct objfile_type): New fields nodebug_text_gnu_ifunc_symbol and
1998 nodebug_got_plt_symbol.
1999 * minsyms.c (lookup_minimal_symbol_text): Support mst_text_gnu_ifunc.
2000 (in_gnu_ifunc_stub): New.
2001 (prim_record_minimal_symbol, find_solib_trampoline_target): Support
2002 mst_text_gnu_ifunc.
2003 * parse.c (write_exp_msymbol): New variable ifunc_msym. Detect and
2004 support mst_text_gnu_ifunc. Support mst_slot_got_plt.
2005 * solib-svr4.c (svr4_in_dynsym_resolve_code): Return true also for
2006 in_gnu_ifunc_stub.
2007 * symmisc.c (dump_msymbols): Support mst_text_gnu_ifunc.
2008 * symtab.c (search_symbols): Likewise.
2009 * symtab.h (enum minimal_symbol_type): New fields mst_text_gnu_ifunc
2010 and mst_slot_got_plt.
2011 (in_gnu_ifunc_stub): New declaration.
2012
d0fb5eae
JK
20132011-03-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2014
2015 Support a ring of related breakpoints.
2016 * breakpoint.c (watchpoint_del_at_next_stop): New, move here code from
2017 other functions, add gdb_assert.
2018 (update_watchpoint, watchpoint_check): Add gdb_assert. Use
2019 watchpoint_del_at_next_stop.
2020 (bpstat_check_watchpoint): Use watchpoint_del_at_next_stop.
2021 (bpstat_stop_status): Handle ring in related_breakpoint.
2022 (set_raw_breakpoint_without_location): Initialize ring in
2023 related_breakpoint.
2024 (delete_breakpoint): Handle ring in related_breakpoint, use
2025 watchpoint_del_at_next_stop.
2026 (map_breakpoint_numbers): Handle ring in related_breakpoint.
2027
9cded63f
TT
20282011-03-28 Tom Tromey <tromey@redhat.com>
2029
2030 PR symtab/12441:
2031 * dwarf2read.c (prepare_one_comp_unit): Don't call set_cu_language
2032 with `language_minimal'.
2033
467d42c4
UW
20342011-03-25 Ulrich Weigand <ulrich.weigand@linaro.org>
2035
2036 * arm-tdep.c (arm_elf_make_msymbol_special): Use ARM_SYM_BRANCH_TYPE
2037 instead of checking for STT_ARM_TFUNC symbol type.
2038
62853458
TT
20392011-03-25 Tom Tromey <tromey@redhat.com>
2040
2041 * linespec.c (symbol_found): Restore line-based result for
2042 non-LOC_LABEL symbols.
2043
a7417d46
KT
20442011-03-25 Kai Tietz <ktietz@redhat.com>
2045
2046 * tui/tui-source.c (tui_set_source_content): Use filename_cmp
2047 instead of strcmp for comparison.
2048 (tui_source_is_displayed): Likewise.
2049 * tui/tui-winsource.c (tui_update_breakpoint_info): Likewise.
2050
55f1336d
TT
20512011-03-24 Mark Wielaard <mjw@redhat.com>
2052
f33edef8
PP
2053 * dwarf2read.c (lookup_signatured_type): Use DW_FORM_ref_sig8 in
2054 complaint.
2055 (skip_one_die): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
2056 (find_partial_die_in_comp_unit): Likewise in comment.
2057 (read_attribute_value): Likewise.
2058 (lookup_die_type): Likewise.
2059 (dwarf_form_name): Likewise.
2060 (dump_die_shallow): Likewise.
2061 (follow_die_ref_or_sig): Likewise.
55f1336d 2062
9ef07c8c
TT
20632011-03-24 Tom Tromey <tromey@redhat.com>
2064
2065 PR breakpoints/11816:
2066 * linespec.c (decode_line_1): Parse `function:label' linespecs.
2067 (decode_compound): Update.
2068 (find_function_symbol): New function.
2069 (decode_dollar): Update.
2070 (decode_label): Add 'function_symbol' parameter. Handle
2071 function-relative labels.
2072 (decode_variable): Update.
2073 (symbol_found): Add 'function_symbol' parameter. Use label's PC,
2074 not its line. Set `special_display' and canonical name for
2075 labels.
2076
56435ebe
TT
20772011-03-24 Tom Tromey <tromey@redhat.com>
2078
2079 * linespec.h (struct linespec_result) <special_display>: New
2080 field.
2081 * breakpoint.h (struct breakpoint) <display_canonical>: New
2082 field.
2083 * breakpoint.c (print_breakpoint_location): Respect
2084 display_canonical.
2085 (create_breakpoint_sal): Add 'display_canonical' parameter.
2086 (create_breakpoints_sal): Update.
2087 (create_breakpoint): Update.
2088
7efd8fc2
TT
20892011-03-24 Tom Tromey <tromey@redhat.com>
2090
2091 * symtab.c (decode_line_spec): Update.
2092 * linespec.c (build_canonical_line_spec): Change type of
2093 'canonical'.
2094 (decode_line_2, decode_line_1, decode_objc, decode_compound)
2095 (find_method, decode_all_digits, decode_dollar, decode_label)
2096 (symbol_found): Likewise.
2097 (init_linespec_result): New function.
2098 * breakpoint.c (struct captured_parse_breakpoint_args)
2099 <canonical_p>: New field, replaces addr_string_p.
2100 (create_breakpoints_sal): Add 'canonical' parameter, replacing
2101 'addr_string'.
2102 (parse_breakpoint_sals): Likewise.
2103 (do_captured_parse_breakpoint): Update.
2104 (create_breakpoint): Use struct linespec_result.
2105 (until_break_command): Update.
2106 (breakpoint_re_set_one): Update.
2107 (decode_line_spec_1): Update.
2108 * linespec.h (struct linespec_result): New.
2109 (init_linespec_result): Declare.
2110
788c8b10
PA
21112011-03-23 Pedro Alves <pedro@codesourcery.com>
2112
2113 * regcache.c (regcache_raw_read): If the target didn't supply a
2114 given raw register, mark it as unavailable.
2115
0ba1096a
KT
21162011-03-23 Kai Tietz <ktietz@redhat.com>
2117
2118 * breakpoint.c (clear_command): Use filename_cmp
2119 instead of strcmp for comparison.
2120 * buildsym.c (watch_main_source_file_lossage): Likewise.
2121 (patch_subfile_names): Use IS_DIR_SEPARATOR instead of
2122 checking just for slash.
2123 * dbxread.c (read_dbx_symtab): Use lbasename instead of
2124 strrchr and filename_cmp instead of strcmp for filenames.
2125 (add_old_header_file): Use filename_cmp
2126 instead of strcmp for comparison.
2127 * exec.c (exec_set_section_address): Likewise.
2128 * macrotab.c (macro_lookup_inclusion): Likewise.
2129 (macro_lookup_inclusion): Likewise.
2130 * elfread.c (_initialize_elfread): Likewise.
2131 (elfstab_offset_sections): Likewise.
2132 (elfstab_offset_sections): Use lbasename instead of
2133 strrchr.
2134 * mdebugread.c (parse_partial_symbols): Likewise.
2135 (arse_partial_symbols): Use filename_(n)cmp instead of
2136 str(n)cmp for comparison.
2137 * minsyms.c (lookup_minimal_symbol): Likewise.
2138 * psymtab.c (read_psymtabs_with_filename): Likewise.
2139 * solib.c (solib_read_symbols): Likewise.
2140 (reload_shared_libraries_1): Likewise.
2141 * symmisc.c (maintenance_print_symbols): Likewise.
2142 * symfile.c (separate_debug_file_exists): Likewise.
2143 (reread_symbols): Likewise.
2144 (find_separate_debug_file_by_debuglink): Likewise.
2145 * remote-fileio.c (remote_fileio_func_rename): Likewise.
2146 * source.c (add_path): Likewise.
2147 * symtab.c (filename_seen): Likewise.
2148 (file_matches): Likewise.
2149 (print_symbol_info): Likewise.
2150 (maybe_add_partial_symtab_filename): Likewise.
2151 (make_source_files_completion_list): Likewise.
2152 * xml-syscall.c (init_sysinfo): Likewise.
2153 * windows-nat.c (_initialize_check_for_gdb_ini): Use
2154 IS_DIR_SEPARATOR for checking for trailing path separator.
2155
dd90784c
JK
21562011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2157
2158 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_entry_value. New
2159 label abort_expression.
2160 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Handle
2161 DWARF_VALUE_OPTIMIZED_OUT.
2162
3167638f
JK
21632011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2164
2165 Code cleanup.
2166 * c-typeprint.c (c_type_print_args): Change parameter show_artificial
2167 to linkage_name. Invert its value. Update the function comment.
2168 (c_type_print_varspec_suffix): Invert it at the caller.
2169 * dwarf2read.c (dwarf2_compute_name): Invert it at the caller.
2170
ce406537
PA
21712011-03-22 Pedro Alves <pedro@codesourcery.com>
2172
2173 * infcmd.c (post_create_inferior): Ignore NOT_AVAILABLE_ERROR
2174 errors when reading the `stop_pc'.
2175 * printcmd.c (pc_prefix): Use get_frame_pc_if_available instead of
2176 get_frame_pc.
2177
da5d4055
PM
21782011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2179
2180 * NEWS: Document gdb.Write stream keyword.
2181
29e0eb9c
JK
21822011-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2183
2184 Revert:
2185 2011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2186 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2187 (dwarf2_add_field): Fix new_field->accessibility for
2188 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2189
05775840
PM
21902011-03-22 Phil Muldoon <pmuldoon@redhat.com>
2191
f33edef8 2192 PR python/12183
05775840
PM
2193
2194 * python/py-function.c (fnpy_call): Treat GdbErrors differently to
2195 other error classes. Do not print stack trace.
2196
a0cb7835
JK
21972011-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2198
2199 * dwarf2read.c (producer_is_gxx_lt_4_6): New function.
2200 (dwarf2_add_field): Fix new_field->accessibility for
2201 cu->header.version >= 3 while verifying also producer_is_gxx_lt_4_6.
2202
d19f7eee
UW
22032011-03-21 Ulrich Weigand <ulrich.weigand@linaro.org>
2204
2205 * arm-tdep.c (arm_analyze_prologue): Do not abort parsing when
2206 encountering a load via a non-SP register.
2207
4a2fbb50
UW
22082011-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2209
2210 * tramp-frame.c (tramp_frame_prepend_unwinder): Set stop_reason
2211 field in returned unwinder.
2212
3489610d
JB
22132012-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2214
2215 * ada-lang.c (replace_operator_with_call): Copy also GDBARCH.
2216
8c1a34e7
JB
22172012-03-21 Joel Brobecker <brobecker@adacore.com>
2218
2219 * ada-lang.c (replace_operator_with_call): Use xzalloc instead
2220 of xmalloc.
2221
8fbca658
PA
22222012-03-18 Pedro Alves <pedro@codesourcery.com>
2223
2224 * frame.c (frame_unwind_register): Throw an error if unwinding the
2225 register failed.
2226 * get_prev_frame_1 (get_prev_frame_1): Ask the unwinder if there's
2227 an unwind stop reason.
2228 (frame_stop_reason_string): Handle UNWIND_UNAVAILABLE.
2229 * frame.h (enum unwind_stop_reason) <UNWIND_OUTERMOST,
2230 UNWIND_UNAVAILABLE>: New.
2231 * inline-frame.c (inline_frame_unwind): Install
2232 default_frame_unwind_stop_reason.
2233 * frame-unwind.c: Include "exceptions.h".
2234 (frame_unwind_find_by_frame): Swallow NOT_AVAILABLE_ERROR errors.
2235 (default_frame_unwind_stop_reason): New.
2236 * frame-unwind.h (frame_unwind_stop_reason_ftype): New typedef.
2237 (default_frame_unwind_stop_reason): Declare.
2238 (struct frame_unwind) <stop_reason>: New function pointer.
2239
2240 * dummy-frame.c: Install default_frame_unwind_stop_reason.
2241 * dwarf2-frame.c: Include exceptions.h.
2242 (struct dwarf2_frame_cache) <unavailable_retaddr>: New field.
2243 (dwarf2_frame_cache): Swallow NOT_AVAILABLE_ERROR errors when
2244 computing the CFA. If such an error was thrown, set
2245 unavailable_retaddr.
2246 (dwarf2_frame_unwind_stop_reason): New.
2247 (dwarf2_frame_this_id): Don't build a frame id if the CFA was
2248 unavailable.
2249 (dwarf2_frame_unwind): Install dwarf2_frame_unwind_stop_reason.
2250 (dwarf2_signal_frame_unwind): Ditto.
2251
2252 * amd64-tdep.c: Include "exceptions.h".
2253 (struct amd64_frame_cache): New field "base_p".
2254 (amd64_init_frame_cache): Clear it.
2255 (amd64_frame_cache_1): New, factored out from amd64_frame_cache.
2256 Avoid reading registers with functions that throw if the register
2257 is not necessary to compute the frame base.
2258 (amd64_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2259 swallowing NOT_AVAILABLE_ERROR.
2260 (amd64_frame_unwind_stop_reason): New.
2261 (amd64_frame_this_id): Don't build a frame id if the frame base
2262 was unavailable.
2263 (amd64_frame_unwind): Install amd64_frame_unwind_stop_reason.
2264 (amd64_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2265 base_p if the frame base was computable.
2266 (amd64_sigtramp_frame_unwind_stop_reason): New.
2267 (amd64_sigtramp_frame_this_id): Don't build a frame id if the
2268 frame base was unavailable.
2269 (amd64_sigtramp_frame_unwind): Install
2270 amd64_sigtramp_frame_unwind_stop_reason.
2271 (amd64_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2272 base_p if the frame base was computable.
2273 (amd64_epilogue_frame_unwind_stop_reason): New.
2274 (amd64_epilogue_frame_this_id): Don't build a frame id if the
2275 frame base was unavailable.
2276 (amd64_epilogue_frame_unwind): Install
2277 amd64_epilogue_frame_unwind_stop_reason.
2278 * i386-tdep.c: Include "exceptions.h".
2279 (struct i386_frame_cache): New field "base_p".
2280 (i386_init_frame_cache): Clear it.
2281 (i386_frame_cache_1): New, factored out from amd64_frame_cache.
2282 Avoid reading registers with functions that throw if the register
2283 is not necessary to compute the frame base.
2284 (i386_frame_cache): Reimplement wrapping amd64_frame_cache_1, and
2285 swallowing NOT_AVAILABLE_ERROR.
2286 (i386_frame_unwind_stop_reason): New.
2287 (i386_frame_this_id): Don't build a frame id if the frame base was
2288 unavailable.
2289 (i386_frame_prev_register): Handle unavailable SP.
2290 (i386_frame_unwind): Install i386_frame_unwind_stop_reason.
2291 (i386_epilogue_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2292 base_p if the frame base was computable.
2293 (i386_epilogue_frame_unwind_stop_reason): New.
2294 (i386_epilogue_frame_this_id): Don't build a frame id if the frame
2295 base was unavailable.
2296 (i386_epilogue_frame_unwind): Install
2297 i386_epilogue_frame_unwind_stop_reason.
2298 (i386_sigtramp_frame_cache): Swallow NOT_AVAILABLE_ERROR, and set
2299 base_p if the frame base was computable.
2300 (i386_sigtramp_frame_unwind_stop_reason): New.
2301 (i386_sigtramp_frame_this_id): Don't build a frame id if the frame
2302 base was unavailable.
2303 (i386_sigtramp_frame_unwind): Install
2304 i386_sigtramp_frame_unwind_stop_reason.
2305 * sentinel-frame.c (sentinel_frame_prev_register): Use the value
2306 type's size, not the register's.
2307 (sentinel_frame_unwind): Install default_frame_unwind_stop_reason.
2308
2309 * alpha-mdebug-tdep.c (alpha_mdebug_frame_unwind): Install
2310 default_frame_unwind_stop_reason.
2311 * alpha-tdep.c (alpha_sigtramp_frame_unwind)
2312 (alpha_heuristic_frame_unwind): Ditto.
2313 * amd64obsd-tdep.c (amd64obsd_trapframe_unwind): Ditto.
2314 * arm-tdep.c (arm_prologue_unwind, arm_stub_unwind): Ditto.
2315 * avr-tdep.c (avr_frame_unwind): Ditto.
2316 * cris-tdep.c (cris_sigtramp_frame_unwind, cris_frame_unwind):
2317 Ditto.
2318 * frv-linux-tdep.c (frv_linux_sigtramp_frame_unwind): Ditto.
2319 * frv-tdep.c (frv_frame_unwind): Ditto.
2320 * h8300-tdep.c (h8300_frame_unwind): Ditto.
2321 * hppa-hpux-tdep.c (hppa_hpux_sigtramp_frame_unwind): Ditto.
2322 * hppa-linux-tdep.c (hppa_linux_sigtramp_frame_unwind): Ditto.
2323 * hppa-tdep.c (hppa_frame_unwind, hppa_fallback_frame_unwind)
2324 (hppa_stub_frame_unwind): Ditto.
2325 * i386obsd-tdep.c (i386obsd_trapframe_unwind): Ditto.
2326 * ia64-tdep.c (ia64_frame_unwind, ia64_sigtramp_frame_unwind)
2327 (ia64_libunwind_frame_unwind)
2328 (ia64_libunwind_sigtramp_frame_unwind): Ditto.
2329 * iq2000-tdep.c (iq2000_frame_unwind): Ditto.
2330 * lm32-tdep.c (lm32_frame_unwind): Ditto.
2331 * m32c-tdep.c (m32c_unwind): Ditto.
2332 * m32r-linux-tdep.c (m32r_linux_sigtramp_frame_unwind): Ditto.
2333 * m32r-tdep.c (m32r_frame_unwind): Ditto.
2334 * m68hc11-tdep.c (m68hc11_frame_unwind): Ditto.
2335 * m68k-tdep.c (m68k_frame_unwind): Ditto.
2336 * m68klinux-tdep.c (m68k_linux_sigtramp_frame_unwind): Ditto.
2337 * m88k-tdep.c (m88k_frame_unwind): Ditto.
2338 * mep-tdep.c (mep_frame_unwind): Ditto.
2339 * microblaze-tdep.c (microblaze_frame_unwind): Ditto.
2340 * mips-tdep.c (mips_insn16_frame_unwind, mips_insn32_frame_unwind)
2341 (mips_stub_frame_unwind): Ditto.
2342 * mn10300-tdep.c (mn10300_frame_unwind): Ditto.
2343 * moxie-tdep.c (moxie_frame_unwind): Ditto.
2344 * mt-tdep.c (mt_frame_unwind): Ditto.
2345 * ppc-linux-tdep.c (ppu2spu_unwind): Ditto.
2346 * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_unwind): Ditto.
2347 * rs6000-tdep.c (rs6000_frame_unwind): Ditto.
2348 * s390-tdep.c (s390_frame_unwind, s390_stub_frame_unwind)
2349 (s390_sigtramp_frame_unwind): Ditto.
2350 * score-tdep.c (score_prologue_unwind): Ditto.
2351 * sh-tdep.c (sh_frame_unwind): Ditto.
2352 * sh64-tdep.c (sh64_frame_unwind): Ditto.
2353 * sparc-sol2-tdep.c (sparc32_sol2_sigtramp_frame_unwind): Ditto.
2354 * sparc-tdep.c (sparc32_frame_unwind): Ditto.
2355 * sparc64-sol2-tdep.c (sparc64_sol2_sigtramp_frame_unwind): Ditto.
2356 * sparc64-tdep.c (sparc64_frame_unwind): Ditto.
2357 * sparc64fbsd-tdep.c (sparc64fbsd_sigtramp_frame_unwind): Ditto.
2358 * sparc64nbsd-tdep.c (sparc64nbsd_sigcontext_frame_unwind): Ditto.
2359 * sparc64obsd-tdep.c (sparc64obsd_frame_unwind)
2360 (sparc64obsd_trapframe_unwind): Ditto.
2361 * sparcnbsd-tdep.c (sparc32nbsd_sigcontext_frame_unwind): Ditto.
2362 * sparcobsd-tdep.c (sparc32obsd_sigtramp_frame_unwind): Ditto.
2363 * spu-tdep.c (spu_frame_unwind, spu2ppu_unwind): Ditto.
2364 * v850-tdep.c (v850_frame_unwind): Ditto.
2365 * vax-tdep.c (vax_frame_unwind): Ditto.
2366 * vaxobsd-tdep.c (vaxobsd_sigtramp_frame_unwind): Ditto.
2367 * xstormy16-tdep.c (frame_unwind xstormy16_frame_unwind): Ditto.
2368 * xtensa-tdep.c (xtensa_unwind): Ditto.
2369
f23d1b92
PA
23702011-03-18 Pedro Alves <pedro@codesourcery.com>
2371
2372 * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Assume
2373 there's always a frame. Use get_frame_pc_if_available instead of
2374 get_frame_pc, and if there's no PC available, don't look up a
2375 symtab.
2376
1d4f5741
PA
23772011-03-18 Pedro Alves <pedro@codesourcery.com>
2378
2379 * stack.c (print_frame_local_vars, print_frame_arg_vars): Handle
2380 unavailable PC.
2381
dba09041
PA
23822011-03-18 Pedro Alves <pedro@codesourcery.com>
2383
2384 * tracepoint.c (set_traceframe_context): Handle unavailable PC
2385 gracefully.
2386
9a26e44c
PA
23872011-03-18 Pedro Alves <pedro@codesourcery.com>
2388
2389 * frame.h (frame_unwind_caller_pc_if_available): Declare.
2390 * frame.c (frame_unwind_caller_pc_if_available): New.
2391 * stack.c (frame_info): Handle unavailable PC.
2392
23932011-03-18 Pedro Alves <pedro@codesourcery.com>
2394
2395 * frame.c (frame_unwind_pc): Rename to ...
2396 (frame_unwind_pc_if_available): ... this. New `pc' output
2397 parameter. Change return type to int. Gracefully handle
2398 gdbarch_unwind_pc throwing NOT_AVAILABLE_ERROR. Return 0 if that
2399 happened, or 1 otherwise.
2400 (frame_unwind_pc): Reimplement on top of
2401 frame_unwind_pc_if_available.
2402 (get_frame_func): Rename to ...
2403 (get_frame_func_if_available): New `pc' output parameter. Change
2404 return type to int. Gracefully handle the PC not being available.
2405 (get_frame_func): Reimplement on top of
2406 get_frame_func_if_available.
2407 (select_frame): Handle the PC being unavailable.
2408 (get_prev_frame): Handle the PC being unavailable.
2409 (get_frame_pc_if_available): New.
2410 (get_frame_address_in_block_if_available): New.
2411 (find_frame_sal): Handle the frame PC not being available.
2412 * frame.h (get_frame_pc_if_available): Declare.
2413 (get_frame_address_in_block_if_available): Declare.
2414 (get_frame_func_if_available): Declare.
2415 * stack.c (print_frame_info): Handle the PC being unavailable.
2416 (find_frame_funname): Ditto.
2417 (print_frame): Handle the PC being unavailable.
2418 (get_frame_language): Ditto.
2419 * blockframe.c (get_frame_block): Ditto.
2420 * macroscope.c (default_macro_scope): Ditto.
2421 * tui/tui-stack.c (tui_show_frame_info): Ditto.
2422
24232011-03-18 Pedro Alves <pedro@codesourcery.com>
2424
2425 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Catch
2426 NOT_AVAILABLE_ERROR when evaluating the location expression.
2427
24282011-03-18 Pedro Alves <pedro@codesourcery.com>
2429
2430 * dwarf2loc.c (read_pieced_value): Handle get_frame_register_bytes
2431 returning that the register piece is unavailable/optimized out.
2432 (write_pieced_value): Handle get_frame_register_bytes returning
2433 that the register piece is unavailable/optimized out when doing a
2434 read-modify write of a bitfield.
2435 * findvar.c (value_from_register): Handle get_frame_register_bytes
2436 returning that the register piece is unavailable/optimized out.
2437 * frame.c (get_frame_register_bytes): New parameters `optimizedp'
2438 and `unavailablep'. Throw error on bad debug info. Use
2439 frame_register instead of frame_register_read, to fill in the new
2440 arguments.
2441 * frame.h (get_frame_register_bytes): New parameters `optimizedp'
2442 and `unavailablep'.
2443 * valops.c: (value_assign): Adjust, and handle
2444 get_frame_register_bytes failing.
2445 * spu-tdep.c: Include exceptions.h.
2446 (spu_software_single_step): Adjust, and handle
2447 get_frame_register_bytes failing.
2448 (spu_get_longjmp_target): Ditto.
2449 * gdbarch.sh (register_to_value): Change to return int. New
2450 parameters `optimizedp' and `unavailablep'.
2451 * gdbarch.h, gdbarch.c: Regenerate.
2452 * i386-tdep.c (i386_register_to_value): Adjust to new
2453 gdbarch_register_to_value interface.
2454 * i387-tdep.c (i387_register_to_value): Ditto.
2455 * i387-tdep.h (i387_register_to_value): Ditto.
2456 * alpha-tdep.c (alpha_register_to_value): Ditto.
2457 * ia64-tdep.c (ia64_register_to_value): Ditto.
2458 * m68k-tdep.c (m68k_register_to_value): Ditto.
2459 * mips-tdep.c (mips_register_to_value): Ditto.
2460 * rs6000-tdep.c (rs6000_register_to_value): Ditto.
2461
0fdb4f18
PA
24622011-03-18 Pedro Alves <pedro@codesourcery.com>
2463
2464 * findvar.c (value_of_register): Mark the value as unavailable, if
2465 the register is unavailable.
2466 * frame.h (frame_register_unwind): New `unavailablep' parameter.
2467 (frame_register): New `unavailablep' parameter.
2468 (frame_register_read): Update comment.
2469 * frame.c (frame_register_unwind): New `unavailablep' parameter.
2470 Set it if the register is unavailable. If the register is
2471 unavailable, clear the output buffer.
2472 (frame_register): New `unavailablep' parameter. Pass it down.
2473 (frame_unwind_register): Adjust.
2474 (put_frame_register): Adjust.
2475 (frame_register_read): Adjust. Also return false if the register
2476 is not available.
2477 (frame_register_unwind_location): Adjust.
2478 * sentinel-frame.c (sentinel_frame_prev_register): If the register
2479 is unavailable, mark the value accordingly.
2480 * stack.c (frame_info): Handle unavailable registers.
2481
e69aa73e
PA
24822011-03-18 Pedro Alves <pedro@codesourcery.com>
2483
2484 * mi/mi-main.c (register_changed_p): Handle REG_UNAVAILABLE, and
2485 simplify, using regcache_cooked_read.
2486
05d1431c
PA
24872011-03-18 Pedro Alves <pedro@codesourcery.com>
2488
2489 * regcache.h (regcache_raw_read, regcache_raw_read_signed)
2490 (regcache_raw_read_unsigned, regcache_raw_read_signed)
2491 (regcache_raw_read_unsigned, regcache_raw_read_part)
2492 (regcache_cooked_read, regcache_cooked_read_signed)
2493 (regcache_cooked_read_unsigned, regcache_cooked_read_part)
2494 (regcache_cooked_read_ftype): Change return to enum
2495 register_status.
2496 * regcache.c: Include exceptions.h
2497 (regcache_save): Adjust to handle REG_UNAVAILABLE registers.
2498 (do_cooked_read): Change return to enum register_status. Always
2499 forward to regcache_cooked_read.
2500 (regcache_raw_read): Change return to enum register_status. If
2501 the register is not REG_VALID, memset the buffer. Return the
2502 register's status.
2503 (regcache_raw_read_signed): Handle non-REG_VALID registers and
2504 return the register's status.
2505 (regcache_raw_read_unsigned): Ditto.
2506 (regcache_cooked_read): Change return to enum register_status.
2507 Assert that with read-only regcaches, the register's status must
2508 be known. If the regcache is read-only, and the register is not
2509 REG_VALID, memset the buffer. Return the register's status.
2510 (regcache_cooked_read_signed): Change return to enum
2511 register_status. Handle non-REG_VALID registers and return the
2512 register's status.
2513 (regcache_cooked_read_unsigned): Change return to enum
2514 register_status. Handle non-REG_VALID registers and return the
2515 register's status.
2516 (regcache_xfer_part, regcache_raw_read_part)
2517 (regcache_cooked_read_part): Change return to enum
2518 register_status. Return the register's status.
2519 (regcache_read_pc): Throw NOT_AVAILABLE_ERROR if the register is
2520 unavailable.
2521 (regcache_dump): Handle unavailable cooked registers.
2522 * frame.c (do_frame_register_read): Adjust interface to match
2523 regcache_cooked_read_ftype.
2524 * gdbarch.sh (pseudo_register_read): Change return to enum
2525 register_status.
2526 * gdbarch.h, gdbarch.c: Regenerate.
2527
2528 * i386-tdep.h (i386_pseudo_register_read): Change return to enum
2529 register_status.
2530 * i386-tdep.c (i386_pseudo_register_read): Change return to enum
2531 register_status. If reading a raw register indicates the raw
2532 register is not valid, return the raw register's status,
2533 otherwise, return REG_VALID.
2534 * amd64-tdep.c (amd64_pseudo_register_read): Change return to enum
2535 register_status. Handle non-REG_VALID raw registers and return
2536 the register's status.
2537 * arm-tdep.c (arm_neon_quad_read)
2538 (arm_pseudo_read): Change return to enum register_status. Handle
2539 non-REG_VALID raw registers and return the register's status.
2540 * avr-tdep.c (avr_pseudo_register_read): Ditto.
2541 * frv-tdep.c (frv_pseudo_register_read): Ditto.
2542 * h8300-tdep.c (h8300_pseudo_register_read): Ditto.
2543 * hppa-tdep.c (hppa_pseudo_register_read): Ditto.
2544 * m32c-tdep.c (m32c_move_reg_t): Change return to enum
2545 register_status.
2546 (m32c_raw_read, m32c_raw_write, m32c_banked_read)
2547 (m32c_banked_write, m32c_sb_read, m32c_sb_write, m32c_part_read)
2548 (m32c_part_write, m32c_cat_read, m32c_cat_write)
2549 (m32c_r3r2r1r0_read, m32c_r3r2r1r0_write)
2550 (m32c_pseudo_register_read): Change return to enum
2551 register_status. Adjust.
2552 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Change return to
2553 enum register_status. Return the register's status.
2554 * mep-tdep.c (mep_pseudo_cr32_read): Change return to enum
2555 register_status. Return the register's status.
2556 (mep_pseudo_cr64_read, mep_pseudo_register_read): Ditto.
2557 * mips-tdep.c (mips_pseudo_register_read): Ditto.
2558 * mt-tdep.c (mt_pseudo_register_read): Ditto.
2559 * rs6000-tdep.c (move_ev_register_func): New typedef.
2560 (e500_move_ev_register): Use it. Change return to enum
2561 register_status. Return the register's status.
2562 (do_regcache_raw_read): New function.
2563 (do_regcache_raw_write): New function.
2564 (e500_pseudo_register_read): Change return to enum
2565 register_status. Return the register's status. Use
2566 do_regcache_raw_read.
2567 (e500_pseudo_register_write): Adjust. Use do_regcache_raw_write.
2568 (dfp_pseudo_register_read): Change return to enum register_status.
2569 Return the register's status.
2570 (vsx_pseudo_register_read): Ditto.
2571 (efpr_pseudo_register_read): Ditto.
2572 (rs6000_pseudo_register_read): Ditto.
2573 * s390-tdep.c (s390_pseudo_register_read): Change return to enum
2574 register_status. Return the register's status.
2575 * sh64-tdep.c (pseudo_register_read_portions): New function.
2576 (sh64_pseudo_register_read): Change return to enum
2577 register_status. Use pseudo_register_read_portions. Return the
2578 register's status.
2579 * ia64-tdep.c (ia64_pseudo_register_read): Change return to enum
2580 register_status. Return the register's status.
2581 * sh-tdep.c (pseudo_register_read_portions): New function.
2582 (sh_pseudo_register_read): Change return to enum register_status.
2583 Use pseudo_register_read_portions. Return the register's status.
2584 * sparc-tdep.c (sparc32_pseudo_register_read): Change return to
2585 enum register_status. Return the register's status.
2586 * sparc64-tdep.c (sparc64_pseudo_register_read): Ditto.
2587 * spu-tdep.c (spu_pseudo_register_read_spu)
2588 (spu_pseudo_register_read): Ditto.
2589 * xtensa-tdep.c (xtensa_register_read_masked)
2590 (xtensa_pseudo_register_read): Ditto.
2591 * bfin-tdep.c (bfin_pseudo_register_read): Ditto.
2592
e10abd8f
PM
25932011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2594
2595 * python/py-value.c (valpy_getitem): Fix formatting of error function
2596 call.
2597
7ea6d463
PM
25982011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2599
2600 ARI fixes: Add missing internationalization markups throughout
2601 C source files.
2602 * darwin-nat-info.c: Ditto.
2603 * record.c: Ditto.
2604 * remote.c: Ditto.
2605 * mi/mi-main.c: Ditto.
2606
001083c6
PM
26072011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2608
2609 ARI fixes: Add missing internationalization markups throughout
2610 yacc files.
2611 * c-exp.y: Ditto.
2612 * cp-name-parser.y: Ditto.
2613 * f-exp.y: Ditto.
2614 * m2-exp.y: Ditto.
2615 * objc-exp.y: Ditto.
2616 * p-exp.y: Ditto.
2617
4f1cdeec
PM
26182011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2619
2620 ARI fixes: Messages should have no trailing new lines.
2621 * darwin-nat.c (mach_check_error): Remove trailing new line from
2622 warning function call message.
2623 * record.c (bfdcore_read): Idem for error call.
2624
28e698f1
PM
26252011-03-18 Pierre Muller <muller@ics.u-strasbg.fr>
2626
2627 * common/signals.c (target_signal_from_host): Add _ markup to error
2628 function call message.
2629 (target_signal_to_host): Add _ markup and remove trailing new line
2630 from warning call message.
2631 (target_signal_from_command): Add _ markup to error function call
2632 message.
2633
99c3dc11
PM
26342011-03-18 Phil Muldoon <pmuldoon@redhat.com>
2635
f33edef8 2636 PR python/12149
99c3dc11
PM
2637
2638 * python/python.c (gdbpy_write): Accept a stream argument and
2639 operate to the appropriate stream.
2640 (gdbpy_flush): Likewise.
2641 (_initialize_python): Add stream constants.
2642 (finish_python_initialization): Add GdbOutputErrorFile class.
2643
c20800be
KY
26442011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2645
2646 * MAINTAINERS: Add myself as a write-after-approval maintainer.
2647
f4a1794a
KY
26482011-03-18 Kwok Cheung Yeung <kcy@codesourcery.com>
2649
2650 * amd64-tdep.c (amd64_relocate_instruction): Fix ordering of arguments
f33edef8
PP
2651 to store_signed_integer. Add debug message when relocating CALL
2652 instructions. Fix formatting of debug message.
2653 * i386-tdep.c (i386_relocate_instruction): Ditto.
f4a1794a 2654
d4862372
JB
26552011-03-17 Joel Brobecker <brobecker@gnat.com>
2656
2657 * target.h (struct target_ops): Remove to_lookup_symbol field.
2658 (target_lookup_symbol): Delete macro.
2659 * target.c (nosymbol, debug_to_lookup_symbol): Delete.
2660 (update_current_target, setup_target_debug): Remove handling
2661 of to_lookup_symbol target_ops field.
2662 * ada-tasks.c (get_known_tasks_addr): Remove use of
2663 target_lookup_symbol.
2664 * coffread.c (coff_symtab_read): Likewise.
2665 * dbxread.c (read_dbx_symtab): Ditto.
2666
d645e32e
JB
26672011-03-17 Joel Brobecker <brobecker@gnat.com>
2668
2669 PR gdb/12116:
2670 * configure.ac: Add getthrds declaration check.
2671 * configure, config.in: Regenerate.
2672 * aix-thread.c (getthrds): Declare only if not already declared
2673 in procinfo.h. More declaration out of get_signaled_thread to
2674 global scope.
2675
29703da4
PM
26762011-03-17 Phil Muldoon <pmuldoon@redhat.com>
2677
2678 * python/py-symtab.c: Populate symtab_object_methods,
2679 sal_object_methods.
2680 (stpy_is_valid): New function.
2681 (salpy_is_valid): Ditto.
2682 * python/py-symbol.c: Declare symbol_object_methods. Populate.
2683 (sympy_is_valid): New function.
2684 * python/py-objfile.c: Declare objfile_object_methods. Populate.
2685 (objfpy_is_valid): New function.
2686 * python/py-inferior.c: Populate inferior_object_methods.
2687 (infpy_is_valid): New function.
2688 * python/py-infthread.c: Populate thread_object_methods.
2689 (thpy_is_valid): New function.
2690 * python/py-block.c: Declare block_object_methods. Populate. Declare
2691 block_iterator_object_methods. Populate.
2692 (blpy_is_valid): New function.
2693 (blpy_iter_is_valid): Ditto.
2694
c00f8484
KS
26952011-03-16 Keith Seitz <keiths@redhat.com>
2696
2697 * linespec.c (find_methods): Canonicalize NAME before looking
2698 up the symbol.
2699 (name_end): New function.
2700 (keep_name_info): New function.
2701 (decode_line_1): Use keep_name_info.
2702 (decode_compound): Likewise.
2703 * cli/cli-utils.h (remove_trailing_whitespace): New function.
2704 * cli/cli-utils.c (remove_trailing_whitespace): Likewise.
2705
2706 PR c++/12273
2707 * linespec.c (locate_first_half): Keep overload information, too.
2708 (decode_compound): Use a string to represent break characters
2709 to escape the loop.
2710 If P points to a break character, do not increment it.
2711 For C++ and Java, keep overload information and relevant keywords.
2712 If we cannot find a symbol, search the minimal symbols.
2713
2714 PR c++/11734
2715 * linespec.c (decode_compound): Rename SAVED_ARG to
2716 THE_REAL_SAVED_ARG.
2717 Make a copy of THE_REAL_SAVED_ARG in SAVED_ARG and strip
2718 single-quotes.
2719 Pass a valid block to lookup_symbol.
2720 (lookup_prefix_sym): Likewise.
2721 (find_method): Construct search name based on SYM_CLASS instead
2722 of SAVED_ARG.
2723 * psymtab.c (lookup_partial_symbol): Add language parameter.
2724 (lookup_symbol_aux_psymtabs): Likewise.
2725 Don't assume that the psymtab we found was the right one. Search
2726 for the desired symbol in the symtab to be certain.
2727 (psymtab_search_name): New function.
2728 (lookup_partial_symbol): Use psymtab_search_name.
2729 Add language parameter.
2730 (read_symtabs_for_function): Add language parameter and pass to
2731 lookup_partial_symbol.
2732 (find_symbol_file_from_partial): Likewise.
2733
c91513d8
PP
27342011-03-16 Paul Pluzhnikov <ppluzhnikov@google.com>
2735
2736 PR gdb/12528
2737 * dwarf2read.c (noop_record_line): New function.
2738 (dwarf_decode_lines): Ignore line tables for GCd functions.
2739
b37520b6
PM
27402011-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
2741
2742 Fix ARI warnings about new lines at the end of messages, which
2743 are unneeded as there is a new line added at the end of the message
2744 automatically.
2745 * darwin-nat.c (darwin_stop_inferior): Ditto.
2746 * dec-thread.c (dec_thread_get_ada_task_ptid): Ditto.
2747 * dfp.c (decimal_to_number): Ditto.
2748 * exec.c (print_section_info): Ditto.
2749 * i386-darwin-nat.c (darwin_set_sstep): Ditto.
2750 * osdata.c (get_osdata): Ditto.
2751 * record.c (bfdcore_write): Ditto.
2752 * remote-mips.c (mips_readchar): Ditto.
2753 * remote.c (read_ptid): Ditto.
2754 * ser-mingw.c (ser_windows_raw): Ditto.
2755 * tracepoint.c (add_local_symbols): Ditto.
2756 * windows-nat.c (fake_create_process): Ditto.
2757
b08ee6a2
TT
27582011-03-16 Tom Tromey <tromey@redhat.com>
2759
2760 * tracepoint.c (stop_tracing): Don't declare.
2761 * event-top.c (after_char_processing_hook): Add `(void)'.
2762
9a6f1302
PM
27632011-03-16 Phil Muldoon <pmuldoon@redhat.com>
2764
2765 * NEWS: Add Parameter sub-classing description.
2766
7ceb86b1
KT
27672011-03-16 Kai Tietz <ktietz@redhat.com>
2768
2769 * MAINTAINERS: Update my e-mail address.
2770
efeff6cf
AT
27712011-03-15 Andreas Tobler <andreast@fgznet.ch>
2772
2773 * MAINTAINERS: Add myself for write after approval privileges.
2774
681c238c
MS
27752011-03-15 Michael Snyder <msnyder@vmware.com>
2776
f3df5b08
MS
2777 * frame.c (find_frame_sal): Assert sym is not null.
2778
13f6513c
MS
2779 * dbxread.c (process_one_symbol): Assert 'name' is not null.
2780
50412521
MS
2781 * objc-lang.c (selectors_info): Check strchr for null result.
2782
681c238c
MS
2783 * stabsread.c (define_symbol): Guard against bad stabstring input.
2784
6ced1581
PM
27852011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2786
2787 Remove trailing spaces and tabulations from pascal language
2788 support sources.
2789 p-exp.y: Ditto.
2790 p-lang.c: Ditto.
2791 p-lang.h: Ditto.
2792 p-valprint.c: Ditto.
2793
9373cf26
JK
27942011-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 * dwarf2read.c (dwarf2_get_pc_bounds): Require HIGH strictly higher
2797 than LOW. Comment it.
2798 (read_partial_die): Call complaint for inappropriate zero LOWPC or
2799 HIGHPC not strictly higher than LOWPC.
2800
9a1edae6
PM
28012011-03-15 Pierre Muller <muller@ics.u-strasbg.fr>
2802
2803 Fix formatting of function declarations returning a pointer in
2804 previous commit.
2805 * varobj.c (varobj_add_child): Ditto.
2806 * hppa-tdep.h (hppa_init_objfile_priv_data): Ditto.
2807 * inferior.h (get_displaced_step_closure_by_addr): Ditto.
2808
24e9cda0
UW
28092011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
2810
2811 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Add support
2812 for the "generic" vector ABI used with GCC 4.3 and later.
2813 (ppc64_sysv_abi_return_value): Likewise.
2814
28152011-03-15 Ulrich Weigand <uweigand@de.ibm.com>
81b4675a
UW
2816
2817 * infcall.c (call_function_by_hand): Function return value is
2818 always a non_lval, even when using struct_return.
2819
c9174737
PA
28202011-03-15 Pedro Alves <pedro@codesourcery.com>
2821
2822 * printcmd.c (ALL_DISPLAYS_SAFE): New.
2823 (map_display_numbers): New.
2824 (do_delete_display): New.
2825 (undisplay_command): Use map_display_numbers.
2826 (do_enable_disable_display): New.
2827 (enable_disable_display_command): New function.
2828 (enable_display): Delete.
2829 (enable_display_command): New.
2830 (disable_display_command): Reimplement.
2831 (_initialize_printcmd): Adjust "enable display" command to use
2832 `enable_display_command' as callback.
2833
350c6c65
PM
28342011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2835
2836 * NEWS: Add Python breakpoint 'stop' operation.
2837
824446ad
PM
28382011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2839
2840 * NEWS: Delete duplicate entry. Fix typo.
2841
2021ad3a
PM
28422011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2843
2844 Fix ARI warning about function names in first column.
2845 Put prototype declaration on same line as return type.
2846 * objc-exp.y: Ditto.
2847 * p-exp.y: Ditto.
2848 * python/py-stopevent.h: Ditto.
2849 For long function names, split parameters to
2850 allow function name on same line as return type.
2851 * solib-pa64.c: Ditto.
2852 * varobj.c: Ditto.
2853 * varobj.h: Ditto.
2854 For long function declaration, use single line.
2855 * hppa-tdep.h: Ditto.
2856 * inferior.h: Ditto.
2857
7371cf6d
PM
28582011-03-14 Phil Muldoon <pmuldoon@redhat.com>
2859
2860 * python/python.h: Declare gdbpy_should_stop and
2861 gdbpy_breakpoint_has_py_cond.
2862 * python/python.c: Add python.h to includes. Remove python.h from
2863 HAVE_PYTHON definition
2864 (gdbpy_should_stop): New dummy function.
2865 (gdbpy_breakpoint_has_py_cond): New dummy function.
2866 * python/py-breakpoint.c (bppy_init): Rewrite to allow
2867 sub-classing capabilities.
2868 (gdbpy_should_stop): New function.
2869 (gdbpy_breakpoint_has_py_cond): New function.
2870 (local_setattro): New function.
2871 * breakpoint.c (condition_command): Add check for Python 'stop'
2872 operation.
2873 (bpstat_check_breakpoint_conditions): Execute Python 'stop'
2874 operation function as part of stop/continue tests.
2875
37b50a69
TT
28762011-03-14 Tom Tromey <tromey@redhat.com>
2877
2878 PR gdb/12576:
2879 * dwarf2loc.c (dwarf_expr_dwarf_call): Remove 'return'.
2880 (needs_frame_dwarf_call): Likewise.
2881
eeae04df
PM
28822011-03-14 Pierre Muller <muller@ics.u-strasbg.fr>
2883
2884 Fix ARI warning about functions without parameters that do not
2885 use (void).
2886 * breakpoint.c (all_tracepoints): Replace () by (void).
2887 * f-exp.y (match_string_literal): Ditto.
2888 (yylex): Ditto.
2889 * m2-exp.y (yylex): Ditto.
2890 * mep-tdep.c (current_me_module): Ditto.
2891 (current_options): Ditto.
2892 (current_cop_data_bus_width): Ditto.
2893 (current_cr_names): Ditto.
2894 (current_cr_is_float): Ditto.
2895 (current_ccr_names): Ditto.
2896 * objc-exp.y (yylex): Ditto.
2897 * p-exp.y (yylex): Ditto.
2898 * remote.c (send_interrupt_sequence): Ditto.
2899 * tracepoint.c (current_trace_status): Ditto.
2900 * python/py-evts.c (gdbpy_initialize_py_events): Ditto.
2901 * python/py-prettyprint.c (push_dummy_python_frame): Ditto.
2902
6dc3565d
MS
29032011-03-11 Michael Snyder <msnyder@vmware.com>
2904
1427fe5e
MS
2905 * cli/cli-decode.h (CMD_LIST_AMBIGUOUS): Define.
2906 * cli/cli-decode.c (lookup_cmd_1): Use CMD_LIST_AMBIGUOUS.
2907 (lookup_cmd): Test for CMD_LIST_AMBIGUOUS.
2908 * completer.c (complete_line_internal): Use CMD_LIST_AMBIGUOUS.
2909 * top.c (set_verbose): Use CMD_LIST_AMBIGUOUS.
2910
60bc018f
MS
2911 * event-loop-c (delete_async_signal_handler): Assert prev_ptr.
2912 (delete_async_event_handler): Ditto.
2913
f3be5b64
MS
2914 * python/py-breakpoint.c (bppy_set_condition): Stop memory leak.
2915
4c2d5724
MS
2916 * python/py-breakpoint.c (bppy_get_commands): Fix memory leak.
2917
6dc3565d
MS
2918 * top.c (set_verbose): Assert showcmd was found.
2919
4e6ca6d5
MG
29202011-03-11 Maxim Grigoriev <maxim2405@gmail.com>
2921
2922 * xtensa-tdep.c (warning_once): Correct style issues.
2923
815a83e4
YQ
29242011-03-11 Yao Qi <yao@codesourcery.com>
2925
2926 * arm-tdep.c (copy_ldr_str_ldrb_strb): Remove redundant statements.
2927
f2eb0bc8
AS
29282011-03-11 Andreas Schwab <schwab@redhat.com>
2929
2930 * common/aclocal.m4: Remove.
2931
b801de47
MG
29322011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2933
2934 * xtensa-tdep.c (windowing_enabled): Remove inline attribute.
2935 (xtensa_write_register, xtensa_read_register): Likewise.
2936 (xtensa_hextochar): Removed.
2937 (xtensa_init_reggroups): Replace xtensa_hextochar () by explicit code.
2938
dbab50de
MG
29392011-03-10 Maxim Grigoriev <maxim2405@gmail.com>
2940
2941 * xtensa-tdep.c (xtensa_c0reg_t): Update comments.
c2a6b390 2942 (xtensa_call0_frame_cache_t): Update comments. New fields added.
dbab50de
MG
2943 (xtensa_alloc_frame_cache): Add initialization for new fields.
2944 (xtensa_frame_cache): Change the way how call0_frame_cache () is called.
2945 (warning_once): New function.
2946 (xtensa_insn_kind): New item c0opc_and.
2947 (call0_classify_opcode): Add the case for AND instruction.
c2a6b390
MG
2948 (call0_track_op): Change arguments. New local variable litbase.
2949 Add the case to handle c0opc_and. Update algorithms for c0opc_mov,
2950 c0opc_l32r, c0opc_s32i to take into account dynamic stack adjustments
2951 in the prologue.
dbab50de 2952 Add cases for c0opc_l32e, c0opc_s32e, c0opc_rfwo, c0opc_rfwu.
c2a6b390 2953 (call0_analyze_prologue): Update the comments. Change arguments.
dbab50de
MG
2954 Add the variety of updates to handle extended prologues, which now can
2955 conduct dynamic stack adjustments.
2956 (call0_frame_cache): Likewise.
2957 (xtensa_skip_prologue): Update call0_analyze_prologue () function call.
2958 (xtensa_gdbarch_init): Initialize xtensa_session_once_reported.
2959
b2c04452
MS
29602011-03-10 Michael Snyder <msnyder@vmware.com>
2961
f8f67713
MS
2962 * tracepoint.c (cmd_qtv): Discard unused value 'packet'.
2963 (cmd_qtframe): Ditto.
2964 (cmd_qtbuffer): Ditto.
2965 (cmd_bigqtbuffer): Ditto.
2966
197f0a60
TT
29672011-03-10 Tom Tromey <tromey@redhat.com>
2968
2969 * tracepoint.c (trace_actions_command): Update.
2970 * thread.c (thread_apply_command): Update.
2971 * reverse.c (delete_bookmark_command): Update.
2972 (bookmarks_info): Update.
2973 * printcmd.c (undisplay_command): Update.
2974 * memattr.c (mem_enable_command): Update.
2975 (mem_disable_command): Update.
2976 (mem_delete_command): Update.
2977 * inferior.c (detach_inferior_command): Update.
2978 (kill_inferior_command): Update.
2979 (remove_inferior_command): Update.
2980 * cli/cli-utils.h (struct get_number_or_range_state): New.
2981 (init_number_or_range): Declare.
2982 (get_number_or_range): Update.
2983 * cli/cli-utils.c (init_number_or_range): New function.
2984 (get_number_or_range): Change 'pp' parameter to 'state'. Remove
2985 static variables.
2986 (number_is_in_list): Update.
2987 * breakpoint.h (get_tracepoint_by_number): Update.
2988 * breakpoint.c (map_breakpoint_numbers): Update for change to
2989 get_number_or_range.
2990 (find_location_by_number): Use get_number, not
2991 get_number_or_range.
2992 (trace_pass_set_count): New function.
2993 (trace_pass_command): Update for change to get_number_or_range.
2994 Rework loop logic.
2995 (get_tracepoint_by_number): Remove 'multi_p' parameter; add
2996 'state' parameter.
2997
ecec24e6
PM
29982011-03-10 Phil Muldoon <pmuldoon@redhat.com>
2999
3000 * python/py-param.c (add_setshow_generic): Add set/show callback
3001 parameters. Register Python object context.
3002 (get_show_value): New function.
3003 (get_set_value): New function.
3004 (call_doc_function): New function.
3005 (get_doc_string): Move behind get_show_value/get_set_value.
3006
6d6c6b1f
JK
30072011-03-10 Andreas Tobler <andreast-list@fgznet.ch>
3008
3009 * fbsd-nat.c (fbsd_make_corefile_notes): Constify local `fname'.
3010
68d6df83
MG
30112011-03-09 Maxim Grigoriev <maxim2405@gmail.com>
3012
dbab50de 3013 * xtensa-tdep.c (xtensa_read_register): Add comment.
68d6df83
MG
3014 (xtensa_write_register): Likewise.
3015 (xtensa_hextochar): Add comment and update to match coding conventions.
3016 (xtensa_frame_cache, xtensa_return_value): Follow coding conventions.
3017 (execute_l32e, execute_s32e, execute_code): Update comments.
3018 (xtensa_exception_handler_t): Update to match coding conventions.
3019 (xtensa_insn_kind): Likewise.
3020
85c9d6a6
MS
30212011-03-09 Michael Snyder <msnyder@vmware.com>
3022
3023 * mi-cmd-disas.c (mi_cmd_disassemble): Fix memory leak.
3024
91495617
PA
30252011-03-09 Pedro Alves <pedro@codesourcery.com>
3026
3027 * nto-tdep.c (nto_find_and_open_solib): Constify local `base'.
3028
eb8c0621
TT
30292011-03-09 Tom Tromey <tromey@redhat.com>
3030
3031 * thread.c (restore_selected_frame): Handle frame_level == -1.
3032 (make_cleanup_restore_current_thread): Use
3033 get_selected_frame_if_set.
3034 * frame.h (get_selected_frame_if_set): Declare.
3035 * frame.c (get_selected_frame_if_set): New function.
3036
9f37bbcc
PA
30372011-03-09 Pedro Alves <pedro@codesourcery.com>
3038
3039 * cli/cli-cmds.c (shell_escape): Use lbasename.
3040 * coffread.c (coff_start_symtab): Constify parameter.
3041 (complete_symtab): Constify `name' parameter.
3042 (coff_symtab_read): Constify `filestring' local.
3043 (coff_getfilename): Constify return and `result' local.
3044 Use lbasename.
3045 * fbsd-nat.c (fbsd_make_corefile_notes): Use lbasename.
3046 * linux-fork.c (info_checkpoints_command): Use lbasename.
3047 * linux-nat.c (linux_nat_make_corefile_notes): Use lbasename.
3048 * minsyms.c (lookup_minimal_symbol): Use lbasename.
3049 * nto-tdep.c (nto_find_and_open_solib): Use lbasename.
3050 * procfs.c (procfs_make_note_section): Use lbasename.
3051 * tui/tui-io.c (printable_part): Constity return and parameter.
3052 Use lbasename.
3053 (print_filename): Constify parameters, and local `s'.
3054 (tui_rl_display_match_list): Constify local `temp'.
3055
f8de3c55
JK
30562011-03-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3057
3058 Revert:
3059 2011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3060 Fix DWARF-3+ DW_AT_accessibility default assumption.
3061 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3062 cu->header.version >= 3.
3063
d9837b00
YQ
30642011-03-09 Yao Qi <yao@codesourcery.com>
3065
3066 * common/Makefile.in: Remove.
3067 * common/configure: Remove.
3068 * common/configure.ac: Remove.
3069
e637a4f5
YQ
30702011-03-09 Yao Qi <yao@codesourcery.com>
3071
3072 Revert:
3073 2011-02-11 Yao Qi <yao@codesourcery.com>
3074
3075 * common/Makefile.in: Add copyright header.
3076
3077 2011-02-11 Yao Qi <yao@codesourcery.com>
3078
3079 * Makefile.in: Remove signals.o from COMMON_OBS. Link
3080 libcommon.a.
3081 * configure.ac: Add common to sub dir.
3082 * configure: Regenerate.
3083
f976a05d
MG
30842011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3085
3086 * xtensa-tdep.c (call0_ret): New function.
3087 (xtensa_skip_prologue): Speed up analysis.
3088
57041825
MG
30892011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3090
3091 * xtensa-tdep.c (xtensa_register_reggroup_p): Count in all registers
3092 while executing MI command -data-list-changed-registers.
3093
08b9c608
MG
30942011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3095
3096 * xtensa-tdep.c (xtensa_read_register): New function.
3097 (xtensa_write_register): New function.
3098 (xtensa_find_register_by_name): New function.
3099 (xtensa_windowed_frame_cache): Update comments in type description.
3100 (xtensa_frame_cache): Likewise.
3101 (xtensa_window_interrupt_insn): New function.
3102 (xtensa_frame_cache): Add analysis for Xtensa Window Exception frames.
3103 (xtensa_insn_kind): Add new instructions.
3104 (rwx_special_register): New function.
3105 (call0_classify_opcode): Add new instructions to the analysis.
3106 (a0_saved, a7_saved, a11_saved): New variables.
3107 (a0_was_saved, a7_was_saved, a11_was_saved): New variables.
3108 (execute_l32e): New function.
3109 (execute_s32e): New function.
3110 (xtensa_exception_handler_t): New type.
3111 (execute_code): New function.
3112 (xtensa_window_interrupt_frame_cache): New function to conduct frame
3113 analysis for Xtensa Window Exception handlers.
3114
4d1acb11
MG
31152011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3116
98689b25
MG
3117 * xtensa-tdep.c (TX_PS): New.
3118 (windowing_enabled): Update to count for Call0 ABI.
3119 (xtensa_hextochar): New.
3120 (xtensa_init_reggroups): Make algorithm generic.
3121 (xtensa_frame_cache): Use TX_PS on Tiny Xtensa.
3122
31232011-03-08 Maxim Grigoriev <maxim2405@gmail.com>
3124
3125 * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): Update.
4d1acb11 3126
d3f323f3
MS
31272011-03-08 Michael Snyder <msnyder@vmware.com>
3128
3dcabaa8
MS
3129 * i386-tdep.c (i386_follow_jump): Check return value of
3130 target_read_memory.
3131 (i386_analyze_struct_return): Ditto.
3132 (i386_skip_probe): Ditto.
3133 (i386_match_insn): Ditto.
3134 (i386_skip_noop): Ditto.
3135 (i386_analyze_frame_setup): Ditto.
3136 (i386_analyze_register_saves): Ditto.
3137 (i386_skip_prologue): Ditto.
3138 (i386_skip_main_prologue): Ditto.
3139
13b3fd9b
MS
3140 * target.c (read_whatever_is_readable): Fix memory leak.
3141
d3f323f3
MS
3142 * i386-tdep.c (i386_process_record): Document fall through.
3143
421d5c74
JK
31442011-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3145
3146 Fix DWARF-3+ DW_AT_accessibility default assumption.
3147 * dwarf2read.c (dwarf2_add_field): Fix new_field->accessibility for
3148 cu->header.version >= 3.
3149
63154eca
PA
31502011-03-08 Pedro Alves <pedro@codesourcery.com>
3151
3152 * remote.c (remote_check_symbols): Skip if the target has no
3153 execution.
3154
f1a507a1
JB
31552011-03-08 Joel Brobecker <brobecker@adacore.com>
3156
3157 * target.c (read_whatever_is_readable): Reformat comment,
3158 with a minor typo fix. Minor reformatting of the code.
3159
36073a92
YQ
31602011-03-08 Yao Qi <yao@codesourcery.com>
3161
3162 * arm-tdep.c: Remove prototype declaration displaced_in_arm_mode.
3163 (displaced_read_reg): Add `dsc' parameter, remove `from' parameter.
3164 Use cached result instead of calling displaced_in_arm_mode again.
3165 (branch_write_pc, alu_write_pc, load_write_pc): Add `dsc' parameter.
3166 (displaced_write_reg, copy_preload, copy_preload_reg): Callers update.
3167 (cleanup_copro_load_store, copy_copro_load_store): Likewise.
3168 (cleanup_branch, copy_bx_blx_reg, copy_alu_imm): Likewise.
3169 (cleanup_alu_reg, copy_alu_reg, cleanup_alu_shifted_reg): Likewise.
3170 (copy_alu_shifted_reg, cleanup_load, cleanup_store): Likewise.
3171 (copy_extra_ld_st, copy_ldr_str_ldrb_strb): Likewise.
3172 (cleanup_block_load_all, cleanup_block_store_pc): Likewise.
3173 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3174 * arm-linux-tdep.c (arm_linux_copy_svc): Callers update.
3175 (arm_catch_kernel_helper_return): Likewise.
3176 * gdb/arm-tdep.h : Update function declarations.
3177
d3f323f3 31782011-03-07 Michael Snyder <msnyder@vmware.com>
e6040cbd 3179
e0e40094
MS
3180 * dwarf2loc.c (indirect_pieced_value): Assert 'piece' not null.
3181
0b2381f5
MS
3182 * ser-unix.c (hardwire_get_tty_state): Stop memory leak.
3183
0350914a
MS
3184 * mi/mi-cmd-env.c (_initialize_mi_cmd_env): Free environment.
3185
69feea6f
MS
3186 * elfread.c (elf_symtab_read): Stop memory leak.
3187
e6040cbd
MS
3188 * main.c (captured_main): Fix memory leak.
3189
052874e8
AS
31902011-03-07 Andreas Schwab <schwab@linux-m68k.org>
3191
3192 * ada-lang.c (compare_names): Call is_name_suffix with string1
3193 instead of string2.
3194
b11896a5
TT
31952011-03-07 Tom Tromey <tromey@redhat.com>
3196
3197 * xcoffread.c (xcoff_sym_fns): Update.
3198 * symfile.h (struct sym_fns) <sym_read_psymbols>: New field.
3199 (enum symfile_add_flags) <SYMFILE_NO_READ>: New constant.
3200 * symfile.c (syms_from_objfile): Handle SYMFILE_NO_READ.
3201 (symbol_file_add_with_addrs_or_offsets): Likewise.
3202 (reread_symbols): Handle OBJF_PSYMTABS_READ.
3203 * somread.c (som_sym_fns): Update.
3204 * psymtab.h (require_partial_symbols): Declare.
3205 * psymtab.c (require_partial_symbols): New function.
3206 (ALL_OBJFILE_PSYMTABS_REQUIRED): New macro.
3207 (ALL_OBJFILE_PSYMTABS): Undef.
3208 (ALL_PSYMTABS): Move from psympriv.h.
3209 (lookup_partial_symtab, find_pc_sect_psymtab)
3210 (lookup_symbol_aux_psymtabs, relocate_psymtabs)
3211 (find_last_source_symtab_from_partial)
3212 (forget_cached_source_info_partial)
3213 (print_psymtab_stats_for_objfile, read_symtabs_for_function)
3214 (expand_partial_symbol_tables, read_psymtabs_with_filename)
3215 (map_symbol_names_psymtab, map_symbol_filenames_psymtab)
3216 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
3217 (expand_symtabs_matching_via_partial, maintenance_info_psymtabs):
3218 Use ALL_OBJFILE_PSYMTABS_REQUIRED.
3219 * psympriv.h (ALL_PSYMTABS): Move to psymtab.c.
3220 * objfiles.h (OBJF_PSYMTABS_READ): New macro.
3221 * objfiles.c (objfile_has_partial_symbols): Handle lazily-read
3222 psymtabs.
3223 * mipsread.c (ecoff_sym_fns): Update.
3224 * machoread.c (macho_sym_fns): Update.
3225 * elfread.c (elf_symfile_read): Set up for lazy psymtab reading.
3226 (read_psyms): New function.
3227 (elf_sym_fns, elf_sym_fns_gdb_index): Update.
3228 (elf_sym_fns_lazy_psyms): New global.
3229 * dwarf2read.c (dwarf2_initialize_objfile): Don't call
3230 dwarf2_build_psymtabs.
3231 * dbxread.c (aout_sym_fns): Update.
3232 * coffread.c (coff_sym_fns): Update.
3233
fda326dd
TT
32342011-03-07 Tom Tromey <tromey@redhat.com>
3235
3236 * infrun.c (print_exited_reason): Include inferior id and pid in
3237 message.
3238
aeaec162
TT
32392011-03-07 Tom Tromey <tromey@redhat.com>
3240
3241 * target.h (struct target_ops) <to_has_execution>: Add ptid_t
3242 parameter.
3243 (target_has_execution_1): Update.
3244 (target_has_execution_current): Declare.
3245 (target_has_execution): Call target_has_execution_current.
3246 (default_child_has_execution): Update.
3247 * target.c (default_child_has_execution): Add 'the_ptid'
3248 parameter.
3249 (target_has_execution_1): Likewise.
3250 (target_has_execution_current): New function.
3251 (add_target): Update.
3252 (init_dummy_target): Update.
3253 * remote-m32r-sdi.c (m32r_has_execution): New function.
3254 (init_m32r_ops): Use it.
3255 * record.c (record_core_has_execution): Now static. Add
3256 'the_ptid' parameter.
3257 * inferior.c (have_live_inferiors): Don't save current thread.
3258 Use target_has_execution_1.
3259
08e14083
YQ
32602011-03-07 Yao Qi <yao@codesourcery.com>
3261
3262 * Makefile.in (aclocal_m4_deps): Remove gnulib/m4/memcmp.m4.
3263
c05d19c5
JB
32642011-03-07 Joel Brobecker <brobecker@adacore.com>
3265
3266 * elfread.c (elf_symtab_read): Minor reformatting.
3267
3e6ef9e4
JB
32682011-03-07 Joel Brobecker <brobecker@adacore.com>
3269
3270 * objc-lang.c (selectors_info): Minor reformatting.
3271
dbb8534f
JB
32722011-03-07 Joel Brobecker <brobecker@adacore.com>
3273
3274 * ada-lang.c (compare_names): Add FALLTHROUGH comment.
3275
dd70cc93
JB
32762011-03-07 Joel Brobecker <brobecker@adacore.com>
3277 Michael Snyder <msnyder@vmware.com>
3278
3279 * ada-valprint.c (ada_val_print_array): Move the declaration of
3280 "byte_order" and "elttype" inside the block where these variables
3281 are actually used. Remove some special handling for the case
3282 where "elttype" and "eltlen" are null. Replace by a comment
3283 and a couple of assertion checks.
3284
b27cf2b3
MS
32852011-03-05 Michael Snyder <msnyder@vmware.com>
3286
3287 * source.c (add_path): Replace semicolon at end of block.
3288 * dwarf2expr.c (execute_stack_op): Ditto.
3289
5387a0c6
MF
32902011-03-05 Mike Frysinger <vapier@gentoo.org>
3291
3292 * bfin-tdep.c: Include sim-regno.h and gdb/sim-bfin.h.
3293 * configure.tgt (bfin-*-*linux*): Define gdb_sim.
3294 (bfin-*-*): Likewise.
3295
e3aa49af
MS
32962011-03-05 Michael Snyder <msnyder@vmware.com>
3297
82ae4854
MS
3298 * dwarf2expr.c (execute_stack_op): Delete superfluous semicolon.
3299 * mdebugread.c (parse_symbol): Ditto.
3300 * parse.c (parse_exp_in_context): Ditto.
3301 * source.c (add_path): Ditto.
3302 * utils.c (gnu_debuglink_crc32): Ditto.
3303 * varobj.c (variable_language): Ditto.
3304
e3aa49af
MS
3305 * linux-tdep.c (linux_get_siginfo_type): Stop memory leak.
3306
154f592e
MS
33072011-03-04 Michael Snyder <msnyder@vmware.com>
3308
da3ecdc6
MS
3309 * linux-fork.c (inferior_call_waitptid): Fix copy/paste error.
3310
9cc89665
MS
3311 * symfile.c (simple_overlay_update): Check for null return value
3312 from lookup_minimal_symbol.
3313
154f592e
MS
3314 * xml-syscall.c (syscall_start_syscall): Assert name is non null.
3315
63ffa6ee
TJB
33162011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3317
3318 * eval.c (parse_and_eval_address_1): Remove function.
3319 * linespec.c (decode_indirect): Call parse_to_comma_and_eval
3320 instead of parse_and_eval_address_1.
3321 * value.h (parse_and_eval_address_1): Remove prototype.
3322
a17d146e
MS
33232011-03-04 Michael Snyder <msnyder@vmware.com>
3324
3325 * remote.c (putpkt_binary): Document that case stmt falls through.
3326
1a6a67de
TJB
33272011-03-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
3328
3329 * breakpointc (print_it_typical): Move NULL check from here...
3330 (print_bp_stop_message): ... to here.
3331
488919c4
MS
33322011-03-04 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
3333
3334 * breakpoint.c (enable_command): Use break instead of continue,
3335 and fill in a missing break.
3336 (disable_command): Ditto.
3337
1e182ce8
UW
33382011-03-04 Ulrich Weigand <ulrich.weigand@linaro.org>
3339
3340 * inflow.c (terminal_init_inferior_with_pgrp): Copy ttystate.
3341 (terminal_save_ours): Remove misleading comment.
3342 (inflow_inferior_data_cleanup): Free ttystate.
3343 (inflow_inferior_exit): Likewise.
3344 (copy_terminal_info): Copy ttystate.
3345
3346 * serial.c (serial_copy_tty_state): New function.
3347 * serial.h (serial_copy_tty_state): Add prototype.
3348 (struct serial_ops): Add copy_tty_state callback.
3349 * ser-base.c (ser_base_copy_tty_state): New function.
3350 * ser-base.h (ser_base_copy_tty_state): Add prototype.
3351 * ser-go32.c (dos_copy_tty_state): New function.
3352 (dos_ops): Install copy_tty_state callback.
3353 * ser-mingw.c (_initialize_ser_windows): Likewise.
3354 * ser-pipe.c (_initialize_ser_pipe): Likewise.
3355 * ser-unix.c (hardwire_copy_tty_state): New function.
3356 (_initialize_ser_hardwire): Install it.
3357
b2c5f112
MS
33582011-03-04 Michael Snyder <msnyder@vmware.com>
3359
2abae994
MS
3360 * breakpoint.c (create_breakpoint): Add missing break statement.
3361
7f5936f9
MS
3362 Reverting this patch:
3363 * infcall.c (call_function_by_hand): Add break statements for lint.
3364
b2c5f112
MS
3365 Reverting this patch:
3366 * cli/cli-script.c (script_from_file): Add break for lint.
3367
42b1321c
MS
33682011-03-04 Michael Snyder <msnyder@vmware.com>
3369
3370 * solib.c (reload_shared_libraries_1): Close memory leak.
3371
3e2a0cee
TT
33722011-03-03 Tom Tromey <tromey@redhat.com>
3373
3374 PR gdb/12538:
3375 * dwarf2read.c (process_psymtab_comp_unit): Handle case where
3376 DW_STRING is NULL.
3377
58397cb7
MS
33782011-03-03 Michael Snyder <msnyder@vmware.com>
3379
2e3fd767
MS
3380 * remote-fileio.c (remote_fileio_func_fstat): Initialize all
3381 fields of struct 'st' to zero.
3382
58397cb7
MS
3383 * tui/tui-winsource.c (tui_update_source_window_as_is): Initialize
3384 sal.pspace before calling set_current_source_symtab_and_line.
3385
ced54c8f
YQ
33862011-03-03 Yao Qi <yao@codesourcery.com>
3387
3388 * Makefile.in (configure-common): Remove. Let Makefile
3389 in dir common to rebuild itself.
3390 (common/Makefile): Likewise.
3391
3351ea09
JB
33922011-03-03 Joel Brobecker <brobecker@adacore.com>
3393
3394 * utils.c (parse_escape): Add i18n markup in error message.
3395
bf9f652a
YQ
33962011-03-03 Yao Qi <yao@codesourcery.com>
3397
3398 * gdb/arm-tdep.c (shifted_reg_val): Replace magic number 15 with
3399 ARM_PC_REGNUM.
3400 (thumb_get_next_pc_raw, arm_get_next_pc_raw): Likewise.
3401 (displaced_write_reg, displaced_read_reg): Likewise.
3402 (copy_ldr_str_ldrb_strb, cleanup_block_load_all): Likewise.
3403 (cleanup_block_load_pc, copy_block_xfer): Likewise.
3404 (cleanup_branch): Replace magic number 14 and 15 with
3405 ARM_LR_REGNUM and ARM_PC_REGNUM respectively.
3406
d42de051
MS
34072011-03-02 Michael Snyder <msnyder@vmware.com>
3408
240f9570
MS
3409 * maint.c (maintenance_do_deprecate): No need to check for NULL.
3410
10dd8b54
MS
3411 * cli/cli-script.c (script_from_file): Add break for lint.
3412
b98bd911
MS
3413 * mdebugread.c (parse_partial_symbols): Fix indent.
3414
3494b66d
MS
3415 * target-descriptions.c (tdesc_gdb_type): No need to call
3416 xstrdup, callee saves a copy.
3417
daac021a
MS
3418 * printcmd.c (print_scalar_formatted): Use strncpy for safety.
3419
c38d16a7
MS
3420 * infcall.c (call_function_by_hand): Add break statements for lint.
3421
905b671b
MS
3422 * utils.c (parse_escape): Escape the escape char.
3423
f2eb0bc8 3424 * python/py-inferior.c (build_inferior_list): Error out if
2d565757
MS
3425 PyList_Append fails.
3426 (gdbpy_inferiors): Error out if build_inferior_list fails.
3427
8c6a60d1
MS
3428 * linux-nat.c (linux_nat_xfer_partial): Preserve errno around
3429 a function call.
3430
d42de051
MS
3431 * record.c (record_restore): Move printf to before error return.
3432
4db71c0b
YQ
34332011-03-02 Yao Qi <yao@codesourcery.com>
3434
3435 * arm-tdep.h (struct displaced_step_closure): Add two new fields
3436 is_thumb and insn_size.
3437 * arm-tdep.c (displaced_read_reg): Adjust correct pipeline offset
3438 on both ARM and Thumb mode.
3439 (arm_process_displaced_insn): Set is_thumb and insn_size.
3440 (arm_displaced_init_closure): Handle both 16-bit and 32-bit.
3441 (arm_displaced_step_fixup): Likewise.
3442
a9dc8dcc
MS
34432011-03-01 Michael Snyder <msnyder@vmware.com>
3444
53624a93
MS
3445 * cli/cli-dump.c (dump_bfd_file): Check error return and warn.
3446
77766669
MS
3447 * jv-lang.c (evaluate_subexp_java): Conditional can't be true.
3448
62d5b8da
MS
3449 * dwarf2read.c (dwarf2_compute_name): NAME cannot be null here.
3450
5e9e105f
MS
3451 * cli/cli-dump.c (restore_binary_file): Validate ftell return value.
3452
dc19db01
MS
3453 * ada-lang.c (ada_make_symbol_completion_list): Replace malloc
3454 with xmalloc.
3455
5ce64950
MS
3456 * ada-lang.c (aggregate_assign_others): Rename inner scope variable
3457 which shadows function parameter.
3458
a0aa2878
MS
3459 * tracepoint.c (create_tsv_from_upload): Superfluous call
3460 to xstrdup. Callee already calls xstrdup.
3461
e325fb69
MS
3462 * linespec.c (decode_line_1): Remove unnecessary null check.
3463
21cbba77
MS
3464 * tracepoint.c (scope_info): Fix mem leak, remove underused
3465 variable.
3466
63360adc
MS
3467 * python/py-prettyprint.c (apply_val_pretty_printer): Remove
3468 superfluous null check.
3469
18ea20ac 3470 * std-regs.c (value_of_builtin_frame_pc_reg): Frame can't be null.
23ce9890 3471 (value_of_builtin_frame_fp_reg): Ditto.
18ea20ac 3472
d014929c
MS
3473 * event-top.c (display_gdb_prompt): Remove superfluous null check.
3474
6e9130cf
MS
3475 * python/py-prettyprint.c (apply_val_pretty_printer): VAL may
3476 be null.
3477
5f01dbc0
MS
3478 * linespec.c (decode_line_1): Check for null before dereference.
3479
d684ab85
MS
3480 * reverse.c (record_restore): Move null-check to before pointer
3481 dereference.
3482
bfffb7e3
MS
3483 * python/py-utils.c (gdbpy_obj_to_string): Delete unused variable.
3484
a9dc8dcc
MS
3485 * objc-lang.c (selectors_info): Add explanitory comment.
3486 (classes_info): Ditto.
3487
478fd957
UW
34882011-03-01 Ulrich Weigand <ulrich.weigand@linaro.org>
3489
3490 * arm-linux-tdep.c (ARM_LDR_PC_SP_4): Add define.
3491 (arm_linux_restart_syscall_init): Handle both on-stack and in-kernel
3492 versions of the trampoline. Handle Thumb vs. ARM addresses.
3493 (arm_kernel_linux_restart_syscall_tramp_frame): New global.
3494 (arm_linux_init_abi): Install it.
3495 * arm-tdep.c (arm_psr_thumb_bit): Make global.
3496 * arm-tdep.c (arm_psr_thumb_bit): Add prototype.
3497
0480cefa
MS
34982011-02-28 Michael Snyder <msnyder@vmware.com>
3499
ac50ab3b
MS
3500 * ui-out.c (ui_out_field_core_addr): Make local char buffer
3501 a little bigger, to avoid possibility of an overflow.
3502
f63fbe86
MS
3503 * breakpoint.c (breakpoint_adjustment_warning): Make local char
3504 buffers a little bigger, to avoid possibility of an overflow.
3505
9e91a352
MS
3506 * coffread.c (coff_getfilename): Add check to avoid overflow.
3507
f2eb0bc8 3508 * objc-lang.c (selectors_info): Add a small safety margin to
28288541
MS
3509 avoid overflow.
3510 (classes_info): Error out on too long REGEXP.
3511
098ab512
MS
3512 * infrun.c (handle_inferior_event): Remove unused function call.
3513
bcbd1de9
MS
3514 * fork-child.c (fork_inferior): Remove ifdef'd code and
3515 unused variable.
3516
2e456570
MS
3517 * linux-thread-db.c (attach_thread): Discard unused value.
3518
14571dad
MS
3519 * linux-nat.c (linux_handle_extended_wait): Delete unused variable.
3520
a9cbf802
MS
3521 * remote.c (remote_get_noisy_reply): Discard unused value.
3522 (remote_vcont_resume): Ditto.
3523 (remote_stop_ns): Ditto.
3524
5715d26e
MS
3525 * linespec.c (decode_objc): Delete unused variable.
3526
4a9bca80
MS
3527 * tui/tui-regs.c (tui_register_format): Delete unused variable.
3528
f47fb265
MS
3529 * dwarf2read.c (add_partial_symbol): Discard unused values.
3530 (read_base_type): Delete unused variable.
3531
e81cff30
MS
3532 * dbxread.c (read_dbx_symtab): Discard unused value.
3533
262acaeb
MS
3534 * eval.c (evaluate_subexp_standard): Delete unused variable,
3535 and discard unused values.
3536
df983543
MS
3537 * infcmd.c (_initialize_infcmd): Discard unused values.
3538
89acf84d
MS
3539 * stabsread.c (rs6000_builtin_type): Missing break statement.
3540
ab8b8aca
MS
3541 * dbxread.c (process_one_symbol): Discard unused value.
3542
6b4511ab
MS
3543 * coffread.c (coff_end_symtab): Delete unused variable.
3544
e8e80198
MS
3545 * dwarf2read.c (dw2_get_file_names): Discard unused value.
3546 (dwarf2_add_typedef): Delete unused variable.
3547 (read_namespace): Ditto.
3548 (dwarf_decode_macros): Ditto.
3549
976aa66e
MS
3550 * m2-lang.c (evaluate_subexp_modula2): Discard unused variable.
3551
5b92b49f
MS
3552 * opencl-lang.c (evaluate_subexp_opencl): Discard unused value.
3553
91e8df85
MS
3554 * p-valprint.c (pascal_val_print): Discard unused value.
3555
899500d6
MS
3556 * utils.c (nquery): Call va_end before return;
3557 (yquery): Ditto.
3558 (query): Ditto.
3559
0480cefa
MS
3560 * proc-service.c (ps_plog): Call va_end before return.
3561
fb6a3ed3
TT
35622011-02-28 Tom Tromey <tromey@redhat.com>
3563
3564 * python/python.c (gdbpy_value_cst): New global.
3565 (_initialize_python): Initialize it.
3566 * python/python-internal.h (gdbpy_value_cst): Declare.
3567 * python/py-value.c (convert_value_from_python): Use
3568 gdbpy_value_cst.
3569
c05202a1
MS
35702011-02-28 Michael Snyder <msnyder@vmware.com>
3571
e463f587
MS
3572 * python/py-cmd.c (cmdpy_init): Fix memory leak.
3573
c38eea1a
MS
3574 * breakpoint.c (catch_syscall_completer): Free malloced list.
3575
3ef09ab5
MS
3576 * jv-lang.c (java_primitive_type_from_name): Add missing break.
3577
8f9a01ee
MS
3578 * opencl-lang.c (lval_func_check_validity): Rename inner variables.
3579 (lval_func_check_synthetic_pointer): Ditto.
3580 (lval_func_free_closure): Fix use-after-free.
c05202a1 3581
477d0d57
TT
35822011-02-28 Tom Tromey <tromey@redhat.com>
3583
3584 * psymtab.c (expand_partial_symbol_tables): Use
3585 ALL_OBJFILE_PSYMTABS.
3586
20937029
JK
35872011-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3588
3589 * objc-lang.c (selectors_info): Error on too long REGEXP.
3590
907b7f4f
MS
35912011-02-28 Michael Snyder <msnyder@vmware.com>
3592
92e96192
MS
3593 * python/py-param.c (set_parameter_value): Add missing
3594 break statement.
3595
907b7f4f
MS
3596 * linux-record.c (record_linux_system_call): Add missing
3597 break statement.
3598
12c5a436
UW
35992011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3600
3601 * breakpoint.c (print_one_breakpoint_location): Remove unused
3602 argument PRINT_ADDRESS_BITS. Update callers.
3603 (print_one_breakpoint): Likewise.
3604
170b53b2
UW
36052011-02-28 Ulrich Weigand <uweigand@de.ibm.com>
3606
3607 * breakpoint.c (wrap_indent_at_field): New function.
3608 (print_breakpoint_location): Use it instead of WRAP_INDENT argument.
3609 Allocate ui_stream locally instead of using STB argument.
3610 (print_one_breakpoint_location): Update call.
3611 * ui-out.c (ui_out_query_field): New function.
3612 * ui-out.h (ui_out_query_field): Add prototype.
3613
8ab1f94d
JB
36142011-02-28 Joel Brobecker <brobecker@adacore.com>
3615
3616 From Michael Snyder <msnyder@vmware.com>
3617 * ada-exp.y (write_object_renaming): Add FALLTHROUGH comment.
3618
7d488639
MS
36192011-02-27 Michael Snyder <msnyder@vmware.com>
3620
ae179fba
MS
3621 * objc-lang.c (selectors_info): Prevent string overrun.
3622
086dbf66
MS
3623 * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
3624 error in strncpy.
3625
f2eb0bc8 3626 * symtab.c (rbreak_command): Move variable 'file_name' to
9c1e305a
MS
3627 outer scope.
3628
7d488639
MS
3629 * d-valprint.c (dynamic_array_type): Avoid shadowing a function
3630 param with a local variable of the same name.
3631
3bd0f5ef
MS
36322011-02-27 Michael Snyder <msnyder@vmware.com>
3633
3634 * value.c (value_from_history_ref): New function.
3635 * value.h (value_from_history_ref): Export.
3636 * cli/cli-utils.c (get_number_trailer): Use value_from_history_ref
3637 to parse value history references.
3638 * cli/cli-utils.h (get_number_trailer): Update comment.
3639
36402011-02-27 Michael Snyder <msnyder@vmware.com>
3641
3642 * inferior.c (detach_inferior_command): Use get_number_or_range.
3643 (kill_inferior_command): Ditto.
3644 (remove_inferior_command): Ditto.
3645 (initialize_inferiors): Make command names plural.
3646 Update help strings.
3647
766062f6
MS
36482011-02-27 Michael Snyder <msnyder@vmware.com>
3649
3650 * darwin-nat-info.c: Fix comment typo.
3651 * dwarf2expr.h: Ditto.
3652 * fbsd-nat.c: Ditto.
3653 * fbsd-nat.h: Ditto.
3654 * frame-unwind.h: Ditto.
3655 * frame.h: Ditto.
3656 * hppa-hpux-tdep.c: Ditto.
3657 * i386-linux-nat.c: Ditto.
3658 * linux-nat.c: Ditto.
3659 * nbsd-nat.c: Ditto.
3660 * nbsd-nat.h: Ditto.
3661 * ppc-linux-tdep.c: Ditto.
3662 * serial.c: Ditto.
3663 * ui-file.h: Ditto.
3664 * tui/tui-winsource.c: Ditto.
3665
f2c4ead5
MS
36662011-02-26 Michael Snyder <msnyder@vmware.com>
3667
86b887df
MS
3668 * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file).
3669
66fd3b1e
MS
3670 * maint.c (maintenance_do_deprecate): Plug a memory leak.
3671
8c814cdd
MS
3672 * dwarf2loc.c (insert_bits): Avoid shadowing a function param
3673 with a local variable of the same name.
3674
6d5e094a 3675 * i387-tdep.c (i387_supply_fxsave): Avoid shadowing a function
e5b3d7d6 3676 param with a local variable of the same name.
6d5e094a 3677 (i387_supply_xsave): Ditto.
e5b3d7d6 3678
5eee517d
MS
3679 * linux-low.c (linux_nat_xfer_osdata): Rename local variable so
3680 that it does not shadow a function parameter.
3681
8fbf6b93
MS
3682 * i386-nat.c (i386_length_and_rw_bits): Document that case
3683 statement is meant to fall through.
3684
cb969d61
MS
3685 * expprint.c (dump_subexp_body_standard): Document that case
3686 statement is meant to fall through.
3687
f2c4ead5
MS
3688 * amd64-linux-tdep.c (amd64_linux_syscall_record): Delete
3689 dead if statement. Condition can't be false.
3690
b021a221
MS
36912011-02-25 Michael Snyder <msnyder@vmware.com>
3692
3693 * arm-tdep.c: Fix typos in comments.
3694 * bsd-uthread.c: Ditto.
3695 * completer.c: Ditto.
3696 * corelow.c: Ditto.
3697 * cp-namespace.c: Ditto.
3698 * cp-support.c: Ditto.
3699 * cris-tdep.c: Ditto.
3700 * dbxread.c: Ditto.
3701 * dwarf2read.c: Ditto.
3702 * frame.h: Ditto.
3703 * gdbtypes.h: Ditto.
3704 * inferior.h: Ditto.
3705 * mdebugread.c: Ditto.
3706 * mips-tdep.c: Ditto.
3707 * ppc-linux-nat.c: Ditto.
3708 * ppc-linux-tdep.c: Ditto.
3709 * printcmd.c: Ditto.
3710 * sol-thread.c: Ditto.
3711 * solib-frv.c: Ditto.
3712 * solist.h: Ditto.
3713 * sparc64-tdep.c: Ditto.
3714 * spu-tdep.c: Ditto.
3715 * stabsread.c: Ditto.
3716 * symfile.c: Ditto.
3717 * valops.c: Ditto.
3718 * varobj.c: Ditto.
3719 * vax-nat.c: Ditto.
3720 * python/py-block.c: Ditto.
3721 * python/py-symbol.c: Ditto.
3722 * python/py-symtab.c: Ditto.
3723 * python/py-value.c: Ditto.
3724 * tui/tui-win.c: Ditto.
3725
c82c0b55
MS
37262011-02-25 Michael Snyder <msnyder@vmware.com>
3727
3728 * inferior.c (print_inferior): Accept a string instead of an int
3729 for requested_inferiors, and use get_number_or_range to parse it.
3730 (info_inferiors_command): Pass args string to print_inferior.
3731 (initialize_inferiors): Change help string for info inferiors.
3732 * inferior.h (print_inferior): Export prototype change.
3733
ee00cd23
TT
37342011-02-25 Tom Tromey <tromey@redhat.com>
3735
3736 * common/ax.def (invalid2): Set to 0x31.
3737
0502ed8c
JK
37382011-02-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3739
3740 * dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
3741 L and plongest.
3742 (disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
3743 use L and plongest.
3744 (disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
3745
2c9de912
MS
37462011-02-24 Michael Snyder <msnyder@vmware.com>
3747
3748 * Makefile.in (clean): Make clean should remove generated files
3749 observer.h and observer.inc.
3750
a04b0428
JB
37512011-02-24 Joel Brobecker <brobecker@adacore.com>
3752
3753 Revert the following patch (not approved yet):
3754 2011-02-21 Hui Zhu <teawater@gmail.com>
3755 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3756 * ax-gdb.c (gen_printf_expr_callback): New function.
3757 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3758 * ax-general.c (ax_memcpy): New function.
3759 (ax_print): Handle "printf".
3760 (ax_reqs): Ditto.
3761 * ax.h (ax_memcpy): Forward declare.
3762 * common/ax.def (invalid2): Removed.
3763 (printf): New entry.
3764 * printcmd.c (printcmd.h): New include.
3765 (string_printf): New function.
3766 (ui_printf): Removed.
3767 (printf_command): Remove static. Call string_printf.
3768 (eval_command): Call string_printf.
3769 * printcmd.h: New file.
3770 * tracepoint.c (validate_actionline,
3771 encode_actions_1): handle printf_command.
3772
2b52013f
TT
37732011-02-23 Tom Tromey <tromey@redhat.com>
3774
3775 * ax-general.c (ax_pick): Add missing newline.
3776
e5a67952
MS
37772011-02-23 Michael Snyder <msnyder@vmware.com>
3778
3779 * breakpoint.c (breakpoint_1): Change first argument from an int
3780 to a char pointer, so that the function now accepts a list of
f2eb0bc8 3781 breakpoints rather than just one. Use new function
e5a67952
MS
3782 'number_is_in_list' to implement.
3783 (breakpoints_info): Pass char * instead of int to breakpoint_1.
3784 (watchpoints_info): Ditto.
3785 (tracepoints_info): Ditto.
3786 (maintenance_info_breakpoints): Ditto.
3787 (_initialize_breakpoint): Update help strings to reflect the fact
3788 that these functions can now take more than one argument.
3789 * cli/cli-utils.c (number_is_in_list): New function.
3790 * cli/cli-utils.h (number_is_in_list): Export.
3791
37922011-02-23 Michael Snyder <msnyder@vmware.com>
fbcb778d
MS
3793
3794 * memattr.c (mem_enable_command): Use get_number_or_range.
3795 (mem_disable_command): Ditto.
3796 (mem_delete_command): Ditto.
3797 (_initialize_mem): Tweak usage message to reflect multiple
3798 arguments.
3799
6e6fbe60
DE
38002011-02-22 Doug Evans <dje@google.com>
3801
3802 Add gdb.lookup_global_symbol python function.
3803 * NEWS: Add entry.
3804 * python/py-symbol.c (gdbpy_lookup_global_symbol): New function.
3805 * python/python-internal.h (gdbpy_lookup_global_symbol): Declare it.
3806 * python/python.c (GdbMethods): Add entry for lookup_global_symbol.
3807
79b97fa8
TT
38082011-02-22 Tom Tromey <tromey@redhat.com>
3809
3810 * language.c (language_class_name_from_physname): Rename
3811 'curr_language' argument to 'lang'; use in body.
3812
298f437a
MS
38132011-02-22 Michael Snyder <msnyder@vmware.com>
3814
3815 * cli/cli-utils.c (number_is_in_list): Check for zero return.
3816
b7ea3126
PA
38172011-02-22 Pedro Alves <pedro@codesourcery.com>
3818
3819 * frame-unwind.h: Fix comment to mention the this frame, not the
3820 next.
3821
58ee6d60
TT
38222011-02-22 Tom Tromey <tromey@redhat.com>
3823
3824 * symfile.c (auto_solib_limit): Remove.
3825 * symfile.h (auto_solib_limit): Remove.
3826
36238dbc
JB
38272011-02-22 Joel Brobecker <brobecker@adacore.com>
3828
3829 * Makefile.in (INSTALLED_LIBS): Delete. Update comment.
3830
aea5b279
MS
38312011-02-21 Michael Snyder <msnyder@vmware.com>
3832
3833 * gdbthread.h (print_thread_info): Change prototype.
3834 * thread.c (print_thread_info): Accept char* instead of int for
3835 requested_threads argument. Use new function number_is_in_list
3836 to determine which threads to list.
3837 (info_threads_command): Pass char* to print_thread_info.
3838 * cli/cli-utils.c (number_is_in_list): New function.
3839 * cli/cli-utils.h (number_is_in_list): Export.
f2eb0bc8 3840 * mi/mi-main.c (mi_cmd_thread_info): Pass char* to
aea5b279
MS
3841 print_thread_info.
3842 (print_one_inferior): Ditto.
3843 (mi_cmd_list_thread_groups): Ditto.
3844
8caa75ee
JK
38452011-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3846
3847 * common/Makefile.in (CFLAGS): New.
3848 (COMPILE): Add $(CFLAGS).
3849
ea666128
TT
38502011-02-21 Tom Tromey <tromey@redhat.com>
3851
3852 * breakpoint.c (catch_syscall_command_1): Fix typo.
3853
e9cafbcc
TT
38542011-02-21 Tom Tromey <tromey@redhat.com>
3855
3856 * reverse.c: Include cli-utils.h.
3857 * printcmd.c: Include cli-utils.h.
3858 (string_printf): Use skip_spaces.
3859 * cli/cli-utils.h: New file.
3860 * cli/cli-utils.c: New file.
3861 * cli/cli-dump.h (skip_spaces): Move to cli-utils.h.
3862 * cli/cli-dump.c (skip_spaces): Move to cli-utils.c.
3863 * breakpoint.h (get_number, get_number_or_range): Move to
3864 cli-utils.h.
3865 * breakpoint.c: Include cli-utils.h.
3866 (get_number_trailer, get_number, get_number_or_range)
3867 (ep_skip_leading_whitespace): Move to cli-utils.c.
3868 (create_breakpoint_sal, find_condition_and_thread)
3869 (decode_static_tracepoint_spec, watch_command_1)
3870 (watch_maybe_just_location, ep_parse_optional_if_clause)
3871 (catch_fork_command_1, catch_exec_command_1)
3872 (catch_syscall_command_1): Use skip_spaces, skip_to_space.
3873 * Makefile.in (SUBDIR_CLI_OBS): Add cli-utils.o.
3874 (SUBDIR_CLI_SRCS): Add cli-utils.c.
3875 (HFILES_NO_SRCDIR): Add cli-utils.h.
3876 (cli-utils.o): New target.
3877
f67fd822
PM
38782011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
3879
3880 * remote.c (remote_close): Reset INFERIOR_PTID to NULL_PTID
3881 before calling discard_all_inferiors.
3882
c9def01d
UW
38832011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3884
3885 * opencl-lang.c (STRUCT_OCL_TYPE): Remove.
3886 (struct builtin_opencl_type): Remove.
3887 (builtin_opencl_type): Change return type to "struct type **".
3888 (lookup_opencl_vector_type): Update caller.
3889 (opencl_language_arch_info): Copy primitive type vector from gdbarch.
3890 (build_opencl_types): Install plain array of "struct type *"
3891 instead of "struct builtin_opencl_type".
3892
e3039479
UW
38932011-02-21 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3894 Ulrich Weigand <uweigand@de.ibm.com>
3895
3896 * arm-linux-nat.c: Include "observer.h" and "gdbthread.h".
3897 (PTRACE_GETHBPREGS, PTRACE_SETHBPREGS): Define.
3898 (struct arm_linux_hwbp_cap): New type.
3899 (arm_linux_get_hwbp_cap): New function.
3900 (arm_linux_get_hw_breakpoint_count): Likewise.
3901 (arm_linux_get_hw_watchpoint_count): Likewise.
3902 (arm_linux_can_use_hw_breakpoint): Likewise.
3903 (arm_hwbp_type): New type.
3904 (arm_hwbp_control_t): Likewise.
3905 (struct arm_linux_hw_breakpoint): Likewise.
3906 (struct arm_linux_thread_points): Likewise.
3907 (arm_threads): New global variable.
3908 (arm_linux_find_breakpoints_by_tid): New function.
3909 (arm_hwbp_control_initialize): Likewise.
3910 (arm_hwbp_control_is_enabled): Likewise.
3911 (arm_hwbp_control_disable): Likewise.
3912 (arm_linux_hw_breakpoint_initialize): Likewise.
3913 (arm_linux_get_hwbp_type): Likewise.
3914 (arm_linux_hw_watchpoint_initialize): Likewise.
3915 (arm_linux_hw_breakpoint_equal): Likewise.
3916 (arm_linux_insert_hw_breakpoint1): Likewise.
3917 (arm_linux_remove_hw_breakpoint1): Likewise.
3918 (arm_linux_insert_hw_breakpoint): Likewise.
3919 (arm_linux_remove_hw_breakpoint): Likewise.
3920 (arm_linux_region_ok_for_hw_watchpoint): Likewise.
3921 (arm_linux_insert_watchpoint): Likewise.
3922 (arm_linux_remove_watchpoint): Likewise.
3923 (arm_linux_stopped_data_address): Likewise.
3924 (arm_linux_stopped_by_watchpoint): Likewise.
3925 (arm_linux_watchpoint_addr_within_range): Likewise.
3926 (arm_linux_new_thread): Likewise.
3927 (arm_linux_thread_exit): Likewise.
3928 (_initialize_arm_linux_nat): Install hardware breakpoint/watchpoint
3929 related target callbacks. Register arm_linux_new_thread and
3930 arm_linux_thread_exit.
3931 * arm-tdep.h (arm_pc_is_thumb): Add prototype.
3932 * arm-tdep.c (arm_pc_is_thumb): Make global.
3933 (arm_gdbarch_init): Call set_gdbarch_have_nonsteppable_watchpoint.
3934
b5db5dfc
UW
39352011-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3936
3937 * breakpoint.c (update_watchpoint): Do not attempt to recreate
3938 per-frame locations while within a function epilogue.
3939
e25b2cfa
PM
39402011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3941
3942 * ser-mingw.c (ser_windows_close): Reformat comment to better conform
3943 to GNU coding standards.
3944
4af53f97
PM
39452011-02-21 Pierre Muller <muller@ics.u-strasbg.fr>
3946
3947 Allow use of mingw native on Windows 95 OS.
e25b2cfa 3948 * ser-mingw.c (CancelIo): New macro for dynamically loaded DLL entry.
4af53f97
PM
3949 (ser_windows_close): Only call CancelIo if function exists.
3950 (_initialize_ser_windows): Use LoadLirary/GetProcAddress
3951 to check for existence of CancelIo function in kernel32 DLL.
3952
d0e92d82
HZ
39532011-02-21 Hui Zhu <teawater@gmail.com>
3954
3955 * Makefile.in (HFILES_NO_SRCDIR): Add printcmd.h.
3956 * ax-gdb.c (gen_printf_expr_callback): New function.
3957 * ax-gdb.h (gen_printf_expr_callback): Forward declare.
3958 * ax-general.c (ax_memcpy): New function.
3959 (ax_print): Handle "printf".
3960 (ax_reqs): Ditto.
3961 * ax.h (ax_memcpy): Forward declare.
3962 * common/ax.def (invalid2): Removed.
3963 (printf): New entry.
3964 * printcmd.c (printcmd.h): New include.
3965 (string_printf): New function.
3966 (ui_printf): Removed.
3967 (printf_command): Remove static. Call string_printf.
3968 (eval_command): Call string_printf.
3969 * printcmd.h: New file.
3970 * tracepoint.c (validate_actionline,
3971 encode_actions_1): handle printf_command.
3972
7d357efd
MS
39732011-02-19 Michael Snyder <msnyder@vmware.com>
3974
3975 * reverse.c (delete_one_bookmark): Argument is now bookmark
3976 id rather than pointer to bookmark struct.
3977 (delete_bookmark_command): Use get_number_or_range.
3978 (goto_bookmark_command): Parse with get_number instead of strtoul.
3979 (bookmark_1): New function. Print info for one bookmark.
3980 (bookmarks_info): Use get_number_or_range and bookmark_1.
3981
7a45ebd7
MS
39822011-02-18 Michael Snyder <msnyder@vmware.com>
3983
f2eb0bc8 3984 * thread.c (info_threads_command): Re-implement using
7a45ebd7 3985 get_number_or_range.
65ebfb52 3986 (thread_apply_command): Ditto.
7a45ebd7 3987
94d5e490
TT
39882011-02-18 Tom Tromey <tromey@redhat.com>
3989
3990 * common/ax.def: New file.
3991 * ax.h (enum agent_op): Use ax.def.
3992 * ax-general.c (aop_map): Use ax.def.
3993
c7f96d2b
TT
39942011-02-18 Tom Tromey <tromey@redhat.com>
3995
3996 * ax-general.c (aop_map): Add pick and rot.
3997 * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement.
3998 <DW_OP_rot>: Implement.
3999 * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants.
4000 (ax_pick): Declare.
4001 * ax-general.c (ax_pick): New function.
4002
66694b75
TT
40032011-02-18 Tom Tromey <tromey@redhat.com>
4004
4005 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.
4006
eeaafae2
JK
40072011-02-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4008 Tom Tromey <tromey@redhat.com>
4009
4010 * cp-support.c (make_symbol_overload_list_namespace): Do not call
4011 make_symbol_overload_list_block with NULL BLOCK.
4012 * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF.
4013
3c3fe74c
PA
40142011-02-18 Pedro Alves <pedro@codesourcery.com>
4015
4016 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.
4017 * breakpoint.h (get_number_or_range): Declare.
4018 * printcmd.c (ALL_DISPLAYS): Declare.
4019 (delete_display): Reimplement taking a display pointer.
4020 (undisplay_command): Accept a range of displays to delete, using
4021 get_number_or_range.
4022
13163d80
PM
40232011-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
4024
4025 * c-valprint.c (c_val_print): Add embedded_offset to address
4026 for arrays of unspecified length.
4027 * p-valprint.c (pascal_val_print): Likewise.
4028
b434a28f
YQ
40292011-02-18 Yao Qi <yao@codesourcery.com>
4030
4031 * gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ...
4032 (arm_process_displaced_insn): .. here. Remove parameter INSN.
4033 (thumb_process_displaced_insn): New.
4034 * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update
4035 call to arm_process_displaced_insn.
4036 * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
4037
9f6f94ff
TT
40382011-02-17 Tom Tromey <tromey@redhat.com>
4039
4040 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.
4041 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from
4042 compile_dwarf_to_ax. No longer static. Call
4043 dwarf2_compile_cfa_to_ax.
4044 (locexpr_tracepoint_var_ref): Update.
4045 (loclist_tracepoint_var_ref): Update.
4046 * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare.
4047 * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame'
4048 argument; add 'gdbarch' and 'pc'.
4049 (dwarf2_compile_cfa_to_ax): New function.
4050 (dwarf2_frame_cache): Update.
4051
e67ad678
JB
40522011-02-17 Joel Brobecker <brobecker@adacore.com>
4053
4054 * ada-lang.c (ada_type_of_array): Fix the size of the array
4055 in the case of an unconstrained packed array.
4056
946ebb0d
YQ
40572011-02-17 Yao Qi <yao@codesourcery.com>
4058
4059 * common/Makefile.in: Add more targets for make.
4060
1ba1b353
TT
40612011-02-16 Tom Tromey <tromey@redhat.com>
4062
4063 * dwarf2loc.c (unimplemented): Fix typo.
4064
b1bfef65
TT
40652011-02-16 Tom Tromey <tromey@redhat.com>
4066
4067 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.
4068 (compile_dwarf_to_ax) <default>: Use unimplemented.
4069 <DW_OP_deref>: Update.
4070 (disassemble_dwarf_expression): Update.
4071 * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument.
4072 (decode_locdesc): Update.
4073 * dwarf2expr.h (dwarf_stack_op_name): Update.
4074
5f1e6f19
TT
40752011-02-16 Tom Tromey <tromey@redhat.com>
4076
4077 * ax.h (struct aop_map) <name>: Now const.
4078
a0c78a73
PA
40792011-02-16 Tom Tromey <tromey@redhat.com>
4080
4081 * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other
4082 than axs_rvalue.
4083
946ebb0d 40842011-02-16 Yao Qi <yao@codesourcery.com>
a42244db
YQ
4085
4086 * infrun.c (get_displaced_step_closure_by_addr): New.
4087 * inferior.h: Declare it.
4088 * arm-tdep.c: (arm_pc_is_thumb): Call
4089 get_displaced_step_closure_by_addr. Adjust MEMADDR if it
4090 returns non-NULL.
4091
08807d5a
PA
40922011-02-16 Pedro Alves <pedro@codesourcery.com>
4093 Jan Kratochvil <jan.kratochvil@redhat.com>
4094
4095 gdb/
4096 * tracepoint.c (memrange_sortmerge): Fix list A's end calculation.
4097
29976f3f
PA
40982011-02-16 Pedro Alves <pedro@codesourcery.com>
4099 Jan Kratochvil <jan.kratochvil@redhat.com>
4100
4101 * value.c (value_contents_copy_raw): Extend describing comment.
4102 Assert that the destination contents we're overwriting are wholly
4103 available.
fb68ae73 4104 (value_contents_copy): Extend describing comment.
29976f3f 4105
cd24cfaa
PA
41062011-02-16 Pedro Alves <pedro@codesourcery.com>
4107 Jan Kratochvil <jan.kratochvil@redhat.com>
4108
4109 * value.c (value_available_contents_eq): Remove redundant local
4110 variables. Fix available contents comparision.
4111 * value.h (value_available_contents_eq): Extend describing
4112 comment.
4113
60bbf338
YQ
41142011-02-16 Yao Qi <yao@codesourcery.com>
4115
4116 * thread.c (info_threads_command): Add missing i18n markup and remove
4117 trailing newline.
4118
17450429
PP
41192011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4120
4121 * breakpoint.c (longjmp_names): New variable.
4122 (struct breakpoint_objfile_data): New type.
4123 (breakpoint_objfile_key): New variable.
4124 (msym_not_found): New variable.
4125 (msym_not_found_p): New predicate.
4126 (get_breakpoint_objfile_data): New function.
4127 (create_overlay_event_breakpoint): Check per-objfile cache for
4128 symbols first.
4129 (create_longjmp_master_breakpoint): Likewise.
4130 (create_std_terminate_master_breakpoint): Likewise.
4131 (create_exception_master_breakpoint): Likewise.
4132 (_initialize_breakpoint): Register per-objfile data key.
4133
af02033e
PP
41342011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>
4135
4136 * breakpoint.c ((create_overlay_event_breakpoint): Const-propagate
4137 parameter value.
4138 (create_longjmp_master_breakpoint): Loop over longjmp names.
4139 (create_std_terminate_master_breakpoint): Const-propagate parameter
4140 value.
4141 (update_breakpoints_after_exec): Adjust.
4142 (breakpoint_re_set): Adjust.
4143
60f98dde
MS
41442011-02-15 Michael Snyder <msnyder@vmware.com>
4145
cdf99611
MS
4146 * thread.c (info_threads_command): Process arg as thread id,
4147 or list of thread ids.
4148 (thread_find_command): New command.
4149 (_initialize_thread): Document argument for info threads.
4150 Document 'thread find' command.
4151 * NEWS: Document new command "thread find".
60f98dde 4152
0feedb2c
JK
41532011-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 * Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'.
4156 * aclocal.m4: Regenerated with aclocal-1.11.1.
4157 * common/configure: Regenerate with autoconf-2.64.
4158
648cd113
KW
41592011-02-15 Ken Werner <ken.werner@de.ibm.com>
4160
4161 * opencl-lang.c (build_opencl_types): Set the size of the built-in
4162 bool data type to a size of one byte.
4163
5657161f
PA
41642011-02-15 Pedro Alves <pedro@codesourcery.com>
4165 Jan Kratochvil <jan.kratochvil@redhat.com>
4166
4167 * target.c (memory_xfer_live_readonly_partial): Document where to
4168 look for interface description.
4169
494e194e
YQ
41702011-02-15 Yao Qi <yao@codesourcery.com>
4171
4172 PR tdep/12352
4173 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in
4174 order to store PC value on stack instead of text section.
4175
d9492458
TJB
41762011-02-15 Thiago Jung Bauermann <bauerman@br.ibm.com>
4177
4178 * rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for
4179 the EFP register set size.
4180 (efpr_pseudo_register_read): Use regcache_raw_read_part to read
4181 data from the VMX register.
4182 (efpr_pseudo_register_write): Use regcache_raw_write_part to read
4183 and write data from/to the VMX register.
4184
cdf99611
MS
41852011-02-14 Michael Snyder <msnyder@vmware.com>
4186
4187 * command.h (enum command_class): New class 'no_set_class', for
4188 "show" commands without a corresponding "set" command.
4189 * value.c (_initialize_values): Use 'no_set_class' for "show values".
4190 * copying.c (_initialize_copying): Ditto for "show copying" and
4191 "show warranty".
4192 * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and
4193 "show version".
4194 * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for
4195 which there is no corresponding "set" command (eg. "show copying").
4196
424447ee
PA
41972011-02-14 Pedro Alves <pedro@codesourcery.com>
4198 Jan Kratochvil <jan.kratochvil@redhat.com>
4199
4200 * exec.c (section_table_available_memory): Change `len' parameter
4201 type to ULONGEST.
4202 * exec.h (section_table_available_memory): Ditto.
4203 * value.h (read_value_memory): Rename the `offset' parameter to
4204 `embedded_offset'.
4205
c0f61f9c 42062011-02-14 Pedro Alves <pedro@codesourcery.com>
e0ccc0c7 4207 Jan Kratochvil <jan.kratochvil@redhat.com>
c0f61f9c
PA
4208
4209 * memrange.c (compare_mem_ranges): Mention sort order in
4210 describing comment.
4211 (normalize_mem_ranges): Add comment. Fix ra->length calculation.
4212 * tracepoint.c (traceframe_available_memory): Extend comment to
4213 mention what happens to RESULT when the target does not support
4214 the query.
4215
6bfc80c7
PA
42162011-02-14 Pedro Alves <pedro@codesourcery.com>
4217 Jan Kratochvil <jan.kratochvil@redhat.com>
4218
4219 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'
4220 range.
4221
e7303042
PA
42222011-02-14 Pedro Alves <pedro@codesourcery.com>
4223
4224 * value.c (value_bits_valid, value_bits_synthetic_pointer):
4225 No longer handle NULL values.
4226
8af8e3bc
PA
42272011-02-14 Pedro Alves <pedro@codesourcery.com>
4228
4229 * exceptions.h (NOT_AVAILABLE_ERROR): New error.
4230 * value.c: Include "exceptions.h".
4231 (require_available): Throw NOT_AVAILABLE_ERROR instead of a
4232 generic error.
4233 * cp-abi.c: Include gdb_assert.h.
4234 (baseclass_offset): Add `embedded_offset' and `val' parameters.
4235 Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR
4236 errors.
4237 * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val'
4238 parameters. No longer returns -1 on error.
4239 (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and
4240 `val' parameters.
4241 * cp-valprint.c: Include exceptions.h.
4242 (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching
4243 the baseclass_offset. Handle unavailable base classes. Use
4244 val_print_invalid_address.
4245 * p-valprint.c: Include exceptions.h.
4246 (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors
4247 when fetching the baseclass_offset. No longer expect
4248 baseclass_offset returning -1. Handle unavailable base classes.
4249 Use val_print_invalid_address.
4250 * valops.c (dynamic_cast_check_1): Rename `contents' parameter to
4251 `valaddr' parameter, and change its type to gdb_byte pointer. Add
4252 `embedded_offset' and `val' parameters. Adjust.
4253 (dynamic_cast_check_2): Rename `contents' parameter to `valaddr'
4254 parameter, and change its type to gdb_byte pointer. Add
4255 `embedded_offset' and `val' parameters. Adjust. No longer expect
4256 baseclass_offset returning -1.
4257 (value_dynamic_cast): Use value_contents_for_printing rather than
4258 value_contents. Adjust.
4259 (search_struct_field): No longer expect baseclass_offset returning
4260 -1.
4261 (search_struct_method): If reading memory from the target is
4262 necessary, wrap it in a new value to pass to baseclass_offset. No
4263 longer expect baseclass_offset returning -1.
4264 (find_method_list): No longer expect baseclass_offset returning
4265 -1. Use value_contents_for_printing rather than value_contents.
4266 * valprint.c (val_print_invalid_address): New function.
4267 * valprint.h (val_print_invalid_address): Declare.
4268 * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset'
4269 and `val' parameters. No longer expect baseclass_offset returning
4270 -1. Adjust.
4271 * gnu-v2-abi.c: Include "exceptions.h".
4272 (gnuv2_baseclass_offset): Add `embedded_offset' and `val'
4273 parameters. Handle unavailable memory. Recurse through
4274 gnuv2_baseclass_offset directly, rather than through
4275 baseclass_offset. No longer returns -1 on not found, instead
4276 throw an error.
4277 * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and
4278 `val' parameters. Adjust.
4279
1b28d0b3
PA
42802011-02-14 Pedro Alves <pedro@codesourcery.com>
4281
4282 * tracepoint.c (memrange_sortmerge): Don't merge ranges that are
4283 almost but not quite adjacent.
4284
ec0a52e1
PA
42852011-02-14 Pedro Alves <pedro@codesourcery.com>
4286
4287 * value.h (value_entirely_available): Declare.
4288 * value.c (value_entirely_available): New function.
4289 * c-valprint.c (c_value_print): Don't try fetching the pointer's
4290 real type if the pointer is unavailable.
4291
24e6bcee
PA
42922011-02-14 Pedro Alves <pedro@codesourcery.com>
4293
4294 * valops.c (value_repeat): Use read_value_memory instead of
4295 read_memory.
4296
39d37385
PA
42972011-02-14 Pedro Alves <pedro@codesourcery.com>
4298
4299 * value.h (value_contents_copy, value_contents_copy_raw): Declare.
4300 * value.c (value_contents_copy_raw, value_contents_copy): New
4301 functions.
4302 (value_primitive_field): Use value_contents_copy_raw instead of
4303 memcpy.
4304 * valops.c (value_fetch_lazy): Use value_contents_copy instead of
4305 memcpy.
4306 (value_array, value_slice): Ditto.
4307 * valarith.c (value_subscripted_rvalue): Use
4308 value_contents_copy_raw instead of memcpy.
4309
a3d34bf4
PA
43102011-02-14 Pedro Alves <pedro@codesourcery.com>
4311
4312 <unavailable> references.
4313
4314 * valops.c (get_value_at): Use value_from_contents_and_address,
4315 avoiding read_memory.
4316
9fc6d940
PA
43172011-02-14 Pedro Alves <pedro@codesourcery.com>
4318
4319 * c-valprint.c (c_val_print): Print a string with unavailable
4320 contents as an array.
4321
5467c6c8
PA
43222011-02-14 Pedro Alves <pedro@codesourcery.com>
4323
4324 * value.h (unpack_bits_as_long): Delete declaration.
4325 (unpack_value_bits_as_long): Declare.
4326 (unpack_value_field_as_long): Declare.
4327 (value_field_bitfield): Declare.
4328 * value.c (unpack_bits_as_long): Rename to...
4329 (unpack_value_bits_as_long_1): ... this. Add embedded_offset and
4330 value parameters. Return the extracted result in a new output
4331 parameter. If the value contents are unavailable, return false,
4332 otherwise return true.
4333 (unpack_value_bits_as_long): New.
4334 (unpack_field_as_long): Rename to...
4335 (unpack_value_field_as_long_1): ... this. Add embedded_offset and
4336 Add embedded_offset and value parameters. Return the extracted
4337 result in a new output parameter. If the value contents are
4338 unavailable, return false, otherwise return true.
4339 (unpack_value_field_as_long): New.
4340 (unpack_field_as_long_1): New.
4341 (unpack_field_as_long): Reimplement as wrapper around
4342 unpack_value_field_as_long_1.
4343 (value_field_bitfield): New function.
4344 * valops.c (value_fetch_lazy): When fetching a bitfield, use
4345 unpack_value_bits_as_long. Mark the value as unavailable, if it
4346 is unavailable.
4347 * jv-valprint.c (java_print_value_fields): Use
4348 value_field_bitfield.
4349 * p-valprint.c (pascal_object_print_value_fields): Use
4350 value_field_bitfield.
4351 * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
4352
3158c6ed
PA
43532011-02-14 Pedro Alves <pedro@codesourcery.com>
4354
4355 * value.c (get_internalvar_integer): Also return the int value of
4356 TYPE_CODE_INT INTERNALVAR_VALUE values.
4357 (set_internalvar): Don't special case TYPE_CODE_INT.
4358
9fbdca0d
PA
43592011-02-14 Pedro Alves <pedro@codesourcery.com>
4360
4361 * value.c (struct internalvar) <enum internalvar_kind>: Remove
4362 INTERNALVAR_POINTER.
4363 <pointer>: Delete.
4364 (value_of_internalvar): Remove INTERNALVAR_POINTER handling.
4365 (set_internalvar): Remove special TYPE_CODE_PTR handling.
4366 (preserve_one_internalvar): Remove INTERNALVAR_POINTER handling.
4367
c8c1c22f
PA
43682011-02-14 Pedro Alves <pedro@codesourcery.com>
4369
4370 * value.h (value_available_contents_eq): Declare.
4371 * value.c (find_first_range_overlap): New function.
4372 (value_available_contents_eq): New function.
4373 * valprint.c (val_print_array_elements): Use
4374 value_available_contents_eq.
4375 * ada-valprint.c (val_print_packed_array_elements): Use
4376 value_available_contents_eq.
4377 * jv-valprint.c (java_value_print): Use
4378 value_available_contents_eq.
4379
e6e4e701
PA
43802011-02-14 Pedro Alves <pedro@codesourcery.com>
4381
4382 * target.c (target_read_live_memory): New function.
4383 (memory_xfer_live_readonly_partial): New.
4384 (memory_xfer_partial): If reading from a traceframe, fallback to
4385 reading unavailable read-only memory from read-only regions of
4386 live target memory.
4387 * tracepoint.c (disconnect_tracing): Adjust.
4388 (set_current_traceframe): New, factored out from
4389 set_traceframe_number.
4390 (set_traceframe_number): Reimplement to only change the traceframe
4391 number on the GDB side.
4392 (do_restore_current_traceframe_cleanup): Adjust.
4393 (make_cleanup_restore_traceframe_number): New.
4394 (cur_traceframe_number): New global.
4395 (tfile_open): Set cur_traceframe_number to no traceframe.
4396 (set_tfile_traceframe): New function.
4397 (tfile_trace_find): If looking up a traceframe using any method
4398 other than by number, make sure the current tfile traceframe
4399 matches gdb's current traceframe. Update the current tfile
4400 traceframe if the lookup succeeded.
4401 (tfile_fetch_registers, tfile_xfer_partial)
4402 (tfile_get_trace_state_variable_value): Make sure the remote
4403 traceframe matches gdb's current traceframe.
4404 * remote.c (remote_traceframe_number): New global.
4405 (remote_open_1): Set it to -1.
4406 (set_remote_traceframe): New function.
4407 (remote_fetch_registers, remote_store_registers)
4408 (remote_xfer_memory, remote_xfer_partial)
4409 (remote_get_trace_state_variable_value): Make sure the remote
4410 traceframe matches gdb's current traceframe.
4411 (remote_trace_find): If looking up a traceframe using any method
4412 other than by number, make sure the current remote traceframe
4413 matches gdb's current traceframe. Update the current remote
4414 traceframe if the lookup succeeded.
4415 * infrun.c (fetch_inferior_event): Adjust.
4416 * tracepoint.h (set_current_traceframe): Declare.
4417 (get_traceframe_number, set_traceframe_number): Add describing
4418 comments.
4419
e6ca34fc
PA
44202011-02-14 Pedro Alves <pedro@codesourcery.com>
4421
4422 Mark pieces of values as unavailable if the corresponding memory
4423 is unavailable.
4424
4425 * valops.c: Include tracepoint.h.
4426 (value_fetch_lazy): Use read_value_memory.
4427 (read_value_memory): New.
4428 * value.h (read_value_memory): Declare.
4429 * dwarf2loc.c (read_pieced_value): Use read_value_memory.
4430 * exec.c (section_table_available_memory): New function.
4431 * exec.h (section_table_available_memory): Declare.
4432
2a7498d8
PA
44332011-02-14 Pedro Alves <pedro@codesourcery.com>
4434
4435 * Makefile.in (SFILES): Add memrange.c.
4436 (HFILES_NO_SRCDIR): Add memrange.h.
4437 (COMMON_OBS): Add memrange.o.
4438 * memrange.c: New file.
4439 * memrange.h: New file.
4440 * tracepoint.c: Include memrange.h.
4441 (struct mem_range): Delete.
4442 (mem_range_s): Delete.
4443 (traceframe_available_memory): New function.
4444 * tracepoint.h (traceframe_available_memory): Declare.
4445
b3b9301e
PA
44462011-02-14 Pedro Alves <pedro@codesourcery.com>
4447
4448 * target.h (struct traceframe_info): Forward declare.
4449 (enum target_object): Add TARGET_OBJECT_TRACEFRAME_INFO.
4450 (struct target_ops) <to_traceframe_info>: New field.
4451 (target_traceframe_info): New.
4452 * target.c (update_current_target): Inherit and default
4453 to_traceframe_info.
4454 * remote.c (PACKET_qXfer_traceframe_info): New.
4455 (remote_protocol_features): Register qXfer:traceframe-info:read.
4456 (remote_xfer_partial): Handle TARGET_OBJECT_TRACEFRAME_INFO.
4457 (remote_traceframe_info): New.
4458 (init_remote_ops): Install it.
4459 (_initialize_remote): Install "set/show remote traceframe-info"
4460 commands.
4461 * tracepoint.h (parse_traceframe_info): Declare.
4462 * tracepoint.c (struct mem_range): New.
4463 (mem_range_s): New typedef.
4464 (struct traceframe_info): New.
4465 (traceframe_info): New global.
4466 (free_traceframe_info): New function.
4467 (clear_traceframe_info): New function.
4468 (start_tracing, tfind_1, set_traceframe_number): Clear traceframe
4469 info.
4470 (build_traceframe_info): New function.
4471 (tfile_traceframe_info): New function.
4472 (init_tfile_ops): Install tfile_traceframe_info.
4473 (traceframe_info_start_memory, free_result): New functions.
4474 (memory_attributes, traceframe_info_elements): New globals.
4475 (parse_traceframe_info, get_traceframe_info): New functions.
4476 * features/traceframe-info.dtd: New file.
4477 * Makefile.in (XMLFILES): Add traceframe-info.dtd.
4478
4e07d55f
PA
44792011-02-14 Pedro Alves <pedro@codesourcery.com>
4480
4481 Base support for <unavailable> value contents.
4482
4e07d55f
PA
4483 * value.h (value_bytes_available): Declare.
4484 (mark_value_bytes_unavailable): Declare.
4485 * value.c (struct range): New struct.
4486 (range_s): New typedef.
4487 (ranges_overlap): New function.
4488 (range_lessthan): New function.
4489 (ranges_contain_p): New function.
4490 (struct value) <unavailable>: New field.
4491 (value_bytes_available): New function.
4492 (mark_value_bytes_unavailable): New function.
4493 (require_not_optimized_out): Constify parameter.
4494 (require_available): New function.
4495 (value_contents_all, value_contents): Require all bytes be
4496 available.
4497 (value_free): Free `unavailable'.
4498 (value_copy): Copy `unavailable'.
4499 * valprint.h (val_print_unavailable): Declare.
4500 * valprint.c (valprint_check_validity): Rename `offset' parameter
4501 to `embedded_offset'. If printing a scalar, check whether the
4502 value chunk is available.
4503 (val_print_unavailable): New.
4504 (val_print_scalar_formatted): Check whether the value is
4505 available.
4506 * python/py-prettyprint.c (apply_val_pretty_printer): Refuse
4507 pretty-printing unavailable values.
4508
bc9a5551
JK
45092011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4510
4511 Fix const/volatile qualifiers of C++ types, PR c++/12328.
4512 * c-typeprint.c (c_type_print_args): Update the function comment. New
4513 variable param_type, initialize it. Remove const/volatile qualifiers
4514 for language_cplus and !show_artificial. Use param_type.
4515
93b55aa1
JK
45162011-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4517
4518 * symtab.c (find_pc_sect_line): New variable objfile, initialize it
4519 from S. Iterate S using ALL_OBJFILE_SYMTABS. Verify BV for each S.
4520 * symtab.h (struct symtab) <next>: Comment extension.
4521
181d9476
YQ
45222011-02-12 Yao Qi <yao@codesourcery.com>
4523
4524 * Makefile.in (CLEANDIRS): Remove duplicated common dir.
4525
b708a5c7
JK
45262011-02-11 Yao Qi <yao@codesourcery.com>
4527
4528 * common/Makefile.in: Add copyright header.
4529
c5187ac6
PA
45302011-02-11 Pedro Alves <pedro@codesourcery.com>
4531
4532 * infrun.c (proceed): Move switching out and in of tfind mode from
4533 here ...
4534 (fetch_inferior_event): ... to here.
4535
4f3e6fb7
YQ
45362011-02-11 Yao Qi <yao@codesourcery.com>
4537
4538 * Makefile.in: Remove signals.o from COMMON_OBS. Link
4539 libcommon.a.
4540 * configure.ac: Add common to sub dir.
4541 * configure: Regenerate.
4542
b708a5c7
JK
45432011-02-11 Yao Qi <yao@codesourcery.com>
4544
4545 Build libcommon.a.
4546
4547 * common/Makefile.in: New.
4548 * common/configure.ac: New.
4549 * common/aclocal.m4: New.
4550 * common/configure: Generate.
4551
2287cc7e
PA
45522011-02-10 Pedro Alves <pedro@codesourcery.com>
4553
4554 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the right
4555 side of the parenthesis.
4556
4557 Merge from GCC:
4558 2010-07-13 Jakub Jelinek <jakub@redhat.com>
fc013618 4559 * vec.h (VEC_block_remove): Fix comment.
2287cc7e 4560
fd62cb89
MS
45612011-02-08 Michael Snyder <msnyder@vmware.com>
4562
4563 * linux-nat.c (linux_nat_filter_event): Fix typo in comment.
4564
56d2815c
JK
45652011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4566
4567 * i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes
4568 in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd,
4569 psubd and paddd.
4570
4f7d61a8
JK
45712011-02-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4572
4573 PR 12361.
4574 * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to
4575 phsubsw.
4576 (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0.
4577 (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
4578
54fcddd0
UW
45792011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4580
4581 * dwarf2read.c (read_subroutine_type): Set special calling
4582 convention flag for functions compiled by IBM XL C for OpenCL.
4583 * ppc-sysv-tdep.c: Include "dwarf2.h"
4584 (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types
4585 calling convention.
4586 (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement
4587 IBM OpenCL vector types calling convention.
4588 (ppc_sysv_abi_return_value): Pass through FUNC_TYPE.
4589 (ppc_sysv_abi_broken_return_value): Likewise.
4590 (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector
4591 types calling convention.
4592 (ppc64_sysv_abi_return_value): Likewise.
4593 * spu-tdep.c: Include "dwarf2.h"
4594 (spu_return_value): Implement IBM OpenCL vector types calling
4595 convention.
4596
d6dafb7c
UW
45972011-02-08 Ulrich Weigand <uweigand@de.ibm.com>
4598
4599 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement
4600 correct ABI for AltiVec vector arguments.
4601
32b72a42
PA
46022011-02-07 Pedro Alves <pedro@codesourcery.com>
4603
4604 * valprint.c (val_print): Extend comment.
4605 * ada-valprint.c (ada_valprint): Rewrite comment deferring
4606 interface explanation to val_print.
4607 (ada_val_print_array): Adjust comment to current interface.
4608 (print_field_values): Adjust comment to current interface.
4609 * c-valprint.c (c_val_print): Rewrite comment deferring interface
4610 explanation to val_print.
4611 * f-valprint.c (f_val_print): Ditto.
4612 * jv-valprint.c (java_val_print): Ditto.
4613 * m2-valprint.c (m2_val_print): Ditto.
4614 * p-valprint.c (pascal_val_print): Ditto.
4615
9998af43
TJB
46162011-02-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
4617
4618 * breakpoint.c (parse_breakpoint_sals): Fix description.
4619
505500db 46202011-02-04 Sami Wagiaalla <swagiaal@redhat.com>
9998af43 4621 Oguz Kayral <oguzkayral@gmail.com>
505500db
SW
4622
4623 * python/py-inferior.c (python_on_normal_stop): New function.
4624 (python_on_resume): New function.
4625 (python_inferior_exit): New function.
4626 (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and
4627 inferior_exit observers.
4628 * python/py-evtregistry.c: New file.
4629 * python/py-threadevent.c : New file.
4630 * python/py-event.c: New file.
4631 * python/py-evts.c: New file.
4632 * python/py-continueevent.c: New file.
4633 * python/py-bpevent.c: New file.
4634 * python/py-signalevent.c: New file.
4635 * python/py-exetiedevent.c: New file.
4636 * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function.
4637 Move struct breakpoint_object from here...
4638 * python/python-internal.h: ... to here.
4639 * python/py-event.h: New file.
4640 * python/py-events.h: New file.
4641 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o,
4642 py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o,
4643 py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o.
4644 (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c,
4645 py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c,
4646 py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c.
4647 Add build rules for all the above.
4648
9e0ac564
TT
46492011-02-04 Tom Tromey <tromey@redhat.com>
4650
4651 * dwarf2read.c (dwarf2_section_empty_p): New function.
4652 (dwarf2_read_section): Use dwarf2_section_empty_p.
4653 (dwarf2_section_size): New function.
4654 (dwarf2_get_section_info): Unconditionally read section.
4655 (dwarf2_read_index): Use dwarf2_section_empty_p.
4656 (partial_read_comp_unit_head): Use dwarf2_section_size.
4657 (dwarf2_symbol_mark_computed): Likewise.
4658
eee5b35e
DD
46592011-02-04 David Daney <ddaney@caviumnetworks.com>
4660
4661 * NEWS: Add item for "catch syscall" on mips*-linux* targets.
4662
385203ed
DD
46632011-02-04 David Daney <ddaney@caviumnetworks.com>
4664
4665 * mips-linux-tdep.c: Include xml-syscall.h.
4666 (mips_linux_get_syscall_number): New function.
4667 (mips_linux_init_abi): Add calls to
4668 mips_linux_get_syscall_number() and set_xml_syscall_file_name().
4669 * data-directory/Makefile.in (SYSCALLS_FILES): Add
4670 mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml
4671 * syscalls/mips-n32-linux.xml: New file.
4672 * syscalls/mips-n64-linux.xml: New file.
4673 * syscalls/mips-o32-linux.xml: New file.
4674
9277c30c
UW
46752011-02-04 Ulrich Weigand <ulrich.weigand@linaro.org>
4676
4677 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.
4678 Complain about inverted range entries.
4679 (dwarf2_record_block_ranges): Likewise.
4680
a3be7890
TJB
46812011-02-04 Thiago Jung Bauermann <bauerman@br.ibm.com>
4682
4683 Fix some typos.
4684 * breakpoint.c (update_watchpoint): Fix name of the
4685 update_global_location_list function.
4686 (print_one_breakpoint): Fix typo.
4687 (_initialize_breakpoint): Remove extra space in hbreak help
4688 string.
4689 * breakpoint.h (struct bp_location) <length>: Fix field
4690 description.
4691
041274d8
PA
46922011-02-04 Pedro Alves <pedro@codesourcery.com>
4693
4694 * regcache.c (registers_changed_ptid): Don't explictly always
4695 clear `current_regcache'. Only clear current_thread_ptid and
4696 current_thread_arch when PTID matches. Only reinit the frame
4697 cache if PTID matches the current inferior_ptid. Move alloca(0)
4698 call to ...
4699 (registers_changed): ... here.
4700
c1c2ab58
UW
47012011-02-03 Ulrich Weigand <ulrich.weigand@linaro.org>
4702
4703 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol that
4704 starts with __stack_chk_guard as stack guard symbol.
4705
9011945e
AB
47062011-02-03 Andrew Burgess <aburgess@broadcom.com>
4707
4708 * disasm.c (compare_lines): Handle the end of sequence markers
4709 within the line table to better support disassembling over
4710 compilation unit boundaries.
4711
e0634ccf
UW
47122011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4713
4714 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMB
4715 arguments. Skip in-prologue calls to glibc __aeabi_read_tp
4716 implementation even if no symbols are available.
4717 (thumb_analyze_prologue): Update call to skip_prologue_function.
4718 (arm_analyze_prologue): Likewise.
4719
0e9e9abd
UW
47202011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4721
4722 * arm-tdep.c: Include "observer.h".
4723 (arm_prologue_this_id): Use frame PC if get_frame_func returns 0.
4724 (arm_exidx_data_key): New static variable.
4725 (struct arm_exidx_entry, arm_exidx_entry_s): New data types.
4726 (struct arm_exidx_data): Likewise.
4727 (arm_exidx_data_free): New function.
4728 (arm_compare_exidx_entries): Likewise.
4729 (arm_obj_section_from_vma): Likewise.
4730 (arm_exidx_new_objfile): Likewise.
4731 (arm_find_exidx_entry): Likewise.
4732 (arm_exidx_fill_cache): Likewise.
4733 (arm_exidx_unwind_sniffer): Likewise.
4734 (arm_exidx_unwind): New global variable.
4735 (arm_gdbarch_init): Append unwinder arm_exidx_unwind.
4736 (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile
4737 observer. Register arm_exidx_data_key as objfile data.
4738
2e9e421f
UW
47392011-02-02 Ulrich Weigand <ulrich.weigand@linaro.org>
4740
4741 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build break
4742 due to accessing uninitialized variable. Fix indentation.
4743
580688f3
PA
47442011-02-02 Pedro Alves <pedro@codesourcery.com>
4745
4746 * c-valprint.c (c_value_print): When doing virtual base pointer
4747 adjustment, create a new value with adjusted contents rather than
4748 changing the contents of the value being printed (and getting it
4749 wrong).
4750
3d2c1d41
PA
47512011-02-02 Pedro Alves <pedro@codesourcery.com>
4752
4753 * xml-support.c (xml_find_attribute): New.
4754 (xinclude_start_include): Use it.
4755 * xml-support.h (xml_find_attribute): Declare.
4756 * memory-map.c (memory_map_start_memory)
4757 (memory_map_start_property): Use xml_find_attribute.
4758 * osdata.c (osdata_start_osdata, osdata_start_column): Use
4759 xml_find_attribute.
4760 * remote.c (start_thread): Use xml_find_attribute.
4761 * solib-target.c (library_list_start_segment)
4762 (library_list_start_section, library_list_start_library)
4763 (library_list_start_list): Use xml_find_attribute.
4764 * xml-tdesc.c (tdesc_start_target, tdesc_start_feature)
4765 (tdesc_start_union, tdesc_start_struct, tdesc_start_flags)
4766 (tdesc_start_field): Use xml_find_attribute.
4767
0af3e2db
UW
47682011-02-02 Ulrich Weigand <uweigand@de.ibm.com>
4769
4770 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.
4771 (BUILD_OCL_VTYPES): Update.
4772
c1039e3c
JB
47732011-02-02 Joel Brobecker <brobecker@adacore.com>
4774
4775 * configure.ac: Work around non-GNU sed limitation when computing
4776 python version number.
4777 * configure: Regenerate.
4778
600ea1be
JK
47792011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4780
4781 Fix debug printing of TYPE_INSTANCE.
4782 * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New.
4783 (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
4784
56c12414
JK
47852011-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4786
4787 Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL,
4788 OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME,
4789 OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT.
4790 * ada-operator.inc: Rename the file to ...
4791 * ada-operator.def: ... here, wrap all the entries by macro OP.
4792 * expprint.c (op_name_standard): Remove all the entries. Include
4793 "std-operator.def" instead.
4794 * expression.h (enum exp_opcode): Include "std-operator.def" and
4795 "ada-operator.def". Move all the entries ...
4796 * std-operator.def: ... here, wrap all the entries by macro OP.
4797
c52b559d
PP
47982011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>
4799
4800 * breakpoint.h (remove_jit_event_breakpoints): New prototype.
4801 * breakpoint.c (remove_jit_event_breakpoints): New function.
4802 * jit.c (jit_descriptor_addr): Delete.
4803 (registering_code): Delete.
4804 (clear_int): Delete.
4805 (jit_inferior_data): New variable.
4806 (struct jit_inferior_data): New type.
4807 (get_jit_inferior_data): New function.
4808 (jit_inferior_data_cleanup): New function.
4809 (jit_read_descriptor): Adjust.
4810 (jit_register_code): Adjust.
4811 (jit_breakpoint_re_set_internal): New function; move code here ...
4812 (jit_inferior_init): ... from here.
4813 (jit_breakpoint_re_set): Adjust.
4814 (jit_reset_inferior_data_and_breakpoints): New function.
4815 (jit_inferior_created_observer): Adjust.
4816 (jit_inferior_exit_hook): Adjust.
4817 (jit_executable_changed_observer): New function.
4818 (jit_event_handler): Adjust.
4819 (_initialize_jit): Adjust.
4820
e839132d
MS
48212011-01-31 Michael Snyder <msnyder@vmware.com>
4822
4823 * m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted
4824 line.
4825
47a80e90
TT
48262011-01-31 Tom Tromey <tromey@redhat.com>
4827
4828 PR python/12216:
4829 * python/python.c (execute_gdb_command): Call
4830 prevent_dont_repeat.
4831 * top.c (suppress_dont_repeat): New global.
4832 (dont_repeat): Use it.
4833 (prevent_dont_repeat): New function.
4834 * command.h (prevent_dont_repeat): Declare.
4835
45a43567
TT
48362011-01-31 Tom Tromey <tromey@redhat.com>
4837
4838 * infcmd.c (finish_backward): Use breakpoint_set_silent.
4839 * python/py-breakpoint.c (bppy_set_silent): Use
4840 breakpoint_set_silent.
4841 (bppy_set_thread): Use breakpoint_set_thread.
4842 (bppy_set_task): Use breakpoint_set_task.
4843 * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread)
4844 (breakpoint_set_task): Declare.
4845 (make_breakpoint_silent): Remove.
4846 * breakpoint.c (breakpoint_set_silent): New function.
4847 (breakpoint_set_thread): Likewise.
4848 (breakpoint_set_task): Likewise.
4849 (make_breakpoint_silent): Remove.
4850
09d682a4
TT
48512011-01-31 Tom Tromey <tromey@redhat.com>
4852
4853 * breakpoint.h (user_breakpoint_p): Declare.
4854 * breakpoint.c (user_breakpoint_p): New function.
4855 (breakpoint_1): Use it.
4856 (save_breakpoints): Likewise.
4857
9c4ea6c5
JB
48582011-01-31 Joel Brobecker <brobecker@adacore.com>
4859
4860 * configure.ac: Add handling of Python distribution on Windows.
4861 * python-config.py: If the LIBS, SYSLIBS, LIBPL and/or LINKFORSHARED
4862 sysconfig variables are not defined, then do not use them.
4863 On Windows, if LIBPL is not defined, then use prefix + '/libs'
4864 instead. On Windows, return all paths using forward-slashes
4865 rather than backslashes.
4866
ac534cba
JB
48672011-01-31 Joel Brobecker <brobecker@adacore.com>
4868
4869 * configure.ac: Remove fallback behavior for building
4870 against Python. Remove tweaking of Python include path.
4871 Add PYTHON_CPPFLAGS and PYTHON_LIBS substitution.
4872 (AC_TRY_LIBPYTHON): Adjust program used in linking test.
4873 If link is successful, set PYTHON_CPPFLAGS and PYTHON_LIBS.
4874 Always restore CPPFLAGS and LIBS after linking test.
4875 * configure: Regenerated.
4876 * Makefile.in (INTERNAL_CPPFLAGS): Add @PYTHON_CPPFLAGS@.
4877 (INSTALLED_LIBS, CLIBS): Add @PYTHON_LIBS@.
4878 * python/python-internal.h: Adjust includes of Python .h files.
4879
c2f0d045
JB
48802011-01-31 Joel Brobecker <brobecker@adacore.com>
4881
4882 * tracepoint.c (traceframe_walk_blocks): Add missing i18n markup
4883 in error message.
4884
6b0c4c1f
JB
48852011-01-31 Joel Brobecker <brobecker@adacore.com>
4886
4887 * inflow.c (gdb_has_a_terminal): Fix typo in interactive_mode
4888 value test.
4889
672c9795
YQ
48902011-01-31 Yao Qi <yao@codesourcery.com>
4891
4892 * arm-linux-nat.c: Update calls to regcache_register_status
4893 instead of regcache_valid_p.
4894 * aix-thread.c: Likewise.
4895 * i386gnu-nat.c: Likewise.
4896
80b23b6a
JK
48972011-01-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4898
4899 Fix crash.
4900 * valops.c (compare_parameters): Verify TYPE_NFIELDS before
4901 touching TYPE_FIELD_ARTIFICIAL.
4902
4cd712bd
RE
49032011-01-28 Richard Earnshaw <rearnsha@arm.com>
4904
4905 * MAINTAINERS: Move myself from Responsible Maintainers to Authorized
4906 Committers.
4907
ffd5ec24
PA
49082011-01-28 Pedro Alves <pedro@codesourcery.com>
4909
4910 * tracepoint.c (tfile_xfer_partial): If there's no traceframe
4911 selected, don't try iterating over the traceframe's blocks.
4912 (tfile_has_stack): If there's no traceframe selected, then there's
4913 no stack.
4914 (tfile_has_registers): If there's no traceframe selected, then
4915 there's no registers.
4916
e8c9e0a1
PA
49172011-01-28 Pedro Alves <pedro@codesourcery.com>
4918
4919 * target.c (memory_xfer_partial): No need to restore shadows if we
4920 haven't read anything.
4921
de15c4ab
PA
49222011-01-28 Pedro Alves <pedro@codesourcery.com>
4923
4924 * mips-tdep.c (mips_print_register): Use get_frame_register_value
4925 and val_print_scalar_formatted.
4926
9f41c731
PA
49272011-01-27 Pedro Alves <pedro@codesourcery.com>
4928
4929 * tracepoint.c (tfile_read): New.
4930 (tfile_open): Use it.
4931 (tfile_get_traceframe_address): Use it.
4932 (tfile_trace_find): Use it.
4933 (walk_blocks_callback_func): New typedef.
4934 (match_blocktype): New function.
4935 (traceframe_walk_blocks): New function.
4936 (traceframe_find_block_type): New function.
4937 (tfile_fetch_registers, tfile_xfer_partial)
4938 (tfile_get_trace_state_variable_value): Use
4939 traceframe_find_block_type and tfile_read.
4940
cdefc55d
KB
49412011-01-26 Kevin Buettner <kevinb@redhat.com>
4942
4943 * remote-mips.c: Add internationalization mark ups. Remove
4944 trailing \n from already marked up strings.
4945
a81766d8
TT
49462011-01-26 Tom Tromey <tromey@redhat.com>
4947
4948 * python/py-prettyprint.c (print_string_repr): Clear
4949 'addressprint' option when calling val_print_string.
4950 (print_children): Handle Val_pretty_default. Clear 'addressprint'
4951 option when calling val_print_string.
4952
74aedc46
TT
49532011-01-26 Tom Tromey <tromey@redhat.com>
4954
4955 * python/python.c (gdbpy_solib_name): Use gdb_py_longest and
4956 GDB_PY_LL_ARG.
4957 * python/python-internal.h (GDB_PY_LL_ARG, GDB_PY_LLU_ARG): New
4958 macros.
4959 (gdb_py_longest, gdb_py_ulongest): New typedefs.
4960 (gdb_py_long_from_longest, gdb_py_long_from_ulongest)
4961 (gdb_py_long_as_ulongest): New defines.
4962 (gdb_py_object_from_longest, gdb_py_object_from_ulongest)
4963 (gdb_py_int_as_long): Declare.
4964 * python/py-value.c (valpy_lazy_string): Use gdb_py_longest,
4965 GDB_PY_LL_ARG, gdb_py_object_from_longest.
4966 (valpy_long): Add comment.
4967 * python/py-utils.c (get_addr_from_python): Use
4968 gdb_py_long_as_ulongest. Handle overflow properly.
4969 (gdb_py_object_from_longest): New function.
4970 (gdb_py_object_from_ulongest): Likewise.
4971 (gdb_py_int_as_long): Likewise.
4972 * python/py-type.c (typy_array): Use gdb_py_int_as_long.
4973 * python/py-symtab.c (salpy_get_pc): Use
4974 gdb_py_long_from_ulongest.
4975 (salpy_get_line): Use PyInt_FromLong.
4976 * python/py-param.c (set_parameter_value): Use
4977 gdb_py_int_as_long.
4978 * python/py-lazy-string.c (stpy_get_address): Use
4979 gdb_py_long_from_ulongest.
4980 * python/py-frame.c (frapy_pc): Use gdb_py_long_from_ulongest.
4981 * python/py-cmd.c (cmdpy_completer): Use gdb_py_int_as_long.
4982 * python/py-breakpoint.c (bppy_set_thread): Use
4983 gdb_py_int_as_long.
4984 (bppy_set_task): Likewise.
4985 (bppy_set_ignore_count): Likewise.
4986 (bppy_set_hit_count): Likewise.
4987 * python/py-block.c (blpy_get_start): Use
4988 gdb_py_object_from_ulongest.
4989 (blpy_get_end): Likewise.
4990 (gdbpy_block_for_pc): Use gdb_py_ulongest and GDB_PY_LLU_ARG.
4991
e4f6d2ec
TJB
49922011-01-25 Mathieu Lacage <mathieu.lacage@inria.fr>
4993
4994 PR/symtab 11766:
4995 * gdb/objfiles.h (struct objfile) <addr_low>: New field.
4996 * gdb/solib.c (solib_read_symbols): Check for addr_low in
4997 equality test for objfile, initialize addr_low if needed.
4998
b30aa278
PA
49992011-01-25 Pedro Alves <pedro@codesourcery.com>
5000
5001 * tui/tui-regs.c (tui_register_format): Remove dead code.
5002
ab2188aa
PA
50032011-01-25 Pedro Alves <pedro@codesourcery.com>
5004
5005 * printcmd.c (print_formatted): Use val_print_scalar_formatted
5006 instead of print_scalar_formatted.
5007 (print_scalar_formatted): Don't handle 's' format strings here,
5008 and add an assertion that we never see such format here.
5009 * valprint.h (val_print_scalar_formatted): Declare.
5010 * valprint.c (val_print_scalar_formatted): New.
5011 * c-valprint.c (c_val_print): Use val_print_scalar_formatted
5012 instead of print_scalar_formatted.
5013 * jv-valprint.c (java_val_print): Ditto.
5014 * p-valprint.c (pascal_val_print): Ditto.
5015 * ada-valprint.c (ada_val_print_1): Ditto.
5016 * f-valprint.c (f_val_print): Ditto.
5017 * infcmd.c (registers_info): Ditto.
5018 * m2-valprint.c (m2_val_print): Ditto.
5019
66d61a4c
PA
50202011-01-25 Pedro Alves <pedro@codesourcery.com>
5021
5022 * m2-valprint.c (print_unbounded_array): Pass
5023 value_contents_for_printing rather than value_contents, to
5024 m2_print_array_contents. Also pass in the value.
5025
831adc1f
JK
50262011-01-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5027
5028 * dwarf2read.c (dwarf2_read_index, write_psymtabs_to_index)
5029 (save_gdb_index_command): Switch to .gdb_index version 4.
5030
20622269
PA
50312011-01-25 Pedro Alves <pedro@codesourcery.com>
5032
5033 * mi/mi-main.c (get_register): Use get_frame_register_value rather
5034 than frame_register, and always pass a valid value to val_print.
5035
585fdaa1
PA
50362011-01-25 Pedro Alves <pedro@codesourcery.com>
5037
5038 Centralize printing "<optimized out>".
5039
5040 * valprint.h (val_print_optimized_out): Declare.
5041 * cp-valprint.c (cp_print_value_fields): Use
5042 val_print_optimized_out.
5043 * jv-valprint.c (java_print_value_fields): Ditto.
5044 * p-valprint.c (pascal_object_print_value_fields): Ditto.
5045 * printcmd.c (print_formatted): Ditto.
5046 * valprint.c (valprint_check_validity): Ditto.
5047 (value_check_printable): Ditto.
5048 (val_print_optimized_out): New.
5049
29ec5263
PA
50502011-01-25 Pedro Alves <pedro@codesourcery.com>
5051
5052 * infcmd.c (default_print_registers_info): Allocate values so to
5053 never pass a NULL value to val_print.
5054
de4127a3
PA
50552011-01-25 Pedro Alves <pedro@codesourcery.com>
5056
5057 * cp-valprint.c (cp_print_value): Treat the 'skip' local as
5058 boolean. Make sure to always pass a value that matches the
5059 contents buffer to callees. Preserve `address' for following
5060 iterations.
5061 * value.c (value_contents_for_printing_const): New.
5062 (value_address): Constify value argument.
5063 * value.h (value_contents_for_printing_const): Declare.
5064 (value_address): Constify value argument.
5065
ee99023e
PA
50662011-01-25 Pedro Alves <pedro@codesourcery.com>
5067
5068 * regcache.c (struct regcache_descr): Rename
5069 sizeof_raw_register_valid_p field to sizeof_raw_register_status,
5070 and sizeof_cooked_register_valid_p to
5071 sizeof_cooked_register_status.
5072 (init_regcache_descr): Adjust.
5073 (struct regcache): Rename register_valid_p field to
5074 register_status.
5075 (regcache_xmalloc_1, regcache_xfree, regcache_save)
5076 (do_cooked_read): Adjust.
5077 (regcache_valid_p): Rename to ...
5078 (regcache_register_status): ... this. Adjust.
5079 (regcache_invalidate): Adjust.
5080 (regcache_raw_read, regcache_cooked_read, regcache_raw_write):
5081 Adjust.
5082 (regcache_raw_supply): Adjust. If buf i NULL, mark the register
5083 as unavailable, not valid.
5084 (regcache_dump): Adjust.
5085 * regcache.h (enum register_status): New.
5086 (regcache_register_status): Declare.
5087 (regcache_invalidate): Delete declaration.
5088 * corelow.c (get_core_registers): Adjust.
5089 * tracepoint.c (tfile_fetch_registers): Adjust.
5090 * trad-frame.c (REG_VALUE): Rename to ...
5091 (TF_REG_VALUE): ... this.
5092 (REG_UNKNOWN): Rename to ...
5093 (TF_REG_UNKNOWN): ... this.
5094 (trad_frame_set_value, trad_frame_set_unknown): Adjust.
5095 * mi/mi-main.c (register_changed_p): Adjust.
5096
99e42fd8
PA
50972011-01-25 Pedro Alves <pedro@codesourcery.com>
5098
5099 * regcache.c (struct regcache_descr): Remove outdated comment.
5100 (init_regcache_descr): Remove sizeof_raw_register_valid_p
5101 overallocate hack.
5102 (regcache_xmalloc): Rename to ...
5103 (regcache_xmalloc_1): ... this. Add `readonly_p' parameter.
5104 Allocate the regcache type accordingly.
5105 (regcache_xmalloc): New as wrapper around regcache_xmalloc_1.
5106 (regcache_xfree): Asser the source is also readonly. Copy sizeof
5107 cooked registers, not raw.
5108 (regcache_dup_no_passthrough): Delete.
5109 (get_thread_arch_regcache): Use regcache_xmalloc_1.
5110 * h8300-tdep.c (h8300_push_dummy_call): Tweak comment to not
5111 mention obsolete write_register_bytes.
5112 * regcache.h (regcache_dup_no_passthrough): Delete declaration.
5113
f7605bc2
PA
51142011-01-25 Pedro Alves <pedro@codesourcery.com>
5115
5116 Stop remote_read_bytes from handling partial reads itself.
5117
5118 * remote-fileio.c: Include target.h.
5119 (remote_fileio_write_bytes): Delete.
5120 (remote_fileio_func_open, remote_fileio_func_write)
5121 (remote_fileio_func_rename, remote_fileio_func_unlink): Use
5122 target_read_memory.
5123 (remote_fileio_func_stat): Use target_read_memory and
5124 target_write_memory.
5125 (remote_fileio_func_gettimeofday): Use target_write_memory.
5126 (remote_fileio_func_system): Use target_read_memory.
5127 * remote.c (remote_write_bytes): Make it static.
5128 (remote_read_bytes): Don't handle partial reads here.
5129 * remote.h (remote_read_bytes): Delete declaration.
5130
efc0eabd
PA
51312011-01-25 Pedro Alves <pedro@codesourcery.com>
5132
5133 Simplify XML parsing a bit.
5134
5135 * xml-support.h (gdb_xml_parse_quick): Declare.
5136 * xml-support.c (gdb_xml_create_parser_and_cleanup_1): Renamed
5137 from gdb_xml_create_parser_and_cleanup, and added `old_chain'
5138 parameter.
5139 (gdb_xml_create_parser_and_cleanup): Reimplement on top of
5140 gdb_xml_create_parser_and_cleanup_1.
5141 (gdb_xml_parse_quick): New.
5142 * memory-map.c (parse_memory_map): Use gdb_xml_parse_quick.
5143 * osdata.c (osdata_parse): Ditto.
5144 * remote.c (remote_threads_info): Ditto.
5145 * solib-target.c (solib_target_parse_libraries): Ditto.
5146 * xml-syscall.c (syscall_parse_xml): Ditto.
5147 * xml-tdesc.c (tdesc_parse_xml): Ditto.
5148
314d366a
KB
51492011-01-24 Kevin Buettner <kevinb@redhat.com>
5150
5151 * configure.tgt (mips*-*-elf): New; just like mips*-*-*, but
5152 with remote-mips.o added to gdb_target_obs.
5153 * Makefile.in (ALL_TARGET_OBS): Add remote-mips.o.
5154
a491d753
PA
51552011-01-24 Pedro Alves <pedro@codesourcery.com>
5156
5157 * ada-valprint.c (val_print_packed_array_elements): Pass the
5158 correct struct value to val_print.
5159 (ada_val_print_1): Ditto.
5160
490f124f
PA
51612011-01-24 Pedro Alves <pedro@codesourcery.com>
5162
5163 Don't lose embedded_offset in printing routines throughout.
5164
5165 * valprint.h (val_print_array_elements): Change prototype.
5166 * valprint.c (val_print_array_elements): Add `embedded_offset'
5167 parameter, and adjust to pass it down to val_print, while passing
5168 `valaddr' or `address' unmodified. Take embedded_offset into
5169 account when checking repetitions.
5170 * c-valprint.c (c_val_print): Pass embedded_offset to
5171 val_print_array_elements instead of adjusting `valaddr' and
5172 `address'.
5173 * m2-valprint.c (m2_print_array_contents, m2_val_print): Pass
5174 embedded_offset to val_print_array_elements instead of adjusting
5175 `valaddr'.
5176 * p-lang.h (pascal_object_print_value_fields): Adjust prototype.
5177 * p-valprint.c (pascal_val_print): Pass embedded_offset to
5178 val_print_array_elements and pascal_object_print_value_fields
5179 instead of adjusting `valaddr'.
5180 (pascal_object_print_value_fields): Add `offset' parameter, and
5181 adjust to use it.
5182 (pascal_object_print_value): Add `offset' parameter, and adjust to
5183 use it.
5184 (pascal_object_print_static_field): Use
5185 value_contents_for_printing/value_embedded_offset, rather than
5186 value_contents.
5187 * ada-valprint.c (val_print_packed_array_elements): Add `offset'
5188 parameter, and adjust to use it. Use
5189 value_contents_for_printing/value_embedded_offset, rather than
5190 value_contents.
5191 (ada_val_print): Rename `valaddr0' parameter to `valaddr'.
5192 (ada_val_print_array): Add `offset' parameter, and adjust to use
5193 it.
5194 (ada_val_print_1): Rename `valaddr0' parameter to `valaddr', and
5195 `embedded_offset' to `offset'. Don't re-adjust `valaddr'.
5196 Instead work with offsets. Use
5197 value_contents_for_printing/value_embedded_offset, rather than
5198 value_contents. Change `defer_val_int' local type to CORE_ADDR,
5199 and use value_from_pointer to extract a target pointer, rather
5200 than value_from_longest.
5201 (print_variant_part): Add `offset' parameter. Replace
5202 `outer_valaddr' parameter by a new `outer_offset' parameter.
5203 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5204 (ada_value_print): Use
5205 value_contents_for_printing/value_embedded_offset, rather than
5206 value_contents.
5207 (print_record): Add `offset' parameter, and adjust to pass it
5208 down.
5209 (print_field_values): Add `offset' parameter. Replace
5210 `outer_valaddr' parameter by a new `outer_offset' parameter.
5211 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5212 Use value_contents_for_printing/value_embedded_offset, rather than
5213 value_contents.
5214 * d-valprint.c (dynamic_array_type): Use
5215 value_contents_for_printing/value_embedded_offset, rather than
5216 value_contents.
5217 * jv-valprint.c (java_print_value_fields): Add `offset' parameter.
5218 Don't re-adjust `valaddr'. Instead pass down adjusted offsets.
5219 (java_print_value_fields): Take `offset' into account. Don't
5220 re-adjust `valaddr'. Instead pass down adjusted offsets.
5221 (java_val_print): Take `embedded_offset' into account. Pass it to
5222 java_print_value_fields.
5223 * f-valprint.c (f77_print_array_1): Add `embedded_offset'
5224 parameter. Don't re-adjust `valaddr' or `address'. Instead pass
5225 down adjusted offsets.
5226 (f77_print_array): Add `embedded_offset' parameter. Pass it down.
5227 (f_val_print): Take `embedded_offset' into account.
5228
7bfc9434
JB
52292011-01-21 Joel Brobecker <brobecker@adacore.com>
5230
5231 * inflow.c: Include "gdbcmd.h".
5232 (interactive_mode): New static global, moved here from top.c.
5233 (show_interactive_mode): New function, moved here from top.c.
5234 use gdb_has_a_terminal instead of input_from_terminal_p to
5235 determine the current mode.
5236 (gdb_has_a_terminal): Add handling of the "iteractive-mode"
5237 setting.
5238 (_initialize_inflow): Add the "set/show interactive-mode"
5239 commands. Moved here from top.c, after having adjusted slightly
5240 the help text.
5241 * top.c (interactive_mode, show_interactive_mode): Delete, moved
5242 to inflow.c.
5243 (input_from_terminal_p): Remove handling of "interactive-mode"
5244 setting, moved to infow.c.
5245 (init_main): Remove creation of the "set/show interactive-mode"
5246 commands, moved to inflow.c.
5247
44603653
JB
52482011-01-19 Joel Brobecker <brobecker@adacore.com>
5249
5250 * NEWS: Add entry for native ia64-hpux support.
5251
4694da01
TT
52522011-01-19 Tom Tromey <tromey@redhat.com>
5253
5254 PR mi/8618:
5255 * thread.c (free_thread): Free 'name'.
5256 (print_thread_info): Emit thread name. Change CLI output.
5257 (thread_name_command): New function.
5258 (do_captured_thread_select): Emit newline.
5259 (_initialize_thread): Register 'thread name' command.
5260 * target.h (struct target_ops) <to_thread_name>: New field.
5261 (target_thread_name): New macro.
5262 * target.c (update_current_target): Handle to_thread_name.
5263 * python/py-infthread.c (thpy_get_name): New function.
5264 (thpy_set_name): Likewise.
5265 (thread_object_getset): Add "name".
5266 * linux-nat.c (linux_nat_thread_name): New function.
5267 (linux_nat_add_target): Set to_thread_name.
5268 * gdbthread.h (struct thread_info) <name>: New field.
5269
10d44370
JB
52702011-01-18 Joel Brobecker <brobecker@adacore.com>
5271
5272 * ada-valprint.c (ada_print_scalar): Remove unsigned char downcast.
5273 (ada_val_print_1): Likewise.
5274
e3acb115
JB
52752011-01-18 Joel Brobecker <brobecker@adacore.com>
5276
5277 * rs6000-tdep.c (rs6000_skip_prologue): Make sure that the prologue
5278 upper limit address is not greater than the function end address
5279 when the upper limit could not be computed using the debugging
5280 info.
5281
dc92e161
TT
52822011-01-17 Tom Tromey <tromey@redhat.com>
5283
5284 * cli/cli-cmds.c (apropos_command): Free the compiled regex. Use
5285 get_regcomp_error.
5286 * utils.c: Include gdb_regex.h.
5287 (do_regfree_cleanup): New function.
5288 (make_regfree_cleanup): Likewise.
5289 (get_regcomp_error): Likewise.
5290 * gdb_regex.h (make_regfree_cleanup, get_regcomp_error): Declare.
5291
f55af66d
TT
52922011-01-17 Tom Tromey <tromey@redhat.com>
5293
5294 * cli/cli-cmds.c (apropos_command): Fix formatting. Don't call
5295 re_compile_fastmap.
5296
a5a44b53
PM
52972011-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
5298
5299 * p-exp.y (intvar): New static variable, used to set CURRENT_TYPE
5300 for internal variables.
5301 (last_was_structop): New static variable.
5302 (COMPLETE): New token.
5303 (field_exp): New rule to group all '.' suffix handling.
5304 Add mark_struct_expression calls when approriate to be able
5305 to correctly find fields for completion.
5306 (yylex): Adapt to handle field completion and set INTVAR when
5307 required.
5308
2c291032
YQ
53092011-01-14 Yao Qi <yao@codesourcery.com>
5310
5311 * arm-tdep.c (arm_register_reggroup_p): FPS register is in
5312 save_reggroup, restore_reggroup and all_reggroup.
5313
447b483c
JB
53142011-01-14 Joel Brobecker <brobecker@adacore.com>
5315
5316 * ada-valprint. (ada_printchar): Use the correct type length
5317 in call to ada_emit_char.
5318 * c-valprint.c (c_val_print): Remove cast in call to LA_PRINT_CHAR.
5319
7b64a93b
PM
53202011-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
5321
5322 * solib-som.h (hpux_major_release): Declare variable here.
5323 * solib-som.c: Remove <sys/utsname.h> header.
5324 (DEFAULT_HPUX_MAJOR_RELEASE): New macro.
5325 (hpux_major_release): Make global, change default value to
5326 DEFAULT_HPUX_MAJOR_RELEASE.
f2eb0bc8 5327 (get_hpux_major_release): Simply return HPUX_MAJOR_RELEASE.
7b64a93b
PM
5328 * hppa-hpux-nat.c: Add <sys/utsname.h> include.
5329 Add "solib-som.h" header.
5330 (set_hpux_major_release): New function.
5331 (_initialize_hppa_hpux_nat): Call set_hpux_major_release.
5332
4e18c053
MF
53332011-01-14 Mike Frysinger <vapier@gentoo.org>
5334
5335 * configure.tgt (*-*-uclinux*): Match more Linux os targets
5336
a9df6b22
JB
53372011-01-14 Joel Brobecker <brobecker@adacore.com>
5338
5339 * ia64-hpux-nat.c (ia64_hpux_fetch_register): Remove trailing
5340 new-line at end of warning message.
5341 (ia64_hpux_store_register): Remove trailing new-line at end of
5342 error message.
5343 * ia64-hpux-tdep.c: Rephrase comment.
5344 * solib-ia64-hpux.c (struct dld_info): Change type of field
5345 dld_flags from "long long" to ULONGEST.
5346
ecb956dd
PA
53472011-01-14 Pedro Alves <pedro@codesourcery.com>
5348
5349 * target.h (deprecated_child_ops): Delete declaration.
5350 * target.c (deprecated_child_ops): Delete definition.
5351
76adfcae
PA
53522011-01-14 Pedro Alves <pedro@codesourcery.com>
5353
5354 * Makefile.in (hpux-thread.o): Delete rule.
5355 * configure.ac: Don't check for HPUX DCE threads support.
5356 * configure, config.in: Regenerate.
5357 * hppa-hpux-nat.c (child_suppress_run): Delete.
5358 (hppa_hpux_child_can_run): Delete.
5359 (_initialize_hppa_hpux_nat): Don't override to_can_run.
5360 * hpux-thread.c: Delete.
5361
042e866e
JB
53622011-01-13 Joel Brobecker <brobecker@adacore.com>
5363
5364 * hpux-thread.c (hpux_pid_to_str): Delete.
5365
4ffa5a33
JB
53662011-01-13 Joel Brobecker <brobecker@adacore.com>
5367
5368 * ada-valprint.c (ada_emit_char): Remove strange code.
5369 Check that c is <= UCHAR_MAX before passing it to isascii.
5370 (char_at): Do not assume that TYPE_LEN is either 1 or 2.
5371
de8fa76c
JB
53722011-01-13 Joel Brobecker <brobecker@adacore.com>
5373
5374 * top.c (input_from_terminal_p): Restrict the use of interactive_mode
5375 to the case where instream is stdin.
5376
c4de7027
JB
53772011-01-13 Joel Brobecker <brobecker@adacore.com>
5378
5379 * ia64-tdep.h (struct regcache): Forward declare.
5380 (struct ia64_infcall_ops): New struct type.
5381 (struct gdbarch_tdep): New fields "find_global_pointer_from_solib"
5382 and "infcall_ops".
5383 * ia64-tdep.c (ia64_find_global_pointer_from_dynamic_section):
5384 Renames ia64_find_global_pointer.
5385 (ia64_find_global_pointer, ia64_allocate_new_rse_frame)
5386 (ia64_store_argument_in_slot, ia64_set_function_addr: New function.
5387 (ia64_push_dummy_call): Adjust to use the new tdep ia64_infocall_ops
5388 methods.
5389 (ia64_infcall_ops): New static global constant.
5390 (ia64_gdbarch_init): Set tdep->infcall_ops.
5391 * ia64-hpux-nat.c (ia64_hpux_xfer_solib_got): New function.
5392 (ia64_hpux_xfer_partial): Add TARGET_OBJECT_HPUX_SOLIB_GOT handing.
5393 * ia64-hpux-tdep.c: Include "regcache.h", "gdbcore.h" and "inferior.h".
5394 (ia64_hpux_dummy_code): New static global constant.
5395 (ia64_hpux_push_dummy_code, ia64_hpux_allocate_new_rse_frame)
5396 (ia64_hpux_store_argument_in_slot, ia64_hpux_set_function_addr)
5397 (ia64_hpux_dummy_id, ia64_hpux_find_global_pointer_from_solib):
5398 New function.
5399 (ia64_hpux_infcall_ops): New static global constant.
5400 (ia64_hpux_init_abi): Install gdbarch and tdep methods needed
5401 for inferior function calls to work properly on ia64-hpux.
5402
77ca787b
JB
54032011-01-13 Joel Brobecker <brobecker@adacore.com>
5404
5405 * target.h (enum target_object): Add TARGET_OBJECT_HPUX_UREGS.
5406 * ia64-tdep.h (struct frame_info): forward declaration.
5407 (struct gdbarch_tdep): Add field size_of_register_frame.
5408 * ia64-tdep.c (ia64_access_reg): Use tdep->size_of_register_frame
5409 to determine the size of the register frame.
5410 (ia64_size_of_register_frame): New function.
5411 (ia64_gdbarch_init): Set tdep->size_of_register_frame.
5412 * ia64-hpux-tdep.c: Include "target.h" and "frame.h".
5413 (IA64_HPUX_UREG_REASON): New macro.
5414 (ia64_hpux_stopped_in_syscall, ia64_hpux_size_of_register_frame):
5415 New functions.
5416 (ia64_hpux_init_abi): Set tdep->size_of_register_frame.
5417 * ia64-hpux-nat.c (ia64_hpux_xfer_uregs): New function.
5418 (ia64_hpux_xfer_partial): Add handling of TARGET_OBJECT_HPUX_UREGS
5419 objects.
5420
92c9a463
JB
54212011-01-13 Joel Brobecker <brobecker@adacore.com>
5422
5423 Add support for ia64-hpux.
5424 * config/ia64/hpux.mh, ia64-hpux-nat.c, ia64-hpux-tdep.c,
5425 ia64-hpux-tdep.h, solib-ia64-hpux.c, solib-ia64-hpux.h: New files.
5426
5427 * configure.host: Add handling for ia64-hpux hosts. Add associated
5428 floatformats.
5429 * configure.tgt: Add handling for ia64-hpux targets.
5430 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-hpux-tdep.o.
5431 (HFILES_NO_SRCDIR): Add ia64-hpux-tdep.h.
5432 (ALLDEPFILES): Add ia64-hpux-nat.c ia64-hpux-tdep.c.
5433
f688d93f
JB
54342011-01-13 Joel Brobecker <brobecker@adacore.com>
5435
5436 [ttrace] Compute thread list immediately after attach.
5437 * inf_ttrace_attach (inf_ttrace_create_threads_after_attach):
5438 New subprogram.
5439 (inf_ttrace_attach): Use it.
5440
1b89e62f
JB
54412011-01-13 Joel Brobecker <brobecker@adacore.com>
5442
5443 * libunwind-frame.c (libunwind_frame_cache): Do not return NULL
5444 if we could not determine the frame's function address. Instead,
5445 use the frame's PC, and then continue.
5446
3e5e6e2a
JB
54472011-01-13 Joel Brobecker <brobecker@adacore.com>
5448
5449 * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
5450 not already defined.
5451
825d6d8a
JB
54522011-01-13 Joel Brobecker <brobecker@adacore.com>
5453
5454 * ia64-tdep.c (ia64_struct_type_p): New function.
5455 (ia64_extract_return_value): Handle integral values that are
5456 less than 8 bytes long.
5457 (ia64_push_dummy_call): Likewise.
5458
7458e667
JB
54592011-01-13 Joel Brobecker <brobecker@adacore.com>
5460
5461 * ia64-tdep.c (floatformat_ia64_ext_little): Renames
5462 floatformat_ia64_ext.
5463 (floatformat_ia64_ext_big): New static const.
5464 (floatformats_ia64_ext): Set first entry to &floatformat_ia64_ext_big.
5465
1b05df00
TT
54662011-01-12 Tom Tromey <tromey@redhat.com>
5467
5468 * mi/mi-symbol-cmds.c (mi_cmd_symbol_list_lines): Fix error
5469 messages.
5470 * mi/mi-main.c (mi_cmd_thread_select): Fix error messages.
5471 (mi_cmd_thread_list_ids): Likewise.
5472 (mi_cmd_data_list_changed_registers): Likewise.
5473 (mi_cmd_data_list_register_values): Likewise.
5474 (mi_cmd_data_write_register_values): Likewise.
5475 (mi_cmd_data_evaluate_expression): Likewise.
5476 (mi_cmd_data_read_memory): Likewise.
5477 (mi_cmd_data_read_memory_bytes): Likewise.
5478 (mi_cmd_data_write_memory): Likewise.
5479 (mi_cmd_enable_timings): Likewise.
5480 * mi/mi-interp.c (mi_cmd_interpreter_exec): Fix error messages.
5481 * mi/mi-cmd-var.c (mi_cmd_var_create): Fix error messages.
5482 (mi_cmd_var_delete): Likewise.
5483 (mi_cmd_var_set_format): Likewise.
5484 (mi_cmd_var_show_format): Likewise.
5485 (mi_cmd_var_info_num_children): Likewise.
5486 (mi_cmd_var_list_children): Likewise.
5487 (mi_cmd_var_info_type): Likewise.
5488 (mi_cmd_var_info_expression): Likewise.
5489 (mi_cmd_var_show_attributes): Likewise.
5490 (mi_cmd_var_assign): Likewise.
5491 (mi_cmd_var_update): Likewise.
5492 (mi_cmd_enable_pretty_printing): Likewise.
5493 (mi_cmd_var_set_update_range): Likewise.
5494 * mi/mi-cmd-target.c (mi_cmd_target_file_get): Fix error
5495 messages.
5496 (mi_cmd_target_file_put): Likewise.
5497 (mi_cmd_target_file_delete): Likewise.
5498 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Fix error
5499 messages.
5500 (mi_cmd_stack_info_depth): Likewise.
5501 (mi_cmd_stack_list_locals): Likewise.
5502 (mi_cmd_stack_list_args): Likewise.
5503 (mi_cmd_stack_select_frame): Likewise.
5504 (mi_cmd_stack_select_frame): Likewise.
5505 (mi_cmd_stack_info_frame): Likewise.
5506 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Fix error
5507 messages.
5508 (mi_cmd_file_list_exec_source_files): Likewise.
5509 * mi/mi-cmd-env.c (mi_cmd_env_pwd): Fix error messages.
5510 (mi_cmd_env_cd): Likewise.
5511 (mi_cmd_env_path): Likewise.
5512 (mi_cmd_env_dir): Likewise.
5513 (mi_cmd_inferior_tty_show): Likewise.
5514 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Fix error messages.
5515 * mi/mi-cmd-break.c (mi_cmd_break_insert): Fix error messages.
5516 (mi_cmd_break_watch): Likewise.
5517
ad422571
TJB
55182011-01-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
5519
5520 * ppc-linux-nat.c (booke_cmp_hw_point): Fix whitespace.
5521 (ppc_linux_insert_hw_breakpoint): Likewise.
5522 (ppc_linux_remove_hw_breakpoint): Likewise.
5523 (ppc_linux_insert_watchpoint): Likewise.
5524
c2ff108b
JK
55252011-01-12 Andrew Burgess <aburgess@broadcom.com>
5526 Jan Kratochvil <jan.kratochvil@redhat.com>
5527
5528 PR fortran/11104 and DWARF unbound arrays detection.
5529 * dwarf2read.c (read_subrange_type): Set zero length on unspecified
5530 upper bound. Set TYPE_HIGH_BOUND_UNDEFINED if not language_ada on
5531 unspecified upper bound.
5532 * eval.c (evaluate_subexp_standard) <multi_f77_subscript>: Remove
5533 variables array_size_array, tmp_type and offset_item. New variable
5534 array. Remove call to f77_get_upperbound. New variables array_type
5535 and index. Call value_subscripted_rvalue for each dimenasion. Remove
5536 the final call to deprecated_set_value_type.
5537
41e8491f
JK
55382011-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5539
5540 Make value allocations more lazy.
5541 * ada-lang.c (coerce_unspec_val_to_type): Use allocate_value_lazy
5542 instead of allocate_value and set_value_lazy when possible.
f2eb0bc8 5543 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Use allocate_value_lazy
41e8491f
JK
5544 instead of allocate_value and set_value_lazy.
5545 * findvar.c (value_of_register_lazy): Likewise.
5546 (read_var_value): Remove V preallocation, call just check_typedef in
f2eb0bc8 5547 advance. Move allocate_value to LOC_CONST, LOC_LABEL,
41e8491f
JK
5548 LOC_CONST_BYTES. Use allocate_value_lazy in LOC_STATIC, LOC_ARG,
5549 LOC_REF_ARG, LOC_LOCAL, LOC_BLOCK. Set ADDR instead of
5550 set_value_address and break in LOC_BLOCK. Use allocate_value_lazy and
5551 remove lval_memory set in LOC_REGPARM_ADDR. Use allocate_value_lazy
5552 in LOC_UNRESOLVED and LOC_OPTIMIZED_OUT. Add setting lval_memory at
5553 the end, remove set_value_lazy there.
5554 * valarith.c (value_subscripted_rvalue): Use allocate_value_lazy
5555 instead of allocate_value and set_value_lazy when possible.
5556 * valops.c (value_fetch_lazy): Do nop for value_optimized_out VAL.
5557 * value.c (allocate_computed_value): Use allocate_value_lazy instead
5558 of allocate_value and set_value_lazy.
5559 (value_from_contents_and_address): Use allocate_value_lazy instead of
5560 allocate_value and set_value_lazy when possible.
5561
b716877b
AB
55622011-01-12 Andrew Burgess <aburgess@broadcom.com>
5563
5564 * disasm.c (dump_insns): Support dumping opcodes for MI.
5565 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Allow mode to control
5566 dumping of instruction opcodes.
5567
d5ae309f
JB
55682011-01-09 Robert Millan <rmh@gnu.org> (tiny patch)
5569
5570 * configure.tgt: Detect GNU/kFreeBSD and set `gdb_osabi'
5571 appropiately.
5572
98871305
TT
55732011-01-11 Tom Tromey <tromey@redhat.com>
5574
5575 * thread.c (do_captured_thread_select): Emit newline before
5576 printing frame.
5577
c378eb4e
MS
55782011-01-11 Michael Snyder <msnyder@vmware.com>
5579
5580 * s390-tdep.c: Comment cleanup, mostly periods and spaces.
5581 * score-tdep.c: Ditto.
5582 * score-tdep.h: Ditto.
5583 * ser-base.c: Ditto.
5584 * ser-go32.c: Ditto.
5585 * serial.c: Ditto.
5586 * serial.h: Ditto.
5587 * ser-mingw.c: Ditto.
5588 * ser-pipe.c: Ditto.
5589 * ser-tcp.c: Ditto.
5590 * ser-unix.c: Ditto.
5591 * sh64-tdep.c: Ditto.
5592 * shnbsd-nat.c: Ditto.
5593 * sh-tdep.c: Ditto.
5594 * sh-tdep.h: Ditto.
5595 * solib.c: Ditto.
5596 * solib-darwin.c: Ditto.
5597 * solib-frv.c: Ditto.
5598 * solib.h: Ditto.
5599 * solib-irix.c: Ditto.
5600 * solib-osf.c: Ditto.
5601 * solib-pa64.c: Ditto.
5602 * solib-som.c: Ditto.
5603 * solib-spu.c: Ditto.
5604 * solib-sunos.c: Ditto.
5605 * solib-svr4.c: Ditto.
5606 * solist.h: Ditto.
5607 * sol-thread.c: Ditto.
5608 * somread.c: Ditto.
5609 * source.c: Ditto.
5610 * source.h: Ditto.
5611 * sparc64-linux-tdep.c: Ditto.
5612 * sparc64-tdep.c: Ditto.
5613 * sparc-linux-nat.c: Ditto.
5614 * sparc-linux-tdep.c: Ditto.
5615 * sparc-sol2-nat.c: Ditto.
5616 * sparc-sol2-tdep.c: Ditto.
5617 * sparc-tdep.c: Ditto.
5618 * sparc-tdep.h: Ditto.
5619 * spu-tdep.c: Ditto.
5620 * stabsread.c: Ditto.
5621 * stabsread.h: Ditto.
5622 * stack.c: Ditto.
5623 * symfile.c: Ditto.
5624 * symfile.h: Ditto.
5625 * symmisc.c: Ditto.
5626 * symtab.c: Ditto.
5627 * symtab.h: Ditto.
5628 * target.c: Ditto.
5629 * target-descriptions.c: Ditto.
5630 * target-descriptions.h: Ditto.
5631 * target.h: Ditto.
5632 * target-memory.c: Ditto.
5633 * terminal.h: Ditto.
5634 * thread.c: Ditto.
5635 * top.c: Ditto.
5636 * tracepoint.c: Ditto.
5637 * tracepoint.h: Ditto.
5638 * trad-frame.h: Ditto.
5639 * typeprint.c: Ditto.
5640
581e13c1
MS
56412011-01-11 Michael Snyder <msnyder@vmware.com>
5642
5643 * ui-file.c: Comment cleanup, mostly periods and spaces.
5644 * ui-file.h: Ditto.
5645 * ui-out.c: Ditto.
5646 * ui-out.h: Ditto.
5647 * utils.c: Ditto.
5648 * v850-tdep.c: Ditto.
5649 * valarith.c: Ditto.
5650 * valops.c: Ditto.
5651 * valprint.c: Ditto.
5652 * valprint.h: Ditto.
5653 * value.c: Ditto.
5654 * value.h: Ditto.
5655 * varobj.c: Ditto.
5656 * varobj.h: Ditto.
5657 * vax-tdep.c: Ditto.
5658 * vec.c: Ditto.
5659 * vec.h: Ditto.
5660 * version.h: Ditto.
5661 * windows-nat.c: Ditto.
5662 * windows-tdep.c: Ditto.
5663 * xcoffread.c: Ditto.
5664 * xcoffsolib.c: Ditto.
5665 * xml-support.c: Ditto.
5666 * xstormy16-tdep.c: Ditto.
5667 * xtensa-tdep.c: Ditto.
5668 * xtensa-tdep.h: Ditto.
5669
90e4670f
TJB
56702011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5671
5672 * breakpoint.c (resources_needed_watchpoint): Fix indentation.
5673 * gdbtypes.c (is_scalar_type_recursive): Fix formatting.
5674
e09342b5
TJB
56752011-01-11 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5676 Thiago Jung Bauermann <bauerman@br.ibm.com>
5677
5678 Implement support for PowerPC BookE ranged watchpoints.
f2eb0bc8 5679 * breakpoint.h
e09342b5
TJB
5680 (struct breakpoint_ops) <resources_needed>: New method.
5681 Initialize to NULL in all existing breakpoint_ops instances.
5682 (struct breakpoint) <exact>: New field.
5683 (target_exact_watchpoints): Declare external global.
5684 * breakpoint.c (target_exact_watchpoints): New global flag.
5685 (update_watchpoint): Set b->type to bp_hardware_watchpoint and
5686 b->enable_state to bp_enabled before calling
5687 hw_watchpoint_used_count.
5688 (hw_watchpoint_used_count): Iterate over all bp_locations in a
5689 watchpoint. Call breakpoint's breakpoint_ops.resources_needed
5690 if available.
5691 (insert_watchpoint, remove_watchpoint): Use fixed length of 1 byte
5692 if the watchpoint is exact.
5693 (resources_needed_watchpoint): New function.
5694 (watchpoint_breakpoint_ops): Add resources_needed_watchpoint.
5695 (watch_command_1): Set b->exact if the user asked for an exact
5696 watchpoint and one can be set.
5697 (can_use_hardware_watchpoint): Add exact_watchpoints argument.
5698 Pass fixed length of 1 to target_region_ok_for_hw_watchpoint if
5699 the user asks for an exact watchpoint and one can be set. Return
5700 number of needed debug registers to watch the expression.
5701 * gdbtypes.c (is_scalar_type): New function, based on
5702 valprint.c:scalar_type_p.
5703 (is_scalar_type_recursive): New function.
5704 * gdbtypes.h (is_scalar_type_recursive): Declare.
5705 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Always
5706 handle regions when ranged watchpoints are available.
5707 (create_watchpoint_request): New function.
5708 (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
5709 create_watchpoint_request.
5710 * rs6000-tdep.c (show_powerpc_exact_watchpoints): New function.
5711 (_initialize_rs6000_tdep): Add `exact-watchpoints' boolean to the
5712 `set powerpc' and `show powerpc' commands.
5713 * target.h (struct target_ops) <to_region_ok_for_hw_watchpoint>:
5714 Mention documentation comment in the target macro.
5715 (target_region_ok_for_hw_watchpoint): Document return value.
5716
9fa40276
TJB
57172011-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5718
5719 * breakpoint.c (update_watchpoint): Decide on using a software or
5720 hardware watchpoint after the bp_locations are created.
5721
77b06cd7
TJB
57222010-01-11 Thiago Jung Bauermann <bauerman@br.ibm.com>
5723
5724 Convert hardware watchpoints to use breakpoint_ops.
5725 * breakpoint.h (breakpoint_ops) <insert>: Rename to...
5726 <insert_location>: ... this. Return int instead of void.
5727 Accept pointer to struct bp_location instead of pointer to
5728 struct breakpoint. Adapt all implementations.
f2eb0bc8 5729 (breakpoint_ops) <remove>: Rename to...
77b06cd7
TJB
5730 <remove_location>: ... this. Accept pointer to struct bp_location
5731 instead of pointer to struct breakpoint. Adapt all implementations.
5732 * breakpoint.c (insert_catchpoint): Delete function.
5733 (insert_bp_location): Call the watchpoint or catchpoint's
5734 breakpoint_ops.insert method.
5735 (remove_breakpoint_1): Call the watchpoint or catchpoint's
5736 breakpoint_ops.remove method.
5737 (insert_watchpoint, remove_watchpoint): New functions.
5738 (watchpoint_breakpoint_ops): New structure.
5739 (watch_command_1): Initialize the OPS field.
5740 * inf-child.c (inf_child_insert_fork_catchpoint)
5741 (inf_child_remove_fork_catchpoint, inf_child_insert_vfork_catchpoint)
5742 (inf_child_remove_vfork_catchpoint, inf_child_insert_exec_catchpoint)
5743 (inf_child_remove_exec_catchpoint, inf_child_set_syscall_catchpoint):
5744 Delete functions.
5745 (inf_child_target): Remove initialization of to_insert_fork_catchpoint,
5746 to_remove_fork_catchpoint, to_insert_vfork_catchpoint,
5747 to_remove_vfork_catchpoint, to_insert_exec_catchpoint,
5748 to_remove_exec_catchpoint and to_set_syscall_catchpoint.
5749 * target.c (update_current_target): Change default implementation of
5750 to_insert_fork_catchpoint, to_remove_fork_catchpoint,
5751 to_insert_vfork_catchpoint, to_remove_vfork_catchpoint,
5752 to_insert_exec_catchpoint, to_remove_exec_catchpoint and
5753 to_set_syscall_catchpoint to return_one.
5754 (debug_to_insert_fork_catchpoint, debug_to_insert_vfork_catchpoint)
5755 (debug_to_insert_exec_catchpoint): Report return value.
5756 * target.h (to_insert_fork_catchpoint, to_insert_vfork_catchpoint)
5757 (to_insert_exec_catchpoint): Change declaration to return int instead
5758 of void.
5759
9b20d036
MS
57602011-01-11 Michael Snyder <msnyder@vmware.com>
5761
5762 * arm-tdep.c: Internationalization.
5763 * c-lang.c: Ditto.
5764 * charset.c: Ditto.
5765 * fork-child.c: Ditto.
5766 * nto-procfs.c: Ditto.
5767 * ppc-sysv-tdep.c: Ditto.
5768 * procfs.c: Ditto.
5769 * remote-mips.c: Ditto.
5770 * remote.c: Ditto.
5771 * rs6000-nat.c: Ditto.
5772 * rs6000-tdep.c: Ditto.
5773 * target.c: Ditto.
5774 * valops.c: Ditto.
5775 * value.c: Ditto.
5776 * xml-support.c: Ditto.
5777 * mi/mi-cmd-break.c: Ditto.
5778 * mi/mi-cmd-var.c: Ditto.
5779 * mi/mi-interp.c: Ditto.
5780 * mi/mi-main.c: Ditto.
5781
dae477fe
AB
57822011-01-11 Andrew Burgess <aburgess@broadcom.com>
5783
5784 * remote-sim.c (gdbsim_store_register): Update API to
5785 sim_store_register to check more error conditions.
5786
0df8b418
MS
57872011-01-10 Michael Snyder <msnyder@vmware.com>
5788
5789 * nto-procfs.c: Comment cleanup, mostly periods and spaces.
5790 * nto-tdep.c: Ditto.
5791 * nto-tdep.h: Ditto.
5792 * objc-exp.y: Ditto.
5793 * objc-lang.c: Ditto.
5794 * objfiles.c: Ditto.
5795 * objfiles.h: Ditto.
5796 * observer.c: Ditto.
5797 * opencl-lang.c: Ditto.
5798 * osabi.c: Ditto.
5799 * parse.c: Ditto.
5800 * parser-defs.h: Ditto.
5801 * p-exp.y: Ditto.
5802 * p-lang.c: Ditto.
5803 * posix-hdep.c: Ditto.
5804 * ppcbug-rom.c: Ditto.
5805 * ppc-linux-nat.c: Ditto.
5806 * ppc-linux-tdep.c: Ditto.
5807 * ppc-linux-tdep.h: Ditto.
5808 * ppcnbsd-tdep.c: Ditto.
5809 * ppcobsd-tdep.c: Ditto.
5810 * ppcobsd-tdep.h: Ditto.
5811 * ppc-sysv-tdep.c: Ditto.
5812 * ppc-tdep.h: Ditto.
5813 * printcmd.c: Ditto.
5814 * proc-abi.c: Ditto.
5815 * proc-flags.c: Ditto.
5816 * procfs.c: Ditto.
5817 * proc-utils.h: Ditto.
5818 * progspace.h: Ditto.
5819 * prologue-value.c: Ditto.
5820 * prologue-value.h: Ditto.
5821 * psympriv.h: Ditto.
5822 * psymtab.c: Ditto.
5823 * p-typeprint.c: Ditto.
5824 * p-valprint.c: Ditto.
5825 * ravenscar-sparc-thread.c: Ditto.
5826 * ravenscar-thread.c: Ditto.
5827 * ravenscar-thread.h: Ditto.
5828 * record.c: Ditto.
5829 * regcache.c: Ditto.
5830 * regcache.h: Ditto.
5831 * remote.c: Ditto.
5832 * remote-fileio.c: Ditto.
5833 * remote-fileio.h: Ditto.
5834 * remote.h: Ditto.
5835 * remote-m32r-sdi.c: Ditto.
5836 * remote-mips.c: Ditto.
5837 * remote-sim.c: Ditto.
5838 * rs6000-aix-tdep.c: Ditto.
5839 * rs6000-nat.c: Ditto.
5840 * rs6000-tdep.c: Ditto.
5841
0d7a18f7
MS
58422011-01-10 Michael Snyder <msnyder@vmware.com>
5843
5844 * charset.c (validate): Internationalization.
5845 * coffread.c (read_one_sym): Ditto.
5846 * dwarf2read.c (dwarf2_attach_fields_to_type): Ditto.
5847 * h8300-tdep.c (H8300_extract_return_value): Ditto.
5848 * inflow.c (new_tty): Ditto.
5849 * iq2000-tdep.c (iq2000_breakpoint_from_pc): Ditto.
5850 * m32c-tdep.c (m32c_return_value): Ditto.
5851 * mep-tdep.c (mep_store_return_value): Ditto.
5852 * score-tdep.c (score7_fetch_insn): Ditto.
5853 * ser-mingw.c (pipe_windows_open): Ditto.
5854 * sh64-tdep.c (sh64_extract_return_value): Ditto.
5855 * spu-tdep.c (spu_register_type): Ditto.
5856 * tracepoint.c (trace_find_command): Ditto.
5857 * valarith.c (value_pos): Ditto.
5858
9a153e0b
JB
58592011-01-10 Joel Brobecker <brobecker@adacore.com>
5860
5861 * ada-valprint.c (printstr): Minor comment reformatting.
5862
35ecd2d6
MS
58632011-01-08 Michael Snyder <msnyder@vmware.com>
5864
5865 * m32r-rom.c (m32r_upload_command): Fix up ARI warnings for _
5866 markup.
5867
1777feb0
MS
58682011-01-08 Michael Snyder <msnyder@vmware.com>
5869
5870 * h8300-tdep.c: Comment cleanup, mostly periods and spaces.
5871 * hppa-hpux-tdep.c: Ditto.
5872 * hppa-linux-nat.c: Ditto.
5873 * hppa-linux-tdep.c: Ditto.
5874 * hppanbsd-tdep.c: Ditto.
5875 * hppa-tdep.c: Ditto.
5876 * hppa-tdep.h: Ditto.
5877 * hpux-thread.c: Ditto.
5878 * i386-cygwin-tdep.c: Ditto.
5879 * i386-darwin-nat.c: Ditto.
5880 * i386gnu-nat.c: Ditto.
5881 * i386-linux-nat.c: Ditto.
5882 * i386-linux-tdep.c: Ditto.
5883 * i386-nat.c: Ditto.
5884 * i386-nat.h: Ditto.
5885 * i386nbsd-tdep.c: Ditto.
5886 * i386-sol2-nat.c: Ditto.
5887 * i386-stub.c: Ditto.
5888 * i386-tdep.c: Ditto.
5889 * i386-tdep.h: Ditto.
5890 * i387-tdep.c: Ditto.
5891 * ia64-linux-nat.c: Ditto.
5892 * ia64-linux-tdep.c: Ditto.
5893 * ia64-tdep.c: Ditto.
5894 * infcall.c: Ditto.
5895 * infcall.h: Ditto.
5896 * infcmd.c: Ditto.
5897 * inferior.c: Ditto.
5898 * inferior.h: Ditto.
5899 * infloop.c: Ditto.
5900 * inflow.c: Ditto.
5901 * infrun.c: Ditto.
5902 * interps.c: Ditto.
5903 * interps.h: Ditto.
5904 * iq2000-tdep.c: Ditto.
5905 * irix5-nat.c: Ditto.
5906 * jit.c: Ditto.
5907 * jit.h: Ditto.
5908 * jv-exp.y: Ditto.
5909 * jv-lang.c: Ditto.
5910 * jv-lang.h: Ditto.
5911 * jv-typeprint.c: Ditto.
5912 * jv-valprint.c: Ditto.
5913 * language.c: Ditto.
5914 * language.h: Ditto.
5915 * linespec.c: Ditto.
5916 * linux-fork.c: Ditto.
5917 * linux-nat.c: Ditto.
5918 * linux-thread-db.c: Ditto.
5919 * lm32-tdep.c: Ditto.
5920
025bb325
MS
59212011-01-08 Michael Snyder <msnyder@vmware.com>
5922
5923 * m2-exp.y: Comment cleanup, mostly periods and spaces.
5924 * m2-lang.c: Ditto.
5925 * m2-typeprint.c: Ditto.
5926 * m2-valprint.c: Ditto.
5927 * m32c-tdep.c: Ditto.
5928 * m32r-linux-nat.c: Ditto.
5929 * m32r-rom.c: Ditto.
5930 * m32r-tdep.c: Ditto.
5931 * m32r-tdep.h: Ditto.
5932 * m68hc11-tdep.c: Ditto.
5933 * m58klinux-nat.c: Ditto.
5934 * m68k-tdep.c: Ditto.
5935 * m88k-tdep.c: Ditto.
5936 * m88k-tdep.h: Ditto.
5937 * machoread.c: Ditto.
5938 * macrocmd.c: Ditto.
5939 * macroexp.c: Ditto.
5940 * macrotab.c: Ditto.
5941 * main.c: Ditto.
5942 * maint.c: Ditto.
5943 * mdebugread.c: Ditto.
5944 * mdebugread.h: Ditto.
5945 * memattr.c: Ditto.
5946 * memattr.h: Ditto.
5947 * memory-map.h: Ditto.
5948 * mep-tdep.c: Ditto.
5949 * microblaze-rom.c: Ditto.
5950 * microblaze-tdep.c: Ditto.
5951 * minsyms.c: Ditto.
5952 * mips-irix-tdep.c: Ditto.
5953 * mips-linux-nat.c: Ditto.
5954 * mips-linux-tdep.c: Ditto.
5955 * mips-linux-tdep.h: Ditto.
5956 * mipsnbsd-nat.c: Ditto.
5957 * mipsnbsd-tdep.c: Ditto.
5958 * mipsread.c: Ditto.
5959 * mips-tdep.c: Ditto.
5960 * mips-tdep.h: Ditto.
5961 * mn10300-linux-tdep.c: Ditto.
5962 * mn10300-tdep.c: Ditto.
5963 * mn10300-tdep.h: Ditto.
5964 * monitor.c: Ditto.
5965 * monitor.h: Ditto.
5966 * moxie-tdep.c: Ditto.
5967 * moxie-tdep.h: Ditto.
5968 * mt-tdep.c: Ditto.
5969
1642781b
MF
59702011-01-08 Mike Frysinger <vapier@gentoo.org>
5971
5972 * bfin-tdep.h (BFIN_A0_DOT_W_REGNUM): Fix typo in name.
5973
394b0adb
JB
59742011-01-08 Robert Millan <rmh@gnu.org>
5975
5976 * fbsd-nat.c (fbsd_find_memory_regions): Fix typo.
5977
b670013c
MS
59782011-01-07 Michael Snyder <msnyder@vmware.com>
5979
5980 * charset.c (_initialize_charset): Fix typo in string.
5981
a743e542
MS
59822011-01-07 Michael Snyder <msnyder@vmware.com>
5983
5984 * mi/mi-cmd-disas.c (mi_cmd_disassemble): Mark up error message
5985 for i18n.
f2eb0bc8 5986 * tui/tui-layout.c (tui_set_layout_for_display_command):
a743e542
MS
5987 Split line so that operator goes to beginning of line.
5988 * tui/tui-winsource.c (tui_horizontal_source_scroll): Move
5989 assignment out of if statement.
5990
0963b4bd
MS
59912011-01-07 Michael Snyder <msnyder@vmware.com>
5992
5993 * ada-lang.c: Comment cleanup, mostly periods and spaces.
5994 * ada-lang.h: Ditto.
5995 * ada-tasks.c: Ditto.
5996 * ada-valprint.c: Ditto.
5997 * aix-threads.c: Ditto.
5998 * alpha-linux-nat.c: Ditto.
5999 * alpha-linux-tdep.c: Ditto.
6000 * alpha-mdebug-tdep.c: Ditto.
6001 * alpha-nat.c: Ditto.
6002 * alpha-osf1-tdep.c: Ditto.
6003 * alpha-tdep.c: Ditto.
6004 * alphabsd-nat.c: Ditto.
6005 * alphabsd-tdep.c: Ditto.
6006 * amd64-darwin-tdep.c: Ditto.
6007 * amd64-linux-nat.c: Ditto.
6008 * amd64-linux-tdep.c: Ditto.
6009 * amd64-sol2-tdep.c: Ditto.
6010 * amd64-tdep.c: Ditto.
6011 * amd64-fbsd-tdep.c: Ditto.
6012 * amd64-nbsd-tdep.c: Ditto.
6013 * amd64-obsd-tdep.c: Ditto.
6014 * amd64-linux-nat.c: Ditto.
6015 * amd64-linux-tdep.c: Ditto.
6016 * arm-tdep.c: Ditto.
6017 * arm-tdep.h: Ditto.
6018 * armnbsd-nat.c: Ditto.
6019 * avr-tdep.c: Ditto.
6020 * bfin-tdep.c: Ditto.
6021 * bsd-kvm.c: Ditto.
6022 * c-typeprintc: Ditto.
6023 * c-valprint.c: Ditto.
6024 * coff-pe-read.h: Ditto.
6025 * coffreead.c: Ditto.
6026 * cris-tdep.c: Ditto.
6027 * d-lang.c: Ditto.
6028 * darwin-nat-info.c: Ditto.
6029 * darwin-nat.c: Ditto.
6030 * dbug-rom.c: Ditto.
6031 * dbxread.c: Ditto.
6032 * dcache.c: Ditto.
6033 * dcache.h: Ditto.
6034 * dec-thread.c: Ditto.
6035 * defs.h: Ditto.
6036 * demangle.c: Ditto.
6037 * dicos-tdep.c: Ditto.
6038 * dictionary.c: Ditto.
6039 * dictionary.h: Ditto.
6040 * dink32-rom.c: Ditto.
6041 * disasm.c: Ditto.
6042 * doublest.c: Ditto.
6043 * dsrec.c: Ditto.
6044 * dummy-frame.c: Ditto.
6045 * dwarf2-frame.c: Ditto.
6046 * dwarf2expr.c: Ditto.
6047 * dwarf2loc.c: Ditto.
6048 * dwarf2read.c: Ditto.
6049 * elfread.c: Ditto.
6050 * environ.c: Ditto.
6051 * eval.c: Ditto.
6052 * event-top.h: Ditto.
6053 * exceptions.c: Ditto.
6054 * exceptions.h: Ditto.
6055 * exec.c: Ditto.
6056 * expprint.c: Ditto.
6057 * expression.h: Ditto.
6058 * f-exp.y: Ditto.
6059 * f-lang.c: Ditto.
6060 * f-lang.h: Ditto.
6061 * f-typeprint.c: Ditto.
6062 * f-valprint.c: Ditto.
6063 * fbsd-nat.c: Ditto.
6064 * findvar.c: Ditto.
6065 * fork-child.c: Ditto.
6066 * frame.c: Ditto.
6067 * frame.h: Ditto.
6068 * frv-linux-tdep.c: Ditto.
6069 * frv-tdep.c: Ditto.
6070 * gcore.c: Ditto.
6071 * gdb-stabs.h: Ditto.
6072 * gdb_assert.h: Ditto.
6073 * gdb_string.h: Ditto.
6074 * gdb_thread_db.h: Ditto.
6075 * gdb_wait.h: Ditto.
6076 * gdbarch.sh: Ditto.
6077 * gdbcore.h: Ditto.
6078 * gdbthread.h: Ditto.
6079 * gdbtypes.c: Ditto.
6080 * gdbtypes.h: Ditto.
6081 * gnu-nat.c: Ditto.
6082 * gnu-nat.h: Ditto.
6083 * gnu-v2-abi.c: Ditto.
6084 * gnu-v3-abi.c: Ditto.
6085 * go32-nat.c: Ditto.
6086 * gdbarch.c: Regenerate.
6087 * gdbarch.h: Regenerate.
6088
ac74f770
MS
60892011-01-07 Michael Snyder <msnyder@vmware.com>
6090
6091 * ax-gdb.c: Adjust some long output strings.
6092 * breakpoint.c: Ditto.
6093 * charset.c: Ditto.
6094 * cp-abi.c: Ditto.
6095 * infcall.c: Ditto.
6096 * infrun.c: Ditto.
6097 * linux-nat.c: Ditto.
6098 * solib-pa64.c: Ditto.
6099 * solib-som.c: Ditto.
6100
d8e22779
TT
61012011-01-06 Tom Tromey <tromey@redhat.com>
6102
6103 PR python/12367:
6104 * NEWS: Add item.
6105 * python/python.c (GdbMethods): Add "newest_frame" method.
6106 * python/python-internal.h (gdbpy_newest_frame): Declare.
6107 * python/py-frame.c (gdbpy_newest_frame): New function.
6108
a255712f
PP
61092010-01-06 Paul Pluzhnikov <ppluzhnikov@google.com>
6110
6111 * jit.h (struct jit_code_entry): use ULONGEST for symfile_size.
6112 * jit.c (jit_debug): New variable.
6113 (show_jit_debug): New function.
6114 (struct target_buffer): Use ULONGEST.
6115 (bfd_open_from_target_memory): Likewise.
6116 (jit_register_code, jit_inferior_init): Add debug output.
6117 (_initialize_jit): Register "debug jit" command.
6118
ccfc3d6e
TT
61192011-01-06 Tom Tromey <tromey@redhat.com>
6120
6121 * frame.h (enum frame_type) <INLINE_FRAME>: Fix comment.
6122 * python/py-frame.c (gdbpy_initialize_frames): Add INLINE_FRAME
6123 and ARCH_FRAME.
6124
57126e4a
TT
61252011-01-06 Tom Tromey <tromey@redhat.com>
6126
6127 * python/py-frame.c (frapy_block): Use get_frame_block.
6128
16dfc9ce
JB
61292011-01-06 Joel Brobecker <brobecker@adacore.com>
6130
6131 Do not stop on SIGPRIO signals by default
6132 * infrun.c (_initialize_infrun): Unset signal_stop and
6133 signal_print for TARGET_SIGNAL_PRIO.
6134
b1ce2347
JB
61352011-01-06 Joel Brobecker <brobecker@adacore.com>
6136
6137 * ada-tasks.c: Fix style violation in comment.
6138
8f7e195f
JB
61392011-01-06 Joel Brobecker <brobecker@adacore.com>
6140
6141 * linespec.c (decode_compound, find_method): Remove trailing \n
6142 at end of error string.
6143 * solib-irix.c (irix_current_sos): Likewise.
6144 * varobj.c (uninstall_variable): Likewise.
6145
e9bdf92c
JB
61462011-01-06 Joel Brobecker <brobecker@adacore.com>
6147
6148 * copyright.py: New script.
6149 * copyright.sh (byhand): Add *.ads, *.adb, *.gpr and *.inc.
6150 Launch emacs without exec'ing. Call copyright.py afterwards.
6151
3e43a32a
MS
61522011-01-05 Michael Snyder <msnyder@vmware.com>
6153
6154 * addrmap.c: Shorten lines of >= 80 columns.
6155 * arch-utils.c: Ditto.
6156 * arch-utils.h: Ditto.
6157 * ax-gdb.c: Ditto.
6158 * ax-general.c: Ditto.
6159 * bcache.c: Ditto.
6160 * blockframe.c: Ditto.
6161 * breakpoint.c: Ditto.
6162 * buildsym.c: Ditto.
6163 * c-lang.c: Ditto.
6164 * c-typeprint.c: Ditto.
6165 * charset.c: Ditto.
6166 * coffread.c: Ditto.
6167 * command.h: Ditto.
6168 * corelow.c: Ditto.
6169 * cp-abi.c: Ditto.
6170 * cp-namespace.c: Ditto.
6171 * cp-support.c: Ditto.
6172 * dbug-rom.c: Ditto.
6173 * dbxread.c: Ditto.
6174 * defs.h: Ditto.
6175 * dfp.c: Ditto.
6176 * dfp.h: Ditto.
6177 * dictionary.c: Ditto.
6178 * disasm.c: Ditto.
6179 * doublest.c: Ditto.
6180 * dwarf2-frame.c: Ditto.
6181 * dwarf2expr.c: Ditto.
6182 * dwarf2loc.c: Ditto.
6183 * dwarf2read.c: Ditto.
6184 * elfread.c: Ditto.
6185 * eval.c: Ditto.
6186 * event-loop.c: Ditto.
6187 * event-loop.h: Ditto.
6188 * exceptions.h: Ditto.
6189 * exec.c: Ditto.
6190 * expprint.c: Ditto.
6191 * expression.h: Ditto.
6192 * f-lang.c: Ditto.
6193 * f-valprint.c: Ditto.
6194 * findcmd.c: Ditto.
6195 * frame-base.c: Ditto.
6196 * frame-unwind.c: Ditto.
6197 * frame-unwind.h: Ditto.
6198 * frame.c: Ditto.
6199 * frame.h: Ditto.
6200 * gcore.c: Ditto.
6201 * gdb-stabs.h: Ditto.
6202 * gdb_assert.h: Ditto.
6203 * gdb_dirent.h: Ditto.
6204 * gdb_obstack.h: Ditto.
6205 * gdbcore.h: Ditto.
6206 * gdbtypes.c: Ditto.
6207 * gdbtypes.h: Ditto.
6208 * inf-ttrace.c: Ditto.
6209 * infcall.c: Ditto.
6210 * infcmd.c: Ditto.
6211 * inflow.c: Ditto.
6212 * infrun.c: Ditto.
6213 * inline-frame.h: Ditto.
6214 * language.c: Ditto.
6215 * language.h: Ditto.
6216 * libunwind-frame.c: Ditto.
6217 * libunwind-frame.h: Ditto.
6218 * linespec.c: Ditto.
6219 * linux-nat.c: Ditto.
6220 * linux-nat.h: Ditto.
6221 * linux-thread-db.c: Ditto.
6222 * machoread.c: Ditto.
6223 * macroexp.c: Ditto.
6224 * macrotab.c: Ditto.
6225 * main.c: Ditto.
6226 * maint.c: Ditto.
6227 * mdebugread.c: Ditto.
6228 * memattr.c: Ditto.
6229 * minsyms.c: Ditto.
6230 * monitor.c: Ditto.
6231 * monitor.h: Ditto.
6232 * objfiles.c: Ditto.
6233 * objfiles.h: Ditto.
6234 * osabi.c: Ditto.
6235 * p-typeprint.c: Ditto.
6236 * p-valprint.c: Ditto.
6237 * parse.c: Ditto.
6238 * printcmd.c: Ditto.
6239 * proc-events.c: Ditto.
6240 * procfs.c: Ditto.
6241 * progspace.c: Ditto.
6242 * progspace.h: Ditto.
6243 * psympriv.h: Ditto.
6244 * psymtab.c: Ditto.
6245 * record.c: Ditto.
6246 * regcache.c: Ditto.
6247 * regcache.h: Ditto.
6248 * remote-fileio.c: Ditto.
6249 * remote.c: Ditto.
6250 * ser-mingw.c: Ditto.
6251 * ser-tcp.c: Ditto.
6252 * ser-unix.c: Ditto.
6253 * serial.c: Ditto.
6254 * serial.h: Ditto.
6255 * solib-frv.c: Ditto.
6256 * solib-irix.c: Ditto.
6257 * solib-osf.c: Ditto.
6258 * solib-pa64.c: Ditto.
6259 * solib-som.c: Ditto.
6260 * solib-sunos.c: Ditto.
6261 * solib-svr4.c: Ditto.
6262 * solib-target.c: Ditto.
6263 * solib.c: Ditto.
6264 * somread.c: Ditto.
6265 * source.c: Ditto.
6266 * stabsread.c: Ditto.
6267 * stabsread.c: Ditto.
6268 * stack.c: Ditto.
6269 * stack.h: Ditto.
6270 * symfile-mem.c: Ditto.
6271 * symfile.c: Ditto.
6272 * symfile.h: Ditto.
6273 * symmisc.c: Ditto.
6274 * symtab.c: Ditto.
6275 * symtab.h: Ditto.
6276 * target-descriptions.c: Ditto.
6277 * target-memory.c: Ditto.
6278 * target.c: Ditto.
6279 * target.h: Ditto.
6280 * terminal.h: Ditto.
6281 * thread.c: Ditto.
6282 * top.c: Ditto.
6283 * tracepoint.c: Ditto.
6284 * tracepoint.h: Ditto.
6285 * ui-file.c: Ditto.
6286 * ui-file.h: Ditto.
6287 * ui-out.h: Ditto.
6288 * user-regs.c: Ditto.
6289 * user-regs.h: Ditto.
6290 * utils.c: Ditto.
6291 * valarith.c: Ditto.
6292 * valops.c: Ditto.
6293 * valprint.c: Ditto.
6294 * valprint.h: Ditto.
6295 * value.c: Ditto.
6296 * varobj.c: Ditto.
6297 * varobj.h: Ditto.
6298 * vec.h: Ditto.
6299 * xcoffread.c: Ditto.
6300 * xcoffsolib.c: Ditto.
6301 * xcoffsolib.h: Ditto.
6302 * xml-syscall.c: Ditto.
6303 * xml-tdesc.c: Ditto.
6304
9a2b4c1b
MS
63052011-01-05 Michael Snyder <msnyder@vmware.com>
6306
6307 * cli/cli-cmds.c: Shorten lines of >= 80 columns.
6308 * cli/cli-decode.c: Ditto.
6309 * cli/cli-dump.c: Ditto.
6310 * cli/cli-logging.c: Ditto.
6311 * cli/cli-script.c: Ditto.
6312 * cli/cli-setshow.c: Ditto.
6313 * common/signals.c: Ditto.
6314 * mi/mi-cmd-break.c: Ditto.
6315 * mi/mi-cmd-disas.c: Ditto.
6316 * mi/mi-cmd-stack.c: Ditto.
6317 * mi/mi-cmd-var.c: Ditto.
6318 * mi/mi-cmds.c: Ditto.
6319 * mi/mi-common.h: Ditto.
6320 * mi/mi-console.c: Ditto.
6321 * mi/mi-interp.c: Ditto.
6322 * mi/mi-main.c: Ditto.
6323 * osf-share/cma_attr.c: Ditto.
6324 * osf-share/cma_deb_core.h: Ditto.
6325 * osf-share/cma_debug_client.h: Ditto.
6326 * osf-share/cma_handle.h: Ditto.
6327 * osf-share/cma_mutex.h: Ditto.
6328 * osf-share/cma_stack_int.h: Ditto.
6329 * osf-share/cma_tcb_defs.h: Ditto.
6330 * python/py-auto-load.c: Ditto.
6331 * python/py-breakpoint.c: Ditto.
6332 * python/py-cmd.c: Ditto.
6333 * python/py-frame.c: Ditto.
6334 * python/py-objfile.c: Ditto.
6335 * python/py-param.c: Ditto.
6336 * python/py-progspace.c: Ditto.
6337 * python/py-symbol.c: Ditto.
6338 * python/py-value.c: Ditto.
6339 * python/python-internal.h: Ditto.
6340 * python/python.c: Ditto.
6341 * tui/tui-data.c: Ditto.
6342 * tui/tui-disasm.c: Ditto.
6343 * tui/tui-hooks.c: Ditto.
6344 * tui/tui-io.c: Ditto.
6345 * tui/tui-layout.c: Ditto.
6346 * tui/tui-regs.c: Ditto.
6347 * tui/tui-source.c: Ditto.
6348 * tui/tui-stack.c: Ditto.
6349 * tui/tui-win.c: Ditto.
6350 * tui/tui-windata.c: Ditto.
6351 * tui/tui-winsource.c: Ditto.
6352
44944448
JB
63532011-01-05 Joel Brobecker <brobecker@adacore.com>
6354
6355 * configure.ac, gdb.1: Copyright year update.
6356
ebedcab5
JK
63572011-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6358
6359 * frame.c (get_prev_frame_1) <UNWIND_INNER_ID>: New variables
6360 this_pc_in_block, morestack_msym and morestack_name. Check for
6361 "__morestack" minimal symbol there.
6362
e5cc9f32
JB
63632011-01-03 Joel Brobecker <brobecker@adacore.com>
6364
6365 * symfile.c (find_sym_fns): Add call to dont_repeat.
6366
7b6bb8da
JB
63672011-01-01 Joel Brobecker <brobecker@adacore.com>
6368
6369 Copyright year update in most files (performed by copyright.sh).
6370
71ce852c
JB
63712011-01-01 Joel Brobecker <brobecker@adacore.com>
6372
6373 * top.c (print_gdb_version): Update copyright year in version output.
0e2de366 6374
c3c1ebe8 6375For older changes see ChangeLog-2010.
c906108c
SS
6376\f
6377Local Variables:
6378mode: change-log
6379left-margin: 8
6380fill-column: 74
6381version-control: never
57da7796 6382coding: utf-8
c906108c 6383End:
This page took 1.532105 seconds and 4 git commands to generate.