http://sourceware.org/ml/gdb-patches/2012-08/msg00715.html
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
2603f7ee
AB
12012-09-21 Andrew Burgess <aburgess@broadcom.com>
2
3 * findvar.c (read_frame_register_value): Mark the result value as
4 optimized out if any of the input registers have been optimized out.
5
810849a3
AS
62012-09-21 Andreas Schwab <schwab@linux-m68k.org>
7
8 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
9
0953dec1
SP
102012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
11
12 * eval.c (evaluate_subexp_standard): Eliminate single-use
13 variable LOWER.
14
82a90ccf
YQ
152012-09-21 Yao Qi <yao@codesourcery.com>
16
17 * mi/mi-interp.c: Declare mi_record_changed.
18 (mi_interpreter_init): Call observer_attach_record_changed.
19 (mi_record_changed): New.
20 * record.c (record_open): Call observer_notify_record_changed.
21 (cmd_record_stop): Call observer_notify_record_changed.
22 * NEWS: Mention it.
23
d7de8e3c
TT
242012-09-20 Tom Tromey <tromey@redhat.com>
25
26 * NEWS: Update.
27 * python/python.c (finalize_python): New function.
28 (_initialize_python): Make a final cleanup.
29
43c7c83d
DE
302012-09-19 Doug Evans <dje@google.com>
31
32 * buildsym.h (param_symbols): Delete, unused.
33 (context_stack): Delete member "params", unused.
34 * buildsym.c (push_context): Update.
35 * dwarf2read.c (read_func_scope): Update.
36
aa9259cc
TS
372012-09-19 Thomas Schwinge <thomas@codesourcery.com>
38
a6521d9a
TS
39 * sh-tdep.c (sh_register_convert_to_virtual)
40 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
41 all callers. Just do a memcpy if not the little-endian case.
42
f92589cb
TS
43 * h8300-tdep.c (h8300_gdbarch_init): Invoke
44 set_gdbarch_double_format and set_gdbarch_long_double_format.
45 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
46 set_gdbarch_double_format.
47 * sh-tdep.c (sh_gdbarch_init): Likewise.
48
aa9259cc
TS
49 * NEWS: Document the removal of SH's 'regs' command.
50 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
51 command.
52
c1d780c2
SDJ
532012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
54
55 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
56 `jump'.
57
4ae24af0
JB
582012-09-18 Joel Brobecker <brobecker@adacore.com>
59
60 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
61 language when iterating over symbols.
62
bb25a15c
YQ
632012-09-18 Yao Qi <yao@codesourcery.com>
64
65 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
66 (mi_interpreter_init): Call observer_attach_tsv_created and
67 observer_attach_tsv_deleted.
68 (mi_tsv_created, mi_tsv_deleted): New.
69 * tracepoint.c (delete_trace_state_variable): Call
70 observer_notify_tsv_deleted.
71 (trace_variable_command): Call observer_notify_tsv_created.
72 (delete_trace_variable_command): Call
73 observer_notify_tsv_deleted.
74 (create_tsv_from_upload): Call observer_notify_tsv_created.
75 * NEWS: Mention it.
76
201b4506
YQ
772012-09-18 Yao Qi <yao@codesourcery.com>
78
79 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
80 if traceframe changed.
81 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
82 "trace-find".
83 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
84 (mi_interpreter_init): Hook mi_traceframe_changed to observer
85 'traceframe_changed'.
86 (mi_traceframe_changed): New.
87 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
88 New field.
89 * NEWS: Mention the new MI notification.
90
eaeb12db
MW
912012-09-17 Mike Wrighton <wrighton@codesourcery.com>
92
93 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
94
6e3c039e
JK
952012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
96
97 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
98 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
99 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
100 Extend code also for PaX support. Convert all gdb_assert to warning
101 calls.
102
9a950c7c
JK
1032012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
104
105 Implement auto-load user conveniences suggested by Doug Evans.
106 * auto-load.c: Include top.h.
107 (file_is_auto_load_safe): New variable advice_printed. Print advice.
108 (_initialize_auto_load): New variable scripts_directory_help. Mention
109 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
110 scripts-directory. Document in online help one can use also files for
111 set auto-load safe-path.
112 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
113 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
114
deec9a9d
SP
1152012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
116
117 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
118 of LEN.
119
354ecfd5
SP
1202012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
121
122 * m2-valprint.c (m2_print_array_contents): Eliminate variable
123 ELTLEN and use TYPE_LENGTH directly.
124 (m2_val_print): Likewise.
125 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
126 variable LEN and use TYPE_LENGTH directly.
127 (m68k_svr4_store_return_value): Likewise.
128 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
129 ARGLEN and use TYPE_LENGTH directly.
130 (mips_o64_push_dummy_call): Likewise.
131 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
132 variable LENGTH and use TYPE_LENGTH directly.
133 (s390_function_arg_float): Likewise.
134 (s390_function_arg_integer): Likewise.
135 (s390_push_dummy_call): Likewise.
136 (s390_return_value_convention): Likewise.
137 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
138 TYPE_LENGTH directly.
139
6fc1c773
YQ
1402012-09-17 Yao Qi <yao@codesourcery.com>
141
142 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
143 Update comment to add_setshow_integer_cmd.
144 * cli/cli-setshow.c (do_set_command): Handle case
145 'var_zuinteger_unlimited'.
146 (do_show_command): Likewise.
147 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
148 for command 'remotetimeout'.
149 * command.h (enum var_types): New zuinteger_unlimited. Update comment
150 to var_integer.
151 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
152 for command 'set listsize'.
153
6acef6cd
SP
1542012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
155
156 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
157 variable LEN.
158
1ab3b62c
JK
1592012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
160
161 PR 14119
162 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
163 (frame_pop): Drop also TAILCALL_FRAME frames.
164 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
165
acf9414f
JK
1662012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
167 Pedro Alves <palves@redhat.com>
168
169 PR 14548
170 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
171 function start if we are already at function start. Both for
172 reverse-next and for reverse-step into function without line number
173 info.
174
193facb3
JK
1752012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
176
177 Code cleanup - rename 'inline' depth to 'artificial' depth.
178 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
179 frame_id_artificial_p, extend the comment.
180 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
181 * frame.c (fprint_frame_id): Rename at a user, change debug output
182 text to "artificial=".
183 (skip_inlined_frames): Rename to ...
184 (skip_artificial_frames): ... here. Extend the comment.
185 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
186 (frame_id_inlined_p): Rename to ...
187 (frame_id_artificial_p): ... here. Rename at a user.
188 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
189 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
190 at a user.
191 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
192 Extend the comment.
193 (frame_id_inlined_p): Rename to ...
194 (frame_id_artificial_p): ... here.
195 * inline-frame.c (inline_frame_this_id): Rename at a user.
196
42056501
AB
1972012-09-14 Andrew Burgess <aburgess@broadcom.com>
198
199 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
200 vector variables using vector_size syntax rather than array
201 syntax.
202
84c47588
SP
2032012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
204
205 * valarith.c (value_concat): Replace unsafe ALLOCA with
206 XMALLOC/XFREE.
207
f4045bcb
PA
2082012-09-14 Pedro Alves <palves@redhat.com>
209
210 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
211
63b46266
YPK
2122012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
213
214 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
215 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
216 data-directory as appropriate.
217
ddd7a8e7
SP
2182012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
219
220 * printcmd.c (ui_printf): Eliminate single-use variable
221 PARAM_LEN.
222
d649a38e
YQ
2232012-09-14 Yao Qi <yao@codesourcery.com>
224 Pedro Alves <palves@redhat.com>
225
226 * valops.c (value_assign): Move observer_notify_target_changed
227 below to replace reinit_frame_cache.
228
b9516fa1
YPK
2292012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
230
231 Refactor Python "gdb" module into a proper Python package, by
232 introducing a new "_gdb" module for code implemented in C, and
233 using reload/__import__ instead of exec.
234 * python/lib/gdb/__init__.py: Import * from _gdb.
235 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
236 prompt_hook, sys.argv): Moved from finish_python_initialization.
237 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
238 (packages, auto_load_packages): New list and function replacing
239 module_dict and auto-loading code, using __file__ instead of
240 gdb.PYTHONDIR and reload/__import__ instead of exec.
241 (GdbSetPythonDirectory): Replacing function of the same name
242 from finish_python_initialization, using reload/__import__ instead
243 of exec, as well as call auto_load_packages.
244 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
245 gdb_python_module and not gdb_module.
246 * python/python-internal.h (gdb_python_module): Declare.
247 * python/python.c (gdb_python_module): New global.
248 (before_prompt_hook): Check gdb_python_module and not gdb_module.
249 (_initialize_python): Rename gdb module to _gdb.
250 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
251 (finish_python_initialization): Move Python code to
252 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
253 __main__.
254
aa0fbdd8
PA
2552012-09-13 Pedro Alves <palves@redhat.com>
256
257 * Makefile.in (COMMON_OBS): Add registry.o.
258 * registry.c: New file.
259 * registry.h (struct registry_container): Declare.
260 (registry_data_callback): New typedef.
261 (struct registry_data, struct registry_data_registration, struct
262 registry_data_registry): New type.
263 (register_data_with_cleanup, registry_alloc_data)
264 (registry_callback_adaptor, registry_clear_data)
265 (registry_container_free_data, registry_set_data, registry_data):
266 Declare.
267 (DEFINE_REGISTRY): Refactor structures and functions as shims over
268 the new common structures and functions.
269 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
270 callback typedefs.
271
42b5c53d
MW
2722012-09-12 Mike Wrighton <wrighton@codesourcery.com>
273
274 * remote.c (remote_insert_hw_breakpoint): Throw exception if
275 there is an error inserting hardware breakpoints and use the
276 error message from the target.
277
278 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
279 Catch this exception and print the error message contained within. Do not
280 print the default hardware error breakpoint message in this case.
281
a1b64ce1
DE
2822012-09-12 Doug Evans <dje@google.com>
283
284 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
285 cu == NULL.
286
83a788b8
DE
2872012-09-11 Doug Evans <dje@google.com>
288
289 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
290 .gdb_index symbol attributes if there are none.
291
d9eaeb59
JB
2922012-09-11 Joel Brobecker <brobecker@adacore.com>
293
294 * symtab.h (struct minimal_symbol) [has_size]: New field.
295 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
296 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
297 * printcmd.c (build_address_symbolic): Only filter out zero-sized
298 minimal symbols if the symbol's size is actually known.
299 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
300 of msymbol's size field. Add comment.
301 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
302 SET_MSYMBOL_SIZE to set the minimal symbol size.
303
a83e9154
JB
3042012-09-11 Joel Brobecker <brobecker@adacore.com>
305
306 * minsyms.c (install_minimal_symbols): Use memset to fill entire
307 minimal_symbol struct object, rather than setting some of its
308 fields one by one.
309
350b1b26
AB
3102012-09-11 Andrew Burgess <aburgess@broadcom.com>
311
312 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
313 passed_a_ptr flag when displaying typedef types.
314
2fa15f23
JB
3152012-09-10 Joel Brobecker <brobecker@adacore.com>
316
317 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
318 the optimized_out flag is preserved.
319
5152ff90
AG
3202012-09-10 Anthony Green <green@moxielogic.com>
321
322 * moxie-tdep.c (moxie_analyze_prologue): Update for function
323 prologue changes in GCC.
324
5b4f6e25
KS
3252012-09-10 Keith Seitz <keiths@redhat.com>
326
327 PR gdb/13483
328 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
329 (BOOL_CONVERSION_BADNESS): ... this.
330 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
331 (rank_one_type): Allow all boolean conversions
332 permitted by the standard.
333
f1070426
TT
3342012-09-06 Tom Tromey <tromey@redhat.com>
335
336 * python/py-newobjfileevent.c (create_new_objfile_event_object):
337 Don't decref py_objfile.
338
a8db4212
YPK
3392012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
340
341 Do not enable -lmcheck by default when Python is enabled with
342 threading support.
343 * configure.ac: (python_has_threads) New variable, by testing
344 if WITH_THREAD is defined in Python.h.
345 Move --enable-lmcheck after --with-python.
346 Do not enable -lmcheck by default if python_has_threads=yes.
347 Warn if --enable-lmcheck and python_has_threads=yes.
348 * configure: Regenerate.
349
648beb2b
YQ
3502012-08-31 Yao Qi <yao@codesourcery.com>
351
352 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
353 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
354 Update some commands.
355 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
356 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
357 to 1.
358
ef07a9f7
YQ
3592012-08-31 Yao Qi <yao@codesourcery.com>
360
361 * mi/mi-cmds.c (mi_cmds): Add 'static'.
362
fda395cf
YPK
3632012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
364
365 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
366
8efd8e78
DE
3672012-08-29 Doug Evans <dje@google.com>
368
369 * main.c (print_gdb_help): Remove reference to
370 --use-deprecated-index-sections.
371
883b9c6c
YQ
3722012-08-28 Yao Qi <yao@codesourcery.com>
373
374 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
375 (init_cmds): Call add_setshow_uinteger_cmd for command
376 'max-user-call-depth'.
377 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
378 declaration of 'max_user_call_depth'.
379 * frame.c (backtrace_limit): Add 'unsigned'.
380 (_initialize_frame): Call add_setshow_uinteger_cmd for command
381 'limit'.
382 * remote.c (remoteaddresssize): Add 'unsigned'.
383 (remote_address_masked): Change local var 'address_size' to
384 'unsigned'.
385 (_initialize_remote): Call add_setshow_uinteger_cmd for
386 'remoteaddresssize'.
387 * top.c (history_size): Add 'unsigned'.
388 (show_commands): Change local variables to 'unsigned'.
389 (set_history_size_command): Don't check history_size is negative.
390 Adjust the condition to call unstifle_history and set history_size
391 to UNIT_MAX.
392
1292279a
PA
3932012-08-28 Pedro Alves <palves@redhat.com>
394
395 PR gdb/14428
396
397 * infcmd.c (default_print_one_register_info): New, factored out
398 from default_print_registers_info.
399 (default_print_registers_info): Use it. Mark value unavailable if
400 necessary.
401 (registers_info): Print user registers with
402 default_print_one_register_info.
403
f629cd75
L
4042010-08-27 H.J. Lu <hongjiu.lu@intel.com>
405
406 PR tui/14486
407 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
408 is not NULL before referencing it.
409
1c8cdcb1
JK
4102012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
411
412 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
413 variable pc. Call find_pc_line instead of find_pc_overlay, restore
414 original PC for it.
415
e9687799
JK
4162012-08-27 Eli Zaretskii <eliz@gnu.org>
417 Jan Kratochvil <jan.kratochvil@redhat.com>
418
419 * auto-load.c (auto_load_objfile_script): Rename to ...
420 (auto_load_objfile_script_1): ... here, change variable realname to
421 parameter realname, document it, add return value, add variable retval.
422 (auto_load_objfile_script): New function.
423
7afa1642
JK
4242012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
425
426 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
427 followed by a whitespace.
428
dc7650b8
JK
4292012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
430
28e66c70 431 PR gdb/14494.
dc7650b8
JK
432 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
433 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
434 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
435 here.
436
1591a1e8
PA
4372012-08-27 Wei-cheng Wang <cole945@gmail.com>
438
439 * memattr.c (create_mem_region): Fix memory region overlapping
440 checking.
441
ecfb0d68
SP
4422012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
443
444 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
445 with xmalloc/cleanup.
446 * mt-tdep.c (mt_push_dummy_call): Likewise.
447 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
448 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
449
8c56c1b9
YQ
4502012-08-24 Yao Qi <yao@codesourcery.com>
451
452 * jv-exp.y (push_expression_name): Add "." at the end of error
453 message.
454
e3480f4a
YPK
4552012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
456
457 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
458 * python/python.c (_initialize_python): Update documentation.
459
dfbd5e7b
PA
4602012-08-23 Pedro Alves <palves@redhat.com>
461
462 * infrun.c (_initialize_infrun) <handle command help text>:
463 Mention that multiple signals are supported.
464
2edda2ff
PA
4652012-08-23 Pedro Alves <palves@redhat.com>
466
467 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
468 string.
469
8d735b87
YQ
4702012-08-23 Yao Qi <yao@codesourcery.com>
471
472 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
473 (tfind_1): Don't call registers_changed, set_traceframe_num,
474 and clear_traceframe_info.
475 Call set_current_traceframe.
476 (set_current_traceframe): call set_traceframe_num.
477
c5d9b215
SDJ
4782012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
479
480 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
481 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
482
037bbc8e
YPK
4832012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
484
485 Enable readline in Python in a GDB-specific way and block the
486 standard Python readline module to prevent conflicts with GDB.
487 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
488 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
489 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
490 * python/py-gdb-readline.c: New file.
491 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
492 prototype.
493 * python/python.c (_initialize_python): Call
494 gdbpy_initialize_gdb_readline.
495
406b1477
KS
4962012-08-22 Keith Seitz <keiths@redhat.com>
497
498 * defs.h: Include build-gnulib/config.h
499
6ca1b147
JM
5002012-08-22 Joseph Myers <joseph@codesourcery.com>
501
502 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
503 and blx pc.
504
8315665e
YPK
5052012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
506
507 Add a new "python-interactive" command that starts a standard
508 Python interactive prompt with "pi" as alias, and add "py" as
509 an alias to "python".
510 * NEWS: Mention the new commands.
8315665e
YPK
511 * python/python.c (eval_python_command): New function.
512 (python_interactive_command): For "python-interactive" with
513 arguments, call eval_python_command. For "python-interactive"
514 without arguments, call PyRun_InteractiveLoop.
515 (_initialize_python): Add "python-interactive" command with
516 "pi" as alias, and add "py" as an alias to "python".
517
522002f9
TT
5182012-08-22 Tom Tromey <tromey@redhat.com>
519
520 * defs.h (quit_flag): Don't declare.
521 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
522 (QUIT): Use new functions.
523 * event-top.c (command_handler): Use clear_quit_flag.
524 (handle_sigint): Use set_quit_flag.
525 (async_request_quit): Use check_quit_flag. Don't check
526 immediate_quit.
527 * exceptions.c (throw_exception): Use clear_quit_flag.
528 * main.c (captured_main): Use clear_quit_flag.
529 * python/python.c (clear_quit_flag, set_quit_flag)
530 (check_quit_flag): New functions.
531 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
532 clear_quit_flag.
533 * remote.c (remote_wait_as): Use check_quit_flag,
534 clear_quit_flag.
535 (remote_start_remote): Call QUIT.
536 * symfile.c (load_progress): Use check_quit_flag.
537 * top.c (command_loop): Use clear_quit_flag.
538 (command_line_input): Call QUIT.
539 * utils.c (quit_flag): Conditionally define.
540 (clear_quit_flag, check_quit_flag, set_quit_flag): New
541 functions.
542 (prompt_for_continue): Call QUIT. Use quit, not
543 async_request_quit.
544 * remote-mips.c (mips_expect_timeout): Call QUIT.
545 * monitor.c (monitor_expect): Call QUIT.
546
b583003e
TT
5472012-08-22 Tom Tromey <tromey@redhat.com>
548
549 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
550 (async_init_signals): Update.
551 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
552 (SIGWINCH_HANDLER_BODY): Remove.
553
e1507e95
TT
5542012-08-22 Tom Tromey <tromey@redhat.com>
555
556 * jit.c (jit_object_close_impl): Don't malloc the objfile
557 name.
558 * objfiles.c (allocate_objfile): Don't malloc the objfile
559 name.
560 (free_objfile): Don't free the objfile name.
561 * objfiles.h (struct objfile) <name>: Update comment.
562 * symfile.c (reread_symbols): Fix reference counting. Don't
563 malloc objfile name.
564
1c00ec6b
TT
5652012-08-22 Tom Tromey <tromey@redhat.com>
566
567 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
568 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
569 (symfile_bfd_open): Likewise.
570 (generic_load): Likewise.
571 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
572 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
573 gdb_bfd_open.
574 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
575 Use gdb_bfd_open.
576 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
577 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
578 (pmon_load_fast): Likewise.
579 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
580 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
581 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
582 (macho_check_dsym): Likewise.
583 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
584 (m32r_upload_command): Likewise.
585 * gdb_bfd.h (gdb_bfd_cache): Declare.
586 * gdb_bfd.c (struct gdb_bfd_data): New.
587 (gdb_bfd_cache): New global.
588 (struct gdb_bfd_cache_search): New.
589 (hash_bfd): New function.
590 (eq_bfd): Likewise.
591 (gdb_bfd_open): Likewise.
592 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
593 (gdb_bfd_unref): Remove closed BFD from cache. Update for
594 gdb_bfd_data.
595 * exec.c (exec_file_attach): Use gdb_bfd_open.
596 * dsrec.c (load_srec): Use gdb_bfd_open.
597
6532ff36
TT
5982012-08-22 Tom Tromey <tromey@redhat.com>
599
600 * dwarf2read.c (macro_start_file): Update.
601 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
602 (free_objfile_per_bfd_storage): Destroy macro_cache.
603 (allocate_objfile, free_objfile): Update.
604 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
605 New field.
606 (struct objfile) <macro_cache>: Remove.
607 * symfile.c (reread_symbols): Update.
608 * symmisc.c (print_symbol_bcache_statistics): Update.
609 (print_objfile_statistics): Update.
610
706e3705
TT
6112012-08-22 Tom Tromey <tromey@redhat.com>
612
613 * elfread.c (elf_symtab_read): Update.
614 * objfiles.c (objfiles_bfd_data): New global.
615 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
616 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
617 (allocate_objfile, free_objfile): Update.
618 (_initialize_objfiles): Initialize objfiles_bfd_data.
619 * objfiles.h (struct objfile_per_bfd_storage): New.
620 (struct objfile) <per_bfd>: New field.
621 <filename_cache>: Remove.
622 (set_objfile_per_bfd): Declare.
623 * symfile.c (reread_symbols): Update. Call
624 set_objfile_per_bfd.
625 (allocate_symtab): Update.
626 * symmisc.c (print_symbol_bcache_statistics): Update.
627 (print_objfile_statistics): Print the size of the BFD obstack.
628
e992eda4
TT
6292012-08-22 Tom Tromey <tromey@redhat.com>
630
631 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
632 * gdb_bfd.c: Use DEFINE_REGISTRY.
633 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
634 (gdb_bfd_ref): Call bfd_alloc_data.
635 (gdb_bfd_unref): Call bfd_free_data.
636
6b81941e
TT
6372012-08-22 Tom Tromey <tromey@redhat.com>
638
639 * registry.h (struct registry_fields): New.
640 (REGISTRY_FIELDS): Redefine.
641 (REGISTRY_ACCESS_FIELD): New macro.
642 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
643 functions.
644
8e260fc0
TT
6452012-08-22 Tom Tromey <tromey@redhat.com>
646
647 * auto-load.c (_initialize_auto_load): Update.
648 * solib-svr4.c (_initialize_svr4_solib): Update
649 * solib-dsbt.c (_initialize_dsbt_solib): Update.
650 * solib-darwin.c (_initialize_darwin_solib): Update.
651 * registry.h: New file.
652 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
653 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
654 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
655 (register_program_space_data_with_cleanup)
656 (register_program_space_data, program_space_alloc_data)
657 (clear_program_space_data, set_program_space_data)
658 (program_space_data): Don't declare.
659 * progspace.c: Use DEFINE_REGISTRY.
660 (struct program_space_data, struct
661 program_space_data_registration, struct
662 program_space_data_registry, program_space_data_registry)
663 (register_program_space_data_with_cleanup)
664 (register_program_space_data, program_space_alloc_data)
665 (program_space_free_data, clear_program_space_data)
666 (set_program_space_data, program_space_data): Remove.
667 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
668 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
669 (register_objfile_data_with_cleanup, register_objfile_data)
670 (clear_objfile_data, set_objfile_data, objfile_data): Don't
671 declare.
672 * objfiles.c: Use DEFINE_REGISTRY.
673 (struct objfile_data, struct objfile_data_registration, struct
674 objfile_data_registry, objfile_data_registry)
675 (register_objfile_data_with_cleanup, register_objfile_data)
676 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
677 (set_objfile_data, objfile_data): Remove.
678 (_initialize_objfiles): Update.
679 * jit.c (_initialize_jit): Update.
680 * inflow.c (_initialize_inflow): Update.
681 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
682 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
683 (register_inferior_data_with_cleanup, register_inferior_data)
684 (clear_inferior_data, set_inferior_data, inferior_data): Don't
685 declare.
686 * inferior.c: Use DEFINE_REGISTRY.
687 (struct inferior_data, struct inferior_data_registration, struct
688 inferior_data_registry, inferior_data_registry)
689 (register_inferior_data_with_cleanup, register_inferior_data)
690 (inferior_alloc_data, inferior_free_data clear_inferior_data)
691 (set_inferior_data, inferior_data): Remove.
692 * auxv.c (_initialize_auxv): Update.
693 * ada-lang.c (_initialize_ada_language): Update.
694 * breakpoint.c (_initialize_breakpoint): Update.
695 * i386-nat.c (i386_use_watchpoints): Update.
696
ed9eebaf
TT
6972012-08-22 Tom Tromey <tromey@redhat.com>
698
699 * exec.c (exec_close, exec_file_attach): Update.
700 (add_to_section_table): Initialize 'key' field.
701 (add_target_sections, remove_target_sections): Add 'key' argument.
702 * exec.h (add_target_sections, remove_target_sections): Add
703 'key' argument.
704 * solib.c (solib_map_sections, update_solib_list, clear_solib)
705 (reload_shared_libraries_1): Update.
706 * target.h (struct target_section) <key>: New field.
707
2f2e97fa
TT
7082012-08-22 Tom Tromey <tromey@redhat.com>
709
710 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
711
b3dbbd6f
PM
7122012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
713
714 * symfile.c (allocate_symtab): Use host_address_to_string
715 function instead of cast of pointer to long which is not
716 compatible with x86_64-w64-mingw32 build.
717
f94363d7
AP
7182012-08-19 Andrew Pinski <apinski@cavium.com>
719
720 * mips-tdep.c (is_octeon): New function.
721 (is_octeon_bbit_op): New function.
722 (mips32_next_pc): Handle Octeon's bbit instructions.
723 (mips32_instruction_has_delay_slot): Likewise.
724
78a59c2f
AP
7252012-08-19 Andrew Pinski <apinski@cavium.com>
726
727 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
728 before the function.
729
4f5bcb50
AP
7302012-08-19 Andrew Pinski <apinski@cavium.com>
731
732 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
733
e5afdbd7
KS
7342012-08-19 Keith Seitz <keiths@redhat.com>
735
736 PR c++/14365
737 * c-typeprint.c (c_type_print_varspec_prefix): Pass
738 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
739
13c9750e
EZ
7402012-08-18 Eli Zaretskii <eliz@gnu.org>
741
742 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
743 The typo broke "make TAGS".
744
db761810 7452012-08-17 Joel Brobecker <brobecker@adacore.com>
746
747 GDB 7.5 released.
748
a451cb65
KS
7492012-08-17 Keith Seitz <keiths@redhat.com>
750
751 PR c++/13356
752 * gdbtypes.c (strict_type_checking): New variable.
753 (show_strict_type_checking): New function.
754 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
755 if strict type checking is disabled.
756 (_initialize_gdbtypes): Add "check type" subcommand.
757 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
758
7592012-08-17 Keith Seitz <keiths@redhat.com>
760
761 * language.h (type_mode): Remove.
762 (type_check): Remove.
763 (struct language_defn): Remove la_type_check.
764 (STRICT_TYPE): Remove unused macro.
765 (type_error): Remove.
766 * language.c (set_type_range_case): Renamed to ...
767 (set_range_case): ... this. Update all callers.
768 Remove type_mode/type_check.
769 (type_mode): Remove.
770 (type_check): Remove.
771 (show_type_command): Remove.
772 (set_type_command): Remove.
773 (language_info): Remove type checking output.
774 (type_error): Remove unused function.
775 (range_error): Update comment.
776 (unknown_language_defn): Remove la_type_check.
777 (auto_language_defn): Likewise.
778 (local_language_defn): Likewise.
779 (_initialize_language): Remove "check type" subcommand.
780 * ada-lang.c (ada_language_defn): Remove la_type_check.
781 * c-lang.c (c_language_defn): Likewise.
782 (cplus_language_defn): Likewise.
783 (asm_language_defn): Likewise.
784 (minimal_language_defn): Likewise.
785 * d-lang.c (d_language_defn): Likewise.
786 * f-lang.c (f_language_defn): Likewise.
787 * go-lang.c (go_language_defn): Likewise.
788 * jv-lang.c (java_language_defn): Likewise.
789 * m2-lang.c (m2_language_defn): Likewise.
790 * objc-lang.c (objc_language_defn): Likewise.
791 * opencl-lang.c (opencl_language_defn): Likewise.
792 * p-lang.c (pascal_language_defn): Likewise.
793
dbf6a605
MF
7942012-08-16 Mike Frysinger <vapier@gentoo.org>
795
796 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
797
973e3cf7
JB
7982012-08-16 Joel Brobecker <brobecker@adacore.com>
799
800 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
801 New function.
802 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
803 using the regache. Use ia64_hpux_get_register_from_save_state_t
804 to access the bsp and bspstore registers if not.
805
d80ee84f
JB
8062012-08-16 Joel Brobecker <brobecker@adacore.com>
807
808 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
809 * breakpoint.c (detach_breakpoints): Change pid parameter into
810 a ptid. Adjust code accordingly.
811 * infrun.c (handle_inferior_event): Delete variable child_pid.
812 Update call to detach_breakpoints to pass the child ptid for
813 fork events.
814 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
815 assert that inferior_ptid's lwp is zero.
816 (linux_handle_extended_wait): Update call to detach_breakpoints.
817 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
818 detach_breakpoints.
819
2dcc6086
JB
8202012-08-16 Joel Brobecker <brobecker@adacore.com>
821
822 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
823 parent, only call detach_breakpoints if tts.tts_event ==
824 TTEVT_VFORK.
825
0c92d8c1
JB
8262012-08-16 Joel Brobecker <brobecker@adacore.com>
827
828 * dwarf2-frame.c (dwarf2_frame_cache): Use
829 get_frame_address_in_block instead of get_frame_pc as
830 the bound for executing the frame's FDE.
831
6b1755ce
YQ
8322012-08-16 Yao Qi <yao@codesourcery.com>
833
834 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
835 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
836 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
837 (c_type_print_varspec_suffix): Likewise.
838 * eval.c (evaluate_subexp_standard): Likewise.
839 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
840 (f_type_print_varspec_suffix): Likewise.
841 * gdbtypes.c (is_scalar_type): Likewise.
842 (recursive_dump_type): Likewise.
843 * infcall.c (value_arg_coerce): Likewise.
844 * m2-valprint.c (m2_val_print): Likewise.
845 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
846 (pascal_type_print_varspec_suffix): Likewise.
847 (pascal_type_print_base): Likewise.
848 * p-valprint.c (pascal_val_print): Likewise.
849 (pascal_val_print): Likewise.
850 * valops.c (value_slice): Likewise.
851 * valprint.c (scalar_type_p): Likewise.
852 * valarith.c (value_bitstring_subscript): Remove.
853 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
854 Remove comment on TYPE_CODE_BITSTRING.
855
856 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
857 TYPE_CODE_BITSTRING.
858
859 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
860 slot 0.
861
8acc4065
YQ
8622012-08-16 Yao Qi <yao@codesourcery.com>
863
864 * tracepoint.c (trace_find_none_command): Remove.
865 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
866
8128fd8e
YQ
8672012-08-16 Yao Qi <yao@codesourcery.com>
868
869 * remote.c (handle_notification): Remove parameter 'length'.
870 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
871
2873700e
KS
8722012-08-15 Keith Seitz <keiths@redhat.com>
873
874 * gdbtypes.c (opaque_type_resolution): Make static.
875 Add missing comment.
876 (overload_debug): Add missing comment.
877 (show_opaque_type_resolution): Likewise.
878 (show_overload_debug): Likewise.
879 (print_bit_vector): Remove unnecessary forward declaration.
880 (print_arg_types): Likewise.
881 (dump_fn_fieldlists): Likewise.
882 (print_cplus_stuff): Likewise.
883
b82d08cd
TT
8842012-08-15 Tom Tromey <tromey@redhat.com>
885
886 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
887 (gdb_bfd_ref): Initialize new field.
888 (gdb_bfd_unref): Unref the archive BFD.
889 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
890 parent archive.
891
db6573d6
TT
8922012-08-15 Tom Tromey <tromey@redhat.com>
893
894 PR python/14387:
895 * python/py-bpevent.c (create_breakpoint_event_object): Update
896 comment.
897 * python/py-event.c (evpy_add_attribute): Update comment.
898 * python/py-exitedevent.c (create_exited_event_object): Fix
899 reference counting and error handling.
900 * python/py-newobjfileevent.c (create_new_objfile_event_object):
901 Fix reference counting.
902 * python/py-signalevent.c (create_signal_event_object): Fix
903 reference counting and error handling.
904 * python/py-stopevent.c (emit_stop_event): Fix reference
905 counting.
906 * python/py-threadevent.c (get_event_thread): Return a
907 borrowed reference.
908 * python/py-type.c (convert_field): Fix reference counting.
909
a036ba48
TT
9102012-08-15 Tom Tromey <tromey@redhat.com>
911
912 * dwarf2read.c (dwarf_decode_macro_bytes)
913 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
914 as hash key.
915
486c7739
MF
9162012-08-14 Mike Frysinger <vapier@gentoo.org>
917
918 * infcmd.c (_initialize_infcmd): Update help text for the signal,
919 stepi, nexti, finish, next, step, jump, and continue commands.
920 * infrun.c (_initialize_infrun): Update help text for the handle
921 command.
922
4cf93a03
DE
9232012-08-14 Doug Evans <dje@google.com>
924
70b099cf
DE
925 * gdbtypes.c (struct extra): Delete, unused.
926
5212577a
DE
927 * gdbtypes.c: Whitespace cleanup.
928 (address_space_name_to_int): Remove "extern" from definition.
929 (_initialize_gdbtypes): Declare with initialize_file_ftype.
930
4cf93a03
DE
931 * gdbtypes.c (make_pointer_type): Remove redundant setting of
932 TYPE_POINTER_TYPE (type).
933
3756ef7e
GB
9342012-08-14 Gary Benson <gbenson@redhat.com>
935
936 * solib-svr4.c (svr4_free_library_list): Use free_so.
937
40d72643
MF
9382012-08-13 Mike Frysinger <vapier@gentoo.org>
939
940 * .gitignore: Add go-exp.c.
941
f47f77df
DE
9422012-08-13 Doug Evans <dje@google.com>
943
944 * value.c (show_convenience): Tweak comment.
945 (_initialize_values): Mention convenience functions in the help text
946 for "show convenience".
947
7507c54a
YQ
9482012-08-13 Yao Qi <yao@codesourcery.com>
949
950 * std-operator.def: Remove TERNOP_SLICE_COUNT.
951 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
952 TERNOP_SLICE_COUNT.
953 * eval.c (evaluate_subexp_standard): Likewise.
954 * expprint.c (print_subexp_standard): Likewise.
955 (dump_subexp_body_standard): Likewise.
956 * parse.c (operator_length_standard): Likewise.
957
5cad9736
YQ
9582012-08-13 Yao Qi <yao@codesourcery.com>
959
960 * std-operator.def: Remove OP_BITSTRING.
961 * breakpoint.c (watchpoint_exp_is_const): Update.
962 * eval.c (evaluate_subexp_standard): Remove handling to
963 OP_BITSTRING.
964 * expprint.c (print_subexp_standard): Likewise.
965 (dump_subexp_body_standard): Likewise.
966 * parse.c (operator_length_standard): Likewise.
967 * valops.c (value_bitstring): Remove.
968 * value.h: Remove the declaration of 'value_bitstring'.
969
bad7670a
SDJ
9702012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
971
972 * linespec.c (find_methods): Remove unused variables `i1' and
973 `name_len'.
974 (decode_line_full): Likewise for `arg_start'.
975
d9dce7fa
SDJ
9762012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
977
978 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
979 (zlib_decompress_section): Likewise for `section_data'.
980 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
981
a72c3253
DE
9822012-08-10 Doug Evans <dje@google.com>
983
984 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
985 * NEWS: Document them.
986 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
987 function/strfns.py.
988 * python/py-type.c (typy_array_1): New function.
989 (typy_array): Call it.
990 (typy_vector): New function.
991 (type_object_methods): Add "vector".
992 * python/lib/gdb/function/__init__.py: New file.
993 * python/lib/gdb/function/strfns.py: New file.
994
200bc880
SP
9952012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
996
997 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
998 for TYPE_FIELD_BITPOS.
999 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1000
de0bea00
MF
10012012-08-10 Mike Frysinger <vapier@gentoo.org>
1002
1003 PR cli/10436:
1004 * common/vec.h (VEC_merge): Define.
1005 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1006 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1007 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1008 * completer.c: Include gdb_signals.h.
1009 (signal_completer): Define.
1010 * completer.h (signal_completer): Add prototype.
1011 * infcmd.c (_initialize_infcmd): Assign the command
1012 completer for "signal" to handle_completer.
1013 * infrun.c: Include completer.h.
1014 (handle_completer): Define.
1015 (_initialize_infrun): Declare a new local variable c. Store the
1016 result of add_com("handle") to it. Assign the command
1017 completer for "handle" to handle_completer.
1018
5b9afe8a
YQ
10192012-08-09 Yao Qi <yao@codesourcery.com>
1020
1021 * cli/cli-decode.c (set_cmd_prefix): New.
1022 (lookup_cmd_for_prefixlist): New.
1023 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1024 of each cmd_list_element in *prefixlist.
1025 (add_setshow_cmd_full): set_cmd_prefix.
1026 (add_alias_cmd): Likewise.
1027 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1028 Declare 'auto_boolean_enums'.
1029 * cli/cli-setshow.c: Include "observer.h".
1030 (notify_command_param_changed_p): New.
1031 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1032 Remove 'static'.
1033 (do_setshow_command): Split it to ...
1034 (do_set_command, do_show_command): ... them. New.
1035 (do_set_command): Call observer_notify_command_param_changed if
1036 notify_command_param_changed_p returns true.
1037 (cmd_show_list): Caller update.
1038 * auto-load.c (set_auto_load_cmd): Likewise.
1039 * remote.c (show_remote_cmd): Likewise.
1040 * cli/cli-setshow.h: Update declarations.
1041 * top.c (execute_command): Call do_set_command and do_show_command.
1042
1043 * NEWS: Mention new MI notification.
1044 * mi/mi-interp.c: Declare mi_command_param_changed.
1045 (mi_interpreter_init): Attach mi_command_param_changed to
1046 observer command_param_changed.
1047 (mi_command_param_changed): New.
1048 Remove mi_suppress_breakpoint_notifications.
1049 Define global variable mi_suppress_notification.
1050 (mi_breakpoint_created): Update.
1051 (mi_breakpoint_deleted): Likewise.
1052 (mi_breakpoint_modified): Likewise.
1053 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1054 'gdb-set' and set mi_suppress_notification.
1055 * mi/mi-main.h: (mi_suppress_notification): New struct.
1056
1969df89
JK
10572012-08-09 Andreas Tobler <andreast@fgznet.ch>
1058 Jan Kratochvil <jan.kratochvil@redhat.com>
1059
1060 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1061
8bfd80db
YQ
10622012-08-09 Yao Qi <yao@codesourcery.com>
1063
1064 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1065 (skiplist): Move it to skip.c.
1066 (init_cmd_lists): Remove code setting enablebreaklist and
1067 skiplist to NULL.
1068 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1069 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1070 skiplist.
1071 * gdbcmd.h: Likewise.
1072 * skip.c (_initialize_step_skip): Move 'skiplist' from
1073 cli/cli-cmds.c.
1074
28578e6b
YQ
10752012-08-09 Yao Qi <yao@codesourcery.com>
1076
1077 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1078 * gnu-nat.c, symfile.c: Likewise.
1079
260c0b2a
DE
10802012-08-08 Aaron Gamble <agamble@google.com>
1081
1082 * utils.c (prompt_for_continue_wait_time): New static global.
1083 (make_command_stats_cleanup): Initialize it.
1084 (report_command_stats): Subtract time waiting for user.
1085 (prompt_for_continue): Track time waiting for user.
1086 (defaulted_query): Track time waiting for user.
1087
4f485ebc
DE
10882012-08-08 Doug Evans <dje@google.com>
1089
1090 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1091 UNOP_MEMVAL_TYPE.
1092 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1093 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1094 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1095 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1096 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1097 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1098 elt.
1099 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1100 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1101 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1102 (dump_prefix_expression): Handle OP_TYPE.
1103
2acf2b39
KS
11042012-08-08 Keith Seitz <keiths@redhat.com>
1105
1106 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1107 addr_start.
1108
e6712ff1
DE
11092012-08-08 Doug Evans <dje@google.com>
1110
1111 * linux-thread-db.c: #include "gdb_vecs.h".
1112 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1113 updated.
1114 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1115 (thread_db_load_search): Use a vector to iterate over path elements.
1116 Handle text appearing after "$pdir".
1117
1118 * gdb_string.h: Moved to ...
1119 * common/gdb_string.h: ... here.
1120 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1121 gdb_string.h and gdb_assert.h.
1122
ab854e54
YQ
11232012-08-08 Yao Qi <yao@codesourcery.com>
1124
1125 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1126 (tic6x_value_to_register): Likewise.
1127 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1128 and set_gdbarch_value_to_register.
1129
4f69f4c2
JK
11302012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1131 Jean-Marc Saffroy <saffroy@gmail.com>
1132
1133 PR 11804
1134 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1135 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1136 * gcore.c (gcore_create_callback): New function comment. Add modified
1137 parameter. Only write modified regions. Set SEC_READONLY exactly
1138 according to MODIFIED.
1139 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1140 the passed modified value to FUNC.
1141 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1142 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1143 first. New variables modified and has_anonymous. Parse the lines of
1144 smaps file. Add the passed MODIFIED value to FUNC.
1145 * procfs.c (find_memory_regions_callback): Add the passed modified
1146 value.
1147
78ac5f83
TT
11482012-08-06 Tom Tromey <tromey@redhat.com>
1149
1150 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1151 (dwarf2_frame_cache): Use it.
1152 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1153 cache initialization constraint.
1154
2c12abee
TT
11552012-08-06 Tom Tromey <tromey@redhat.com>
1156
1157 PR python/14386:
1158 * varobj.c (update_dynamic_varobj_children): Don't call
1159 PyIter_Check.
1160
4979d7f0
TT
11612012-08-06 Tom Tromey <tromey@redhat.com>
1162
1163 PR cli/14392:
1164 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1165
f3c8a52a
JK
11662012-08-06 Nathaniel Flath <flat0103@gmail.com>
1167
1168 * NEWS: New entry for 'cd' default parameters.
1169 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1170
5a1cf4d6
TT
11712012-08-03 Tom Tromey <tromey@redhat.com>
1172
1173 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1174 return.
1175
7c3270ae
UW
11762012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1177
1178 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1179 to attempting lseek/write.
1180 (inf_child_fileio_pread): Likewise for pread.
1181
ccce17b0
YQ
11822012-08-02 Yao Qi <yao@codesourcery.com>
1183
1184 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1185 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1186 add_setshow_zinteger_cmd.
1187 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1188 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1189 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1190 instead of add_setshow_zinteger_cmd.
1191 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1192 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1193 instead of add_setshow_zinteger_cmd.
1194 * frame.c (frame_debug): Add 'unsigned'.
1195 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1196 add_setshow_zinteger_cmd.
1197 * frame.h: Update the declaration of 'frame_debug'.
1198 * gdbtypes.c (overload_debug): Add 'unsigned'.
1199 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1200 add_setshow_zinteger_cmd.
1201 * inferior.h: Update declaration of 'debug_infrun'.
1202 * infrun.c (debug_infrun): Add 'unsigned'.
1203 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1204 add_setshow_zinteger_cmd.
1205 * jit.c (jit_debug): Add 'unsigned'.
1206 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1207 add_setshow_zinteger_cmd.
1208 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1209 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1210 instead of add_setshow_zinteger_cmd.
1211 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1212 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1213 add_setshow_zinteger_cmd.
1214 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1215 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1216 instead of add_setshow_zinteger_cmd.
1217 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1218 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1219 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1220 intead of add_setshow_zinteger_cmd.
1221 * mips-tdep.c (mips_debug): Add 'unsigned'.
1222 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1223 instead of add_setshow_zinteger_cmd.
1224 * monitor.c (monitor_debug): Add 'unsigned'.
1225 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1226 add_setshow_zinteger_cmd.
1227 * observer.c (observer_debug): Add 'unsigned'.
1228 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1229 add_setshow_zinteger_cmd.
1230 * parse.c (expressiondebug): Add 'unsigned'.
1231 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1232 add_setshow_zinteger_cmd.
1233 * record.c (record_debug): Add 'unsigned'.
1234 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1235 add_setshow_zinteger_cmd.
1236 * record.h: Update the declaration of 'record_debug'.
1237 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1238 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1239 add_setshow_zinteger_cmd.
1240 * serial.c (global_serial_debug_p): Add 'unsigned'.
1241 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1242 add_setshow_zinteger_cmd.
1243 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1244 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1245 add_setshow_zinteger_cmd.
1246 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1247 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1248 add_setshow_zinteger_cmd.
1249 * target.c (targetdebug): Add 'unsigned'.
1250 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1251 add_setshow_zinteger_cmd.
1252 * valops.c (overload_debug): Add 'unsigned'.
1253 * varobj.c (varobjdebug): Add 'unsigned'.
1254 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1255 add_setshow_zinteger_cmd.
1256 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1257 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1258 instead of add_setshow_zinteger_cmd.
1259
1260 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1261 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1262 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1263 instead of add_setshow_zinteger_cmd.
1264 * gdbarch.c, gdbarch.h: Re-generated.
1265
95b07c96
YQ
12662012-08-02 Yao Qi <yao@codesourcery.com>
1267
1268 * nto-tdep.c: Don't include cli/cli-decode.h and
1269 cli/cli-cmds.h.
1270 (_initialize_nto_tdep): Remove.
1271 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1272 Remove field.
1273 Remove macro nto_internal_debugging.
1274
57295b0b
RH
12752012-08-01 Richard Henderson <rth@redhat.com>
1276
1277 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1278 (mep-*-*) [gdb_target_obs]: Likewise.
1279
f782ad9b
AS
12802012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1281
1282 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1283 linux_get_siginfo_type.
1284
a14dd77e
JK
12852012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1286
1287 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1288 AT_ENTRY_POINT.
1289 (call_function_by_hand) <ON_STACK>: Call write_memory with
1290 gdbarch_breakpoint_from_pc, if possible.
1291 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1292 here.
1293
1467929f
YQ
12942012-07-31 Yao Qi <yao@codesourcery.com>
1295
1296 * tracepoint.c: Add 'static' for some variables.
1297
70976b65
YQ
12982012-07-31 Yao Qi <yao@codesourcery.com>
1299
1300 * go32-nat.c: Declare _initialize_go32_nat.
1301 * ser-go32.c: Declare _initialize_ser_dos.
1302 * top.c (do_chdir_cleanup): Add 'static'.
1303
eff9c3e6
KS
13042012-07-30 Keith Seitz <keiths@redhat.com>
1305
1306 * linespec.c (linespec_lex_number): A number followed
1307 by quotes is a valid number, too.
1308
728400d7
TT
13092012-07-30 Tom Tromey <tromey@redhat.com>
1310
1311 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1312
fcf303ab
UW
13132012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1314
1315 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1316 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1317
4e969b4f
AB
13182012-07-30 Andrew Burgess <aburgess@broadcom.com>
1319
1320 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1321 invalid or reevaluated to prevent prevent references to possibly
1322 delete'd type objects being left in the varobj.
1323
c4bfde41
JK
13242012-07-27 Tom Tromey <tromey@redhat.com>
1325 Jan Kratochvil <jan.kratochvil@redhat.com>
1326
1327 * copying.awk: Print buffer-read-only and vi ro markers.
1328 * copying.c: Rebuild.
1329 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1330 * gdbarch.c, gdbarch.h: Rebuild.
1331 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1332 buffer-read-only and vi ro markers.
1333 * features/arm-with-iwmmxt.c: Rebuild.
1334 * features/arm-with-m-fpa-layout.c: Rebuild.
1335 * features/arm-with-m-vfp-d16.c: Rebuild.
1336 * features/arm-with-m.c: Rebuild.
1337 * features/arm-with-neon.c: Rebuild.
1338 * features/arm-with-vfpv2.c: Rebuild.
1339 * features/arm-with-vfpv3.c: Rebuild.
1340 * features/i386/amd64-avx-linux.c: Rebuild.
1341 * features/i386/amd64-avx.c: Rebuild.
1342 * features/i386/amd64-linux.c: Rebuild.
1343 * features/i386/amd64.c: Rebuild.
1344 * features/i386/i386-avx-linux.c: Rebuild.
1345 * features/i386/i386-avx.c: Rebuild.
1346 * features/i386/i386-linux.c: Rebuild.
1347 * features/i386/i386-mmx-linux.c: Rebuild.
1348 * features/i386/i386-mmx.c: Rebuild.
1349 * features/i386/i386.c: Rebuild.
1350 * features/i386/x32-avx-linux.c: Rebuild.
1351 * features/i386/x32-avx.c: Rebuild.
1352 * features/i386/x32-linux.c: Rebuild.
1353 * features/i386/x32.c: Rebuild.
1354 * features/mips-dsp-linux.c: Rebuild.
1355 * features/mips-linux.c: Rebuild.
1356 * features/mips64-dsp-linux.c: Rebuild.
1357 * features/mips64-linux.c: Rebuild.
1358 * features/rs6000/powerpc-32.c: Rebuild.
1359 * features/rs6000/powerpc-32l.c: Rebuild.
1360 * features/rs6000/powerpc-403.c: Rebuild.
1361 * features/rs6000/powerpc-403gc.c: Rebuild.
1362 * features/rs6000/powerpc-405.c: Rebuild.
1363 * features/rs6000/powerpc-505.c: Rebuild.
1364 * features/rs6000/powerpc-601.c: Rebuild.
1365 * features/rs6000/powerpc-602.c: Rebuild.
1366 * features/rs6000/powerpc-603.c: Rebuild.
1367 * features/rs6000/powerpc-604.c: Rebuild.
1368 * features/rs6000/powerpc-64.c: Rebuild.
1369 * features/rs6000/powerpc-64l.c: Rebuild.
1370 * features/rs6000/powerpc-7400.c: Rebuild.
1371 * features/rs6000/powerpc-750.c: Rebuild.
1372 * features/rs6000/powerpc-860.c: Rebuild.
1373 * features/rs6000/powerpc-altivec32.c: Rebuild.
1374 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1375 * features/rs6000/powerpc-altivec64.c: Rebuild.
1376 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1377 * features/rs6000/powerpc-cell32l.c: Rebuild.
1378 * features/rs6000/powerpc-cell64l.c: Rebuild.
1379 * features/rs6000/powerpc-e500.c: Rebuild.
1380 * features/rs6000/powerpc-e500l.c: Rebuild.
1381 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1382 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1383 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1384 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1385 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1386 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1387 * features/rs6000/powerpc-vsx32.c: Rebuild.
1388 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1389 * features/rs6000/powerpc-vsx64.c: Rebuild.
1390 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1391 * features/rs6000/rs6000.c: Rebuild.
1392 * features/s390-linux32.c: Rebuild.
1393 * features/s390-linux32v1.c: Rebuild.
1394 * features/s390-linux32v2.c: Rebuild.
1395 * features/s390-linux64.c: Rebuild.
1396 * features/s390-linux64v1.c: Rebuild.
1397 * features/s390-linux64v2.c: Rebuild.
1398 * features/s390x-linux64.c: Rebuild.
1399 * features/s390x-linux64v1.c: Rebuild.
1400 * features/s390x-linux64v2.c: Rebuild.
1401 * features/tic6x-c62x-linux.c: Rebuild.
1402 * features/tic6x-c62x.c: Rebuild.
1403 * features/tic6x-c64x-linux.c: Rebuild.
1404 * features/tic6x-c64x.c: Rebuild.
1405 * features/tic6x-c64xp-linux.c: Rebuild.
1406 * features/tic6x-c64xp.c: Rebuild.
1407
826f0041
TT
14082012-07-27 Tom Tromey <tromey@redhat.com>
1409
1410 * c-exp.y (classify_name): Avoid assignment in condition.
1411
84552b16
PA
14122012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1413
1414 * amd64-windows-tdep.c: Include "frame.h".
1415 (amd64_windows_skip_trampoline_code): New function.
1416 (amd64_windows_init_abi): Add trampoline registration.
1417
a8a64aa8
YQ
14182012-07-27 Yao Qi <yao@codesourcery.com>
1419
1420 * tracepoint.c (cur_traceframe_number): Remove.
1421 (set_tfile_traceframe): Remove.
1422 (tfile_trace_find, tfile_fetch_registers): Update callers.
1423 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1424 (tfile_open, tfile_trace_find): Likewise.
1425
d99067cb
YQ
14262012-07-27 Yao Qi <yao@codesourcery.com>
1427
1428 * thread.c (switch_to_thread): Don't call registers_changed.
1429
f2e8016f
TT
14302012-07-26 Tom Tromey <tromey@redhat.com>
1431
f782ad9b
AS
1432 * Makefile.in (SFILES): Remove objc-exp.y.
1433 (YYFILES): Remove objc-exp.c.
1434 (YYOBJ): Remove objc-exp.o.
1435 (local-maintainer-clean): Don't mention objc-exp.c.
1436 * c-exp.y: Include objc-lang.h.
1437 (%union) <class>: New field.
1438 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1439 (exp): Clone subscript production for OBJC_LBRAC. Add various
1440 Objective C productions.
1441 (msglist, msgarglist, msgarg): New productions.
1442 (array_mod, func_mod, operator): Clone productions for
1443 OBJC_LBRAC.
1444 (parse_string_or_char): Handle '@' strings.
1445 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1446 (classify_name): Check la_name_of_this. Recognize ObjC class
1447 names.
1448 * objc-exp.y: Remove.
1449 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1450 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1451
f66713d2
JK
14522012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1453
1454 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1455
7cfe01b4
JK
14562012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1457
1458 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1459 and decrement.
1460
5ba19b4c
TT
14612012-07-26 Tom Tromey <tromey@redhat.com>
1462
1463 * copying.c: Rebuild.
1464 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1465 'no_class'.
1466
27618ce4
TT
14672012-07-26 Tom Tromey <tromey@redhat.com>
1468
1469 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1470 immediate_quit.
1471 (print_objfile_statistics): Likewise.
1472 (maintenance_print_symbols): Likewise.
1473 (maintenance_print_msymbols): Likewise.
1474 (maintenance_print_objfiles): Likewise.
1475 * psymtab.c (print_partial_symbols): Call QUIT.
1476 (maintenance_print_psymbols): Likewise. Don't modify
1477 immediate_quit.
1478 * copying.c (show_copying_command): Don't modify immediate_quit.
1479 (show_warranty_command): Likewise.
1480 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1481
dd3818c8
KS
14822012-07-26 Keith Seitz <keiths@redhat.com>
1483
1484 * linespec.c (linespec_lexer_lex_number): The input
1485 is also a valid number if the next character is a comma
1486 or colon.
1487
23a80689
JB
14882012-07-26 Joel Brobecker <brobecker@adacore.com>
1489
1490 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1491 configure options.
1492
29f77997
TG
14932012-07-26 Tristan Gingold <gingold@adacore.com>
1494
1495 * machoread.c: Include gdb_bfd.h.
1496
a55c1f32
TG
14972012-07-26 Tristan Gingold <gingold@adacore.com>
1498
1499 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1500 offset.
1501
56eb65bd
SP
15022012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1503
1504 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1505 SIZE to size_t.
1506 (dwarf2_evaluate_loc_desc): Likewise.
1507 (dwarf2_loc_desc_needs_frame): Likewise.
1508 (locexpr_describe_location_1): Likewise.
1509 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1510 size_t.
1511 (struct dwarf2_loclist_baton): Likewise.
1512 * dwarf2read.c (struct dwarf_block): Likewise.
1513 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1514 (decode_locdesc): Expand SIZE and I to size_t.
1515
aec8845c
JK
15162012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1517
1518 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1519
33d7655b
JB
15202012-07-25 Joel Brobecker <brobecker@adacore.com>
1521
1522 * doublest.c (convert_doublest_to_floatformat): If the exponent
1523 is too small, treat the value as zero. If the exponent is too
1524 large, treat the value as infinity.
1525
a22d44ff
JB
15262012-07-25 Joel Brobecker <brobecker@adacore.com>
1527
1528 * configure.ac: Add --enable-lmcheck configure option.
1529 * configure: Regenerate.
1530
d6b28940
TT
15312012-07-25 Tom Tromey <tromey@redhat.com>
1532
f782ad9b
AS
1533 * NEWS: Mention maint info bfds.
1534 * gdb_bfd.c (all_bfds): New global.
1535 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1536 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1537 New functions.
d6b28940 1538
6e73ba20
RC
15392012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1540
1541 * configure.tgt: Add v850*-*-rtems*.
1542
d560eebd
TT
15432012-07-25 Tom Tromey <tromey@redhat.com>
1544
1545 * macrotab.c (macro_bcache_str): Remove cast.
1546
d7cbec71
HZ
15472012-07-25 Hui Zhu <hui_zhu@mentor.com>
1548
1549 * linespec.c (linespec_lexer_lex_number): Update comments,
1550 change the return and add check to make sure the input is
1551 the decimal numbers.
1552 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1553 false, call linespec_lexer_lex_string.
1554
882f447f
TT
15552012-07-24 Tom Tromey <tromey@redhat.com>
1556
1557 * symfile.c (symbol_file_add): Don't open BFD twice.
1558
53ab4066 15592012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1560
1561 * breakpoint.c (create_breakpoint): Store condition for pending
1562 breakpoints.
1563
108fb0f7
AS
15642012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1565
1566 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1567 (m68k_return_value): Handle complex types like structures.
1568 (m68k_svr4_return_value): Likewise.
1569
1634dcbe
JK
15702012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1571
1572 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1573 parameters to bfd_get_section_name.
1574
e2d12c21
YQ
15752012-07-24 Yao Qi <yao@codesourcery.com>
1576
1577 * cli/cli-setshow.c: Handle case 'var_uinteger'
1578 and 'var_zuninteger' together. Handle case 'var_integer' and
1579 'var_zinteger' together.
1580
64b92e45
KS
15812012-07-23 Keith Seitz <keiths@redhat.com>
1582
1583 * linespec.c (convert_linespec_to_sal): Don't add
1584 any symbols to the result vector if symbol_to_sal
1585 returns zero.
1586
0f5f4ffe
KS
15872012-07-23 Keith Seitz <keiths@redhat.com>
1588
1589 * linespec.c (decode_objc): Record the function name
1590 in the linespec.
1591
da1cc82f
TT
15922012-07-23 Tom Tromey <tromey@redhat.com>
1593
1594 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1595 counting.
1596 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1597 (map_vmap): Acquire a reference to the BFD.
1598
6c18f3e0
SP
15992012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1600
1601 * p-valprint.c (pascal_object_print_value): Replace potentially
1602 unsafe alloca with xmalloc/xfree.
1603 * valops.c (search_struct_method): Likewise.
1604
695c3173
TT
16052012-07-23 Tom Tromey <tromey@redhat.com>
1606
1607 * solib-svr4.c (enable_break): Update.
1608 * bfd-target.h (target_bfd_reopen): Update documentation.
1609
08d2cd74
TT
16102012-07-23 Tom Tromey <tromey@redhat.com>
1611
1612 * symfile.c (separate_debug_file_exists): Update.
1613 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1614 (reread_symbols): Update.
1615 * elfread.c (build_id_verify): Update.
1616 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1617 bfd_open_maybe_remote.
1618
596f7d67
TT
16192012-07-23 Tom Tromey <tromey@redhat.com>
1620
1621 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1622
8ac244b4
TT
16232012-07-23 Tom Tromey <tromey@redhat.com>
1624
1625 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1626 and 'abfd'.
1627 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1628 and 'abfd'.
1629 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1630 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1631 'abfd'.
1632 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1633 * objfiles.c (allocate_objfile): Acquire a new reference.
1634 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1635 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1636 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1637 a cleanup for 'nbfd'.
1638 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1639 for 'nbfd'.
1640 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1641 make a cleanup for 'abfd'.
1642 (symbol_file_add): Make a BFD cleanup.
1643
64c31149
TT
16442012-07-23 Tom Tromey <tromey@redhat.com>
1645
1646 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1647 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1648 * corelow.c (core_open): Use gdb_bfd_fopen.
1649 * dsrec.c (load_srec): Use gdb_bfd_openr.
1650 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1651 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1652 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1653 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1654 (gdb_bfd_fdopenr): New functions.
1655 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1656 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1657 (gdb_bfd_fdopenr): Declare.
1658 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1659 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1660 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1661 gdb_bfd_openr_next_archived_file.
1662 (macho_check_dsym): Use gdb_bfd_openr.
1663 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1664 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1665 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1666 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1667 gdb_bfd_openr.
1668 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1669 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1670 gdb_bfd_openr_next_archived_file.
1671 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1672 Use gdb_bfd_openr.
1673 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1674 gdb_bfd_openr.
1675 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1676 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1677 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1678 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1679 (symfile_bfd_open): Use gdb_bfd_fopen.
1680 (generic_load): Use gdb_bfd_openr.
1681 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1682
520b0001
TT
16832012-07-23 Tom Tromey <tromey@redhat.com>
1684
1685 * bfd-target.c (target_bfd_reopen): Update.
1686 * cli/cli-dump.c (bfd_openr_with_cleanup)
1687 (bfd_openw_with_cleanup): Update.
1688 * corelow.c (core_open): Update.
1689 * dsrec.c (load_srec): Update.
1690 * exec.c (exec_file_attach): Update.
1691 * gcore.c (create_gcore_bfd): Update.
1692 * gdb_bfd.c (gdb_bfd_ref): Return void.
1693 (gdb_bfd_open): Update.
1694 * gdb_bfd.h (gdb_bfd_ref): Return void.
1695 Update comments.
1696 * jit.c (jit_bfd_try_read_symtab): Update.
1697 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1698 * machoread.c (macho_symfile_read_all_oso): Update.
1699 (macho_check_dsym): Update.
1700 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1701 * remote-m32r-sdi.c (m32r_load): Update.
1702 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1703 * rs6000-nat.c (add_vmap): Update.
1704 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1705 Update.
1706 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1707 * solib-spu.c (spu_bfd_open): Update.
1708 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1709 * spu-linux-nat.c (spu_bfd_open): Update.
1710 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1711 (generic_load): Update.
1712 * windows-nat.c (windows_make_so): Update.
1713
2322ff16
SP
17142012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1715
1716 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1717
3def0b36
PA
17182012-07-20 Jeff Kenton <jkenton@tilera.com>
1719
1720 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1721 SIGTRAMP_FRAME unwinding.
1722
e615022a
DE
17232012-07-20 Doug Evans <dje@google.com>
1724
1725 * NEWS: Document new options "set/show use-deprecated-index-sections",
1726 and delete reference to --use-deprecated-index-sections.
1727 * symfile.h (use_deprecated_index_sections): Delete.
1728 * dwarf2read.c (use_deprecated_index_sections): Make static.
1729 (read_index_from_section): Update wording of how to load
1730 deprecated index sections.
1731 (_initialize_dwarf2_read): New options
1732 "set/show use-deprecated-index-sections".
1733 * main.c (captured_main): Delete --use-deprecated-index-sections.
1734
64776a0b
PA
17352012-07-20 Pedro Alves <palves@redhat.com>
1736
1737 PR threads/11692
1738 PR gdb/12203
1739
1740 * infrun.c (handle_inferior_event) <new thread>: Don't special
1741 case minus_one_ptid.
1742 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1743 * linux-thread-db.c (thread_get_info_callback): Don't return early
1744 if the thread is zombie.
1745 (thread_from_lwp): Change return type to void. Rewrite stale
1746 comment.
1747 (attach_thread): Don't return early if the thread is zombie,
1748 instead set its "dying" flag.
1749 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1750 (find_new_threads_callback): Don't return early if the thread is
1751 zombie.
1752
09826ec5
PA
17532012-07-20 Pedro Alves <palves@redhat.com>
1754
1755 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1756 * target.c (target_wait): Likewise.
1757 (str_comma_list_concat_elem, do_option, target_options_to_string):
1758 New functions.
1759 * target.h (target_options_to_string): Declare.
1760
f7a35f02
TT
17612012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1762 Tom Tromey <tromey@redhat.com>
1763
1764 * dwarf2read.c (dwarf_decode_macros)
1765 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1766 DW_MACRO_GNU_transparent_include_alt>: New cases.
1767 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1768 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1769
b81e1ee0
TT
17702012-07-20 Tom Tromey <tromey@redhat.com>
1771
1772 * dwarf2read.c (try_open_dwo_file): Don't call
1773 gdb_bfd_stash_filename.
1774
99c1624c
PA
17752012-07-20 Pedro Alves <palves@redhat.com>
1776
1777 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1778 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1779 (i386_process_record): Tweak description comments.
1780
4ffa4fc7
PA
17812012-07-20 Pedro Alves <palves@redhat.com>
1782
1783 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1784 (i386_process_record): Use record_read_memory.
1785 * record.c (record_read_memory): New function.
1786 (record_arch_list_add_mem, record_exec_insn): Use
1787 record_read_memory.
1788 * record.h (record_read_memory): Declare.
1789
c24343e2
YQ
17902012-07-20 Yao Qi <yao@codesourcery.com>
1791
1792 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1793 NULL for xfree.
1794
90f47860
PA
17952012-07-19 Pedro Alves <palves@redhat.com>
1796
1797 * record.c (record_resume): Ask the target beneath to report all
1798 signals.
1799
01093045
DE
18002012-07-19 Doug Evans <dje@google.com>
1801
1802 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1803 there's no section at address zero.
1804 (dwarf2_record_block_ranges): Ditto.
1805
a7c3d162
YQ
18062012-07-19 Yao Qi <yao@codesourcery.com>
1807
1808 * command.h, remote.c: Fix a typo in comment.
1809
608b4967
TT
18102012-07-19 Tom Tromey <tromey@redhat.com>
1811
1812 PR exp/13206:
1813 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1814 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1815 OP_DECLTYPE>: New cases.
1816 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1817 (type_exp): Add new productions.
1818 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1819 and decltype.
1820 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1821 New case.
1822 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1823 OP_DECLTYPE>: New case.
1824 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1825 New case.
1826 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1827 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1828
274b54d7
TT
18292012-07-19 Tom Tromey <tromey@redhat.com>
1830
1831 * c-exp.y (enum token_flags): New.
1832 (struct token) <cxx_only>: Remove.
1833 <flags>: New field.
1834 (tokentab3, tokentab2, ident_tokens): Update.
1835 (lex_one_token): Update. Handle FLAG_SHADOW.
1836
9eaf6705
TT
18372012-07-19 Tom Tromey <tromey@redhat.com>
1838
1839 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1840 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1841 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1842 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1843 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1844 type_exp production where appropriate.
1845 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1846 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1847 <UNOP_MEMVAL_TYPE>: New case.
1848 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1849 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1850 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1851 <UNOP_MEMVAL_TYPE>: New case.
1852 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1853 UNOP_REINTERPRET_CAST>: Update.
1854 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1855 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1856 UNOP_REINTERPRET_CAST>: Update.
1857 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1858 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1859 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1860 constants.
1861
6ace3df1
YQ
18622012-07-19 Yao Qi <yao@codesourcery.com>
1863 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1866 and case 'var_optional_filename' together.
1867 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1868 instead of add_setshow_optional_filename_cmd for setshow command
1869 'args'. Set completer for 'set args'.
1870
48faced0
DE
18712012-07-18 Doug Evans <dje@google.com>
1872
1873 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1874 * common/gdb_vecs.c: New file, contents from utils.c.
1875 * common/host-defs.h: New file, contents from defs.h.
1876 * utils.h: New file, contents from defs.h.
1877 * defs.h: Move all declarations of objects defined in utils.c
1878 to utils.h (except QUIT() and related).
1879 #include "utils.h", "host-defs.h".
1880 * probe.h (probe_p): Move here from gdb_vecs.h.
1881 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1882 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1883 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1884 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1885 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1886 (COMMON_OBS): Add gdb_vecs.o.
1887 (gdb_vecs.o): New rule.
1888
66f1999b
KS
18892012-07-18 Keith Seitz <keiths@redhat.com>
1890
1891 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1892 parameter. If non-zero, use SYMNAME as the canonical name
1893 for the SaL.
1894 Update all callers.
1895 (convert_linespec_to_sals): Use add_sal_to_sals for
1896 expressions, too.
1897 (decode_line_full): No need to "fill in missing canonical names"
1898 anymore. Simply make cleanups for the allocated names.
1899
5d94e27b
KS
19002012-07-18 Keith Seitz <keiths@redhat.com>
1901
1902 * linespec.c (struct linespec): Constify expression,
1903 source_filename, function_name, and label_name.
1904 (symbol_not_found_error): Make all parameters const.
1905 (linespec_parser_delete): No need to check for NULL
1906 when using xfree. Cast const char * to char * for xfree.
1907
af4908ba
KS
19082012-07-18 Keith Seitz <keiths@redhat.com>
1909
1910 * breakpoint.c (invalid_thread_id_error): New function.
1911 (find_condition_and_thread): Use invalid_thread_id_error.
1912 (watch_command_1): Likewise.
1913
853254db
TT
19142012-07-18 Tom Tromey <tromey@redhat.com>
1915
1916 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1917 * contrib/cc-with-tweaks.sh: New file.
1918
2ec9a5e0
TT
19192012-07-18 Tom Tromey <tromey@redhat.com>
1920
1921 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1922 (locate_dwz_sections): Recognize .gdb_index.
1923 (create_cus_from_index_list): New function.
1924 (create_cus_from_index): Use it. Handle .dwz data.
1925 (read_index_from_section): New function, extracted from
1926 dwarf2_read_index.
1927 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1928 if needed.
1929
36586728
TT
19302012-07-18 Tom Tromey <tromey@redhat.com>
1931
1932 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1933 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1934 <is_dwz>: New field.
1935 (struct dwz_file): New.
1936 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1937 (locate_dwz_sections, dwarf2_get_dwz_file)
1938 (get_abbrev_section_for_cu): New functions.
1939 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1940 (read_and_check_type_unit_head): Add abbrev_section argument.
1941 (create_debug_types_hash_table): Update.
1942 (init_cutu_and_read_dies): Use proper abbrev section.
1943 (init_cutu_and_read_dies_no_follow): Likewise.
1944 (set_partial_user): Do nothing if PST==NULL.
1945 (read_comp_units_from_section): New function.
1946 (create_all_comp_units): Use it.
1947 (scan_partial_symbols, partial_die_parent_scope): Update.
1948 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1949 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1950 (find_partial_die): Add offset_in_dwz argument. Update.
1951 (guess_partial_die_structure_name, fixup_partial_die): Update.
1952 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1953 DW_FORM_GNU_strp_alt.
1954 (read_indirect_string_from_dwz): New function.
1955 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1956 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1957 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1958 (follow_die_offset): Add offset_in_dwz argument.
1959 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1960 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1961 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1962 Handle new macro forms.
1963 (dwarf_decode_macros): Update.
1964 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1965 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1966 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1967 (create_debug_types_hash_table): Use correct abbrev section.
1968 (get_debug_line_section): New function.
1969 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1970 (process_full_comp_unit): Pass 'required' argument to
1971 end_symtab_get_static_block.
1972 * buildsym.h (end_symtab_get_static_block): Update.
1973 * buildsym.c (end_symtab_get_static_block): Add 'required'
1974 argument.
1975 (end_symtab, end_expandable_symtab): Update.
1976
4bf44c1c
TT
19772012-07-18 Tom Tromey <tromey@redhat.com>
1978
1979 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1980 (pagesize): Remove.
1981 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1982 (zlib_decompress_section): Remove.
1983 (dwarf2_read_section): Use gdb_bfd_map_section.
1984 (munmap_section_buffer): Remove.
1985 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1986 munmap_section_buffer.
1987 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1988 (struct gdb_bfd_section_data): New.
1989 (free_one_bfd_section): New function.
1990 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1991 (get_section_descriptor, zlib_decompress_section)
1992 (gdb_bfd_map_section): New functions.
1993 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1994
bb397797
TT
19952012-07-18 Tom Tromey <tromey@redhat.com>
1996
1997 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1998
6ec53d05
TT
19992012-07-18 Tom Tromey <tromey@redhat.com>
2000
2001 * gdb_bfd.c (struct gdb_bfd_data): New.
2002 (gdb_bfd_cache): New global.
2003 (struct gdb_bfd_cache_search): New.
2004 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2005 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2006 * gdb_bfd.h (gdb_bfd_open): Declare.
2007
f9a062ff
TT
20082012-07-18 Tom Tromey <tromey@redhat.com>
2009
2010 * utils.c (make_cleanup_bfd_unref): Rename from
2011 make_cleanup_bfd_close.
2012 * defs.h (make_cleanup_bfd_unref): Rename from
2013 make_cleanup_bfd_close.
2014 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2015 (bfd_openw_with_cleanup): Update.
2016 * corelow.c (core_open): Update.
2017 * dsrec.c (load_srec): Update.
2018 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2019 * remote-m32r-sdi.c (m32r_load): Update.
2020 * remote-mips.c (mips_load_srec): Update.
2021 (pmon_load_fast): Update.
2022 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2023 Update.
2024 (darwin_bfd_open): Update.
2025 * solib.c (solib_bfd_fopen): Update.
2026 * symfile-mem.c (symbol_file_add_from_memory): Update.
2027 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2028 (symfile_bfd_open): Update.
2029 (generic_load): Update.
2030
d6ad71ba
TT
20312012-07-18 Tom Tromey <tromey@redhat.com>
2032
2033 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2034 (pmon_load_fast): Likewise.
2035 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2036 (m32r_upload_command): Likewise.
2037 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2038 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2039 Use make_cleanup_bfd_close.
2040
a4453b7e
TT
20412012-07-18 Tom Tromey <tromey@redhat.com>
2042
2043 * symfile.c (symfile_bfd_open): Don't copy name. Call
2044 gdb_bfd_stash_filename.
2045 (load_command): Open the new BFD before freeing the old.
2046 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2047 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2048 Call gdb_bfd_stash_filename.
2049 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2050 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2051 gdb_bfd_stash_filename.
2052 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2053 Free found_pathname.
2054 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2055 gdb_bfd_stash_filename.
2056 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2057 * machoread.c (macho_add_oso_symfile): Call
2058 gdb_bfd_stash_filename.
2059 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2060 gdb_bfd_stash_filename.
2061 (macho_check_dsym): Don't copy filename. Call
2062 gdb_bfd_stash_filename.
2063 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2064 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2065 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2066 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2067 * exec.c (exec_close): Don't free the BFD's filename.
2068 (exec_file_attach): Don't copy the filename. Call
2069 gdb_bfd_stash_filename.
2070 * corelow.c (core_close): Don't free the BFD's filename.
2071 (core_open): Call gdb_bfd_stash_filename.
2072 * corefile.c (reopen_exec_file): Remove #if 0 code.
2073 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2074 pathname.
2075 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2076
cbb099e8
TT
20772012-07-18 Tom Tromey <tromey@redhat.com>
2078
2079 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2080 gdb_bfd_unref.
2081 (free_dwo_file): Use gdb_bfd_unref.
2082 * cli/cli-dump.c: Include gdb_bfd.h.
2083 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2084 (bfd_openr_with_cleanup): Likewise.
2085 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2086 gdb_bfd_unref.
2087 * utils.c: Include gdb_bfd.h.
2088 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2089 * symfile.c: Include gdb_bfd.h.
2090 (separate_debug_file_exists): Use gdb_bfd_unref.
2091 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2092 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2093 (generic_load): Use gdb_bfd_ref.
2094 (reread_symbols): Use gdb_bfd_unref.
2095 * symfile-mem.c: Include gdb_bfd.h.
2096 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2097 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2098 * solib.c: Include gdb_bfd.h.
2099 (solib_bfd_fopen): Use gdb_bfd_ref.
2100 (solib_bfd_open): Use gdb_bfd_unref.
2101 (free_so_symbols): Use gdb_bfd_unref.
2102 (reload_shared_libraries_1): Use gdb_bfd_unref.
2103 * solib-spu.c: Include gdb_bfd.h.
2104 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2105 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2106 gdb_bfd_unref.
2107 * solib-frv.c: Include gdb_bfd.h.
2108 (enable_break2): Use gdb_bfd_unref.
2109 * solib-dsbt.c: Include gdb_bfd.h.
2110 (enable_break2): Use gdb_bfd_unref.
2111 * solib-darwin.c: Include gdb_bfd.h.
2112 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2113 gdb_bfd_unref.
2114 (darwin_bfd_open): Use gdb_bfd_unref.
2115 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2116 * remote-mips.c: Include gdb_bfd.h.
2117 (mips_load_srec): Use gdb_bfd_ref.
2118 (pmon_load_fast): Use gdb_bfd_ref.
2119 * remote-m32r-sdi.c: Include gdb_bfd.h.
2120 (m32r_load): Use gdb_bfd_ref.
2121 * record.c: Include gdb_bfd.h.
2122 (record_save_cleanups): Use gdb_bfd_unref.
2123 (cmd_record_save): Use gdb_bfd_unref.
2124 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2125 gdb_bfd_unref.
2126 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2127 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2128 * objfiles.c: Include gdb_bfd.h.
2129 (free_objfile): Use gdb_bfd_unref.
2130 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2131 gdb_bfd.c.
2132 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2133 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2134 (macho_check_dsym): Likewise.
2135 * m32r-rom.c: Include gdb_bfd.h.
2136 (m32r_load): Use gdb_bfd_ref.
2137 (m32r_upload_command): Use gdb_bfd_ref.
2138 * jit.c: Include gdb_bfd.h.
2139 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2140 * gdb_bfd.h: New file.
2141 * gdb_bfd.c: New file.
2142 * gcore.c: Include gdb_bfd.h.
2143 (create_gcore_bfd): Use gdb_bfd_ref.
2144 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2145 (gcore_command): Use gdb_bfd_unref.
2146 * exec.c: Include gdb_bfd.h.
2147 (exec_close): Use gdb_bfd_unref.
2148 (exec_close_1): Use gdb_bfd_unref.
2149 (exec_file_attach): Use gdb_bfd_ref.
2150 * elfread.c: Include gdb_bfd.h.
2151 (build_id_verify): Use gdb_bfd_unref.
2152 * dsrec.c: Include gdb_bfd.h.
2153 (load_srec): Use gdb_bfd_ref.
2154 * corelow.c: Include gdb_bfd.h.
2155 (core_close): Use gdb_bfd_unref.
2156 (core_open): Use gdb_bfd_ref.
2157 * bfd-target.c: Include gdb_bfd.h.
2158 (target_bfd_xclose): Use gdb_bfd_unref.
2159 (target_bfd_reopen): Use gdb_bfd_ref.
2160 * Makefile.in (SFILES): Add gdb_bfd.c.
2161 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2162 (COMMON_OBS): Add gdb_bfd.o.
2163
ed1d1739
KS
21642012-07-18 Keith Seitz <keiths@redhat.com>
2165
2166 * breakpoint.c (find_condition_and_thread): Initialize
2167 TASK and REST.
2168 (create_breakpiont): find_condition_and_thread will now
2169 initialize COND_STRING, THREAD, and REST (and TASK).
2170 (addr_string_to_sals): Likewise.
2171
eab402df
PA
21722012-07-18 Pedro Alves <palves@redhat.com>
2173
2174 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2175 Pull the single step breakpoints out of the target.
2176
2b963b68
SDJ
21772012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2178
2179 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2180 * stap-probe.c (compile_probe_arg): Likewise.
2181
6bac7473
SDJ
21822012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2183
2184 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2185 (elf_compile_to_ax): Likewise.
2186 * infrun.c (insert_exception_resume_from_probe): Likewise.
2187 (check_exception_resume): Remove `objfile' variable.
2188 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2189 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2190 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2191 (compare_entries): Rename to...
2192 (compare_probes): ...this. Adjust function to work with
2193 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2194 respectively.
2195 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2196 `VEC (probe_p) *'.
2197 (print_ui_out_info): Adjust argument to be `struct probe *'.
2198 (info_probes_for_ops): Adjust internal computations to use
2199 `VEC (probe_p) *'.
2200 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2201 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2202 gen_info_probes_table_values>: Remove `objfile' argument.
2203 (struct probe) <objfile>: New field.
2204 (find_probe_by_pc): Remove `objfile' argument.
2205 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2206 (stap_get_probe_argument_count): Likewise.
2207 (stap_get_arg): Likewise.
2208 (stap_evaluate_probe_argument): Likewise.
2209 (stap_compile_to_ax): Likewise.
2210 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2211 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2212 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2213 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2214 sym_compile_to_ax>: Likewise.
2215
3347eb1a 22162012-07-18 Terry Guo <terry.guo@arm.com>
2217
2218 PR 14329
2219 * defs.h (GDB_MI_MSG_WIDTH): New.
2220 * ser_base (ser_base_read_error_fd): New function.
2221 (do_ser_base_readchar): Poll error file descriptor as well as
2222 standard output.
f782ad9b 2223 (generic_readchar): Refactor error handling.
3347eb1a 2224
80c8d323
JB
22252012-07-18 Joel Brobecker <brobecker@adacore.com>
2226
2227 * NEWS: Create a new section for the next release branch.
2228 Rename the section of the current branch, now that it has
2229 been cut.
2230
b45a0664 22312012-07-18 Joel Brobecker <brobecker@adacore.com>
2232
2233 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2234 * version.in: Bump version to 7.5.50.20120718-cvs.
2235
09cf2b22
KS
22362012-07-17 Keith Seitz <keiths@redhat.com>
2237
2238 * linespec.c (linespec_parse_line_offset): Make parameter
2239 const.
2240
8f043999
JK
22412012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2242
2243 PR 11914
2244 * f-valprint.c (info_common_command): New variable frame_id.
2245 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2246 * printcmd.c (print_variable_and_value): Extend function comment.
2247 Add comment for invalidated FRAME.
2248 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2249 FI form FRAME_ID after each print_frame_local_vars.
2250 (struct print_variable_and_value_data): Change frame to frame_id.
2251 (do_print_variable_and_value): New variable frame, initialize it from
2252 p->frame_id. Add comment for invalidated FRAME.
2253 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2254 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2255 for invalidated FRAME.
2256
ae5e0686
MK
22572012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2258 Pedro Alves <palves@redhat.com>
2259
2260 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2261 loop.
2262
5049c5be
TT
22632012-07-16 Tom Tromey <tromey@redhat.com>
2264
2265 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2266
2908cac6
DE
22672012-07-15 Doug Evans <dje@google.com>
2268
094b34ac
DE
2269 * dwarf2read.c (stmt_list_hash): New struct.
2270 (type_unit_group): Embed "per_cu" member, remove pointer.
2271 New union member "t", move member "tus" into it, all uses updated.
2272 New member "hash", replaces member "line_offset, all uses updated.
2273 (quick_file_names): Replace member "offset" with "hash", all uses
2274 updated.
2275 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2276 (hash_file_name_entry, eq_file_name_entry): Call them.
2277 (hash_type_unit_group, eq_type_unit_group): Ditto.
2278 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2279 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2280 (dw2_get_file_names): Update.
2281 (create_type_unit_group): Replace "per_cu" arg with "cu".
2282 All callers updated. Fix "quick" (.gdb_index) handling.
2283 (get_type_unit_group): Replace "per_cu" arg with "cu".
2284 All callers updated.
2285 (build_type_unit_groups): Don't reset tu_stats.
2286
2908cac6
DE
2287 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2288 "tab_cur_size". Change member "tab" to be a htab_t.
2289 (create_filename_seen_cache): Update.
2290 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2291 (filename_seen): Update.
2292
a2b6eff5
DE
22932012-07-13 Doug Evans <dje@google.com>
2294
2295 * symtab.c (filename_seen): Update comment.
2296
4359dff1
JK
22972012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2298 Doug Evans <dje@google.com>
2299
2300 * buildsym.c (end_symtab_1): Split it to ...
2301 (end_symtab_get_static_block): ... this ...
2302 (end_symtab_from_static_block): ... and this function.
2303 (end_symtab, end_expandable_symtab): Call them.
2304 * buildsym.h (end_symtab_get_static_block)
2305 (end_symtab_from_static_block): New declarations.
2306 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2307 Set its valid CU ranges.
2308
a24f71ab
JK
23092012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2310
2311 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2312 DW_OP_GNU_parameter_ref.
2313
d76b7dbc
JK
23142012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2315
2316 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2317 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2318
9fdc877b
DE
23192012-07-13 Doug Evans <dje@google.com>
2320
2321 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2322 (filename_seen_cache): New struct.
2323 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2324 (create_filename_seen_cache): New function.
2325 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2326 (filename_seen): Delete arg "first". New arg "cache". All callers
2327 updated.
2328 (output_source_filename_data): New struct.
2329 (output_source_filename): Delete arg "first". New arg "data".
2330 All callers updated.
2331 (sources_info): Delete local "first". New locals "data", "cleanups".
2332 Rewrite to use filename_seen_cache.
2333 (add_partial_filename_data): Delete member "first". New member
2334 "filename_seen_cache". All uses updated.
2335 (make_source_files_completion_list): Rewrite to use
2336 filename_seen_cache.
2337
f80c6f3f
DE
23382012-07-12 Doug Evans <dje@google.com>
2339
2340 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2341
0bfa869d
DE
23422012-07-10 Doug Evans <dje@google.com>
2343
f4dc4d17
DE
2344 PR gdb/13498
2345 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2346 all_type_unit_groups, type_unit_groups, tu_stats.
2347 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2348 All uses updated. Add type_unit_group to union "s".
2349 (type_unit_group): New struct.
2350 (IS_TYPE_UNIT_GROUP): New macro.
2351 (abbrev_table): Delete unused member "section".
2352 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2353 (dw2_get_cu): Assert not used with type_unit_group.
2354 (dw2_get_primary_cu): New function.
2355 (dw2_build_type_unit_groups_reader): New function.
2356 (dw2_build_type_unit_groups): New function.
2357 (dw2_get_file_names): Assert not called on type units.
2358 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2359 Redo loop to iterate over type unit groups instead of type units.
2360 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2361 (read_abbrev_offset): New function.
2362 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2363 updated.
2364 (create_partial_symtab): New function.
2365 (process_psymtab_comp_unit_reader): Assert not used with type units.
2366 Call create_partial_symtab.
2367 (process_psymtab_type_unit): Delete.
2368 (hash_type_unit_group, eq_type_unit_group): New functions.
2369 (allocate_type_unit_groups_table): New function.
2370 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2371 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2372 (create_type_unit_group, get_type_unit_group): New functions.
2373 (tu_abbrev_offset): New struct.
2374 (sort_tu_by_abbrev_offset): New function.
2375 (add_type_unit_group_to_table): New function.
2376 (build_type_unit_groups): New function.
2377 (build_type_psymtabs_reader): New function.
2378 (build_type_psymtab_dependencies): New function.
2379 (build_type_psymtabs): Rewrite.
2380 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2381 is seen in a type unit.
2382 (process_queue): Move symtab expansion debugging printfs here.
2383 Call process_full_type_unit for type units.
2384 (compute_symtab_includes): Assert not called for type units.
2385 (process_cu_includes): Don't call compute_symtab_includes for
2386 type units.
2387 (process_full_type_unit): New function.
2388 (process_imported_unit_die): Flag an error if called for type units.
2389 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2390 updated. Assert not called for type units.
2391 (read_file_scope): Call dwarf2_start_symtab.
2392 (setup_type_unit_groups): New function.
2393 (read_type_unit_scope): Rewrite.
2394 (abbrev_table_read_table): Initialize abbrev_table->offset.
2395 (abbrev_table_free_cleanup): New function.
2396 (dwarf2_start_symtab): New function.
2397 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2398 * buildsym.c (finish_block_internal): New arg "expandable".
2399 All callers updated.
2400 (start_symtab): Move most contents to ...
2401 (restart_symtab): ... here. New function.
2402 (reset_symtab_globals): New function.
2403 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2404 Call reset_symtab_globals.
2405 (end_symtab, end_expandable_symtab): New functions.
2406 (set_missing_symtab, augment_type_symtab): New functions.
2407 * buildsym.h (end_expandable_symtab): Declare.
2408 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2409 * psympriv.h (struct partial_symtab): New member "anonymous".
2410 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2411 anonymous psymtabs.
2412 (read_psymtabs_with_filename): Ditto.
2413 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2414 (expand_symtabs_matching_via_partial): Ditto.
2415 (dump_psymtab): Update.
0bfa869d
DE
2416 * dictionary.c (dict_add_pending): New function.
2417 * dictionary.h (dict_add_pending): Declare.
2418
45e58e77
DE
24192012-07-09 Doug Evans <dje@google.com>
2420
b74db436
DE
2421 * buildsym.c (start_subfile): Remove unnecessary check for
2422 name == NULL.
2423
fd55216c
DE
2424 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2425
6721b2ec
DE
2426 * dwarf2read.c (load_full_type_unit): Simplify.
2427
b4dd5633
DE
2428 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2429 to struct signatured_type **. All uses updated.
2430
45e58e77
DE
2431 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2432 All callers updated.
2433
e314d629
TT
24342012-07-09 Tom Tromey <tromey@redhat.com>
2435
2436 * c-exp.y (check_parameter_typelist): New function.
2437 (parameter_typelist): Call it.
2438 * eval.c (make_params): Handle '(void)' case.
2439 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2440 '(void)' case.
2441
aa7c7447
JK
24422012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2443
2444 * common/linux-ptrace.c: Include gdb_assert.h.
2445 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2446 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2447 stdint.h.
2448 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2449 functions.
2450 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2451 * linux-nat.c (linux_child_post_attach)
2452 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2453
889003ed
JK
24542012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2455
2456 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2457 nptl <2.7 bug workaround for core files.
2458
da559b09
JK
24592012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2460
2461 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2462 clearing.
2463 (save_siginfo): Remove.
2464 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2465 call.
2466 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2467 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2468 * linux-nat.h (struct lwp_info): Remove field siginfo.
2469
f865ee35
JK
24702012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2471
2472 Code cleanup for the next patch.
2473 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2474 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2475 call for it.
2476 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2477 (ia64_linux_stopped_data_address):
2478 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2479 the return value.
2480 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2481 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2482 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2483 call for it.
2484
76b83c51
JK
24852012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2486
2487 PR 14321
2488 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2489 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2490
a6fb9c08
TT
24912012-07-06 Tom Tromey <tromey@redhat.com>
2492
2493 * c-exp.y (DOTDOTDOT): New token.
2494 (func_mod, exp): Use parameter_typelist.
2495 (parameter_typelist): New production.
2496 (tokentab3): Add "..." token.
2497 * eval.c (make_params): Handle varargs.
2498 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2499 varargs.
2500
71918a86
TT
25012012-07-06 Tom Tromey <tromey@redhat.com>
2502
2503 PR exp/9608:
2504 * c-exp.y (%union) <tvec>: Change type.
2505 (func_mod): Now uses <tvec> type.
2506 (exp): Update for tvec change.
2507 (direct_abs_decl): Push the typelist.
2508 (func_mod): Return a typelist.
2509 (nonempty_typelist): Update for tvec change.
2510 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2511 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2512 * parse.c (pop_type_list): New function.
2513 (push_typelist): New function.
2514 (follow_types): Handle tp_function_with_arguments.
2515 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2516 (enum type_pieces) <tp_function_with_arguments>: New constant.
2517 (union type_stack_elt) <typelist_val>: New field.
2518 (push_typelist): Declare.
2519
fcde5961
TT
25202012-07-06 Tom Tromey <tromey@redhat.com>
2521
2522 * c-exp.y (%union) <type_stack>: New field.
2523 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2524 (ptr_operator_ts): New production.
2525 (ptype): Update.
2526 * parse.c (type_stack_reserve): New function.
2527 (check_type_stack_depth): Use it.
2528 (pop_type_stack, append_type_stack, push_type_stack)
2529 (get_type_stack, type_stack_cleanup): New functions.
2530 (follow_types): Handle tp_type_stack.
2531 (_initialize_parse): Simplify initialization.
2532 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2533 constant.
2534 (union type_stack_elt) <stack_val>: New field.
2535 (get_type_stack, append_type_stack, push_type_stack)
2536 (type_stack_cleanup): Declare.
2537
1a7d0ce4
TT
25382012-07-06 Tom Tromey <tromey@redhat.com>
2539
2540 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2541 Remove.
2542 (struct type_stack): New.
2543 * parse.c (type_stack, type_stack_size, type_stack_depth):
2544 Remove.
2545 (type_stack): New global.
2546 (parse_exp_in_context, check_type_stack_depth)
2547 (insert_into_type_stack, insert_type, push_type, push_type_int)
2548 (insert_type_address_space, pop_type, pop_type_int)
2549 (_initialize_parse): Update.
2550
16d01384
TT
25512012-07-06 Tom Tromey <tromey@redhat.com>
2552
2553 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2554 Remove %type.
2555
9bfc60bf
SP
25562012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2557
2558 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2559
d5161074
SP
25602012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2561 Jan Kratochvil <jan.kratochvil@redhat.com>
2562
2563 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2564 alloca with xmalloc/xfree.
2565
a74bc576
SP
25662012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2567
2568 * MAINTAINERS (Write After Approval): Add myself to the list.
2569
667e0a4b
DE
25702012-07-05 Doug Evans <dje@google.com>
2571
2572 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2573
34b536a8
HZ
25742012-07-05 Hui Zhu <hui_zhu@mentor.com>
2575
2576 * ax-gdb.c (cli/cli-utils.h): New include.
2577 (linespec.h): Ditto.
2578 (agent_eval_command_one): New function.
2579 (agent_command_1): Ditto.
2580 (agent_command): Call function agent_command_1.
2581 (agent_eval_command): Ditto.
2582 (_initialize_ax_gdb): Change help for "maint agent"
2583 and "maint agent-eval".
2584
e6f0bce7
HZ
25852012-07-05 Hui Zhu <hui_zhu@mentor.com>
2586
2587 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2588 * cli/cli-utils.c (check_for_argument): New function.
2589 * cli/cli-utils.h (check_for_argument): Ditto.
2590
1b3371b1
L
25912012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2592
2593 * NEWS: Mention x32 ABI support.
2594
23e2d720
L
25952012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2596
2597 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2598 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2599
2600 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2601 and pc_regnum_from_eax to -1. Update SP regnum from
2602 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2603 needed.
2604
2605 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2606 pc_regnum_from_eax.
2607
836bf454
JK
26082012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2609
2610 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2611 * dwarf2expr.h: Include gdbtypes.h.
2612 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2613 these forward declarations.
2614 (cu_offset, sect_offset): Move these ...
2615 * gdbtypes.h: Remove include dwarf2expr.h.
2616 (cu_offset, sect_offset): ... here.
2617
1e55e04f
L
26182012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2619
2620 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2621 (amd64_linux_sigtramp_code): This.
2622 (amd64_x32_linux_sigtramp_code): New.
2623 (LINUX_SIGTRAMP_LEN): Updated.
2624 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2625
7d0e21ad
JK
26262012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2627
2628 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2629
8775fd2d
JK
26302012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2631
2632 * config.in: Regenerate.
2633 * configure: Regenerate.
2634 * configure.ac: Remove check for gnu/libc-version.h.
2635 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2636 gnu/libc-version.h.
2637 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2638 variables libc_version, libc_major and libc_minor. Replace sscanf by
2639 inferior_has_bug. Extend the comment.
2640
fcb44371
JK
26412012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2642
2643 * linux-thread-db.c (inferior_has_bug): New function.
2644 (thread_db_find_new_threads_silently): Return boolean as checked by
2645 inferior_has_bug, describe it in the comments.
2646 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2647 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2648 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2649 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2650 if UNTIL_NO_NEW,
2651
09406207
DE
26522012-07-02 Doug Evans <dje@google.com>
2653
0907af0c
DE
2654 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2655 related to queue management.
2656
09406207
DE
2657 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2658 instead of "debug dwarf2-die" in debugging printfs.
2659 (create_debug_info_hash_table_reader): Ditto.
2660 (create_debug_info_hash_table): Ditto.
2661 (init_dwo_file): Ditto.
2662 (init_cutu_and_read_dies): Add debugging printf.
2663 (init_cutu_and_read_dies_no_follow): Ditto.
2664 (process_psymtab_comp_unit_reader): Ditto.
2665
d3ce09f5
SS
26662012-07-02 Stan Shebs <stan@codesourcery.com>
2667
2668 Add target-side support for dynamic printf.
2669 * NEWS: Mention the additional style.
2670 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2671 (struct bp_location): New field cmd_bytecode.
2672 * breakpoint.c: Include format.h.
2673 (disconnected_dprintf): New global.
2674 (parse_cmd_to_aexpr): New function.
2675 (build_target_command_list): New function.
2676 (insert_bp_location): Call it.
2677 (remove_breakpoints_pid): Skip dprintf breakpoints.
2678 (print_one_breakpoint_location): Ditto.
2679 (dprintf_style_agent): New global.
2680 (dprintf_style_enums): Add dprintf_style_agent.
2681 (update_dprintf_command_list): Add agent case.
2682 (agent_printf_command): New function.
2683 (_initialize_breakpoint): Add new commands.
2684 * common/ax.def (printf): New bytecode.
2685 * ax.h (ax_string): Declare.
2686 * ax-gdb.h (gen_printf): Declare.
2687 * ax-gdb.c: Include cli-utils.h, format.h.
2688 (gen_printf): New function.
2689 (maint_agent_print_command): New function.
2690 (_initialize_ax_gdb): Add maint agent-printf command.
2691 * ax-general.c (ax_string): New function.
2692 (ax_print): Add printf disassembly.
2693 * Makefile.in (SFILES): Add format.c
2694 (COMMON_OBS): Add format.o.
2695 * common/format.h: New file.
2696 * common/format.c: New file.
2697 * printcmd.c: Include format.h.
2698 (ui_printf): Call parse_format_string.
2699 * remote.c (remote_state): New field breakpoint_commands.
2700 (PACKET_BreakpointCommands): New enum.
2701 (remote_breakpoint_commands_feature): New function.
2702 (remote_protocol_features): Add new BreakpointCommands entry.
2703 (remote_can_run_breakpoint_commands): New function.
2704 (remote_add_target_side_commands): New function.
2705 (remote_insert_breakpoint): Call it.
2706 (remote_insert_hw_breakpoint): Ditto.
2707 (_initialize_remote): Add new packet configuration for
2708 target-side breakpoint commands.
2709 * target.h (struct target_ops): New field
2710 to_can_run_breakpoint_commands.
2711 (target_can_run_breakpoint_commands): New macro.
2712 * target.c (update_current_target): Handle
2713 to_can_run_breakpoint_commands.
2714
2d7b58e8
JK
27152012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2716
2717 Execute -ix and -iex only after system and user gdbinit files.
2718 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2719 processing down after gdbinit files.
2720
8690e634
JK
27212012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2722
2723 Add fnmatch-gnu module.
2724 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2725 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2726 * gnulib/aclocal.m4: Regenerate.
2727 * gnulib/config.in: Regenerate.
2728 * gnulib/configure: Regenerate.
2729 * gnulib/import/dummy.c: Remove.
2730 * gnulib/import/Makefile.am: Regenerate.
2731 * gnulib/import/Makefile.in: Likewise.
2732 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2733 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2734 * gnulib/import/alloca.c: New file.
2735 * gnulib/import/alloca.in.h: Likewise.
2736 * gnulib/import/config.charset: Likewise.
2737 * gnulib/import/fnmatch.c: Likewise.
2738 * gnulib/import/fnmatch.in.h: Likewise.
2739 * gnulib/import/fnmatch_loop.c: Likewise.
2740 * gnulib/import/localcharset.c: Likewise.
2741 * gnulib/import/localcharset.h: Likewise.
2742 * gnulib/import/m4/alloca.m4: Likewise.
2743 * gnulib/import/m4/codeset.m4: Likewise.
2744 * gnulib/import/m4/configmake.m4: Likewise.
2745 * gnulib/import/m4/fcntl-o.m4: Likewise.
2746 * gnulib/import/m4/fnmatch.m4: Likewise.
2747 * gnulib/import/m4/glibc21.m4: Likewise.
2748 * gnulib/import/m4/localcharset.m4: Likewise.
2749 * gnulib/import/m4/locale-fr.m4: Likewise.
2750 * gnulib/import/m4/locale-ja.m4: Likewise.
2751 * gnulib/import/m4/locale-zh.m4: Likewise.
2752 * gnulib/import/m4/mbrtowc.m4: Likewise.
2753 * gnulib/import/m4/mbsinit.m4: Likewise.
2754 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2755 * gnulib/import/m4/mbstate_t.m4: Likewise.
2756 * gnulib/import/m4/stdbool.m4: Likewise.
2757 * gnulib/import/m4/wchar_h.m4: Likewise.
2758 * gnulib/import/m4/wctype_h.m4: Likewise.
2759 * gnulib/import/m4/wint_t.m4: Likewise.
2760 * gnulib/import/mbrtowc.c: Likewise.
2761 * gnulib/import/mbsinit.c: Likewise.
2762 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2763 * gnulib/import/mbsrtowcs-state.c: Likewise.
2764 * gnulib/import/mbsrtowcs.c: Likewise.
2765 * gnulib/import/ref-add.sin: Likewise.
2766 * gnulib/import/ref-del.sin: Likewise.
2767 * gnulib/import/stdbool.in.h: Likewise.
2768 * gnulib/import/streq.h: Likewise.
2769 * gnulib/import/strnlen1.c: Likewise.
2770 * gnulib/import/strnlen1.h: Likewise.
2771 * gnulib/import/verify.h: Likewise.
2772 * gnulib/import/wchar.in.h: Likewise.
2773 * gnulib/import/wctype.in.h: Likewise.
2774
202cbf1c
JK
27752012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2776
2777 Support shell wildcards for 'set auto-load safe-path'.
2778 * auto-load.c: Include fnmatch.h.
2779 (filename_is_in_dir): Rename to ...
2780 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2781 it. Update function comment. Rename dir_len to pattern_len. New
2782 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2783 messages. Use gdb_filename_fnmatch.
2784 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2785 pattern.
2786 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2787 * defs.h (gdb_filename_fnmatch): New declaration.
2788 * utils.c: Include fnmatch.h.
2789 (gdb_filename_fnmatch): New function.
2790
fb7b5af4
SDJ
27912012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2792
2793 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2794 `-probe' and `-probe-stap' options.
2795
72d0e2c5
YQ
27962012-07-01 Yao Qi <yao@codesourcery.com>
2797
2798 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2799 always_inserted_off, and always_inserted_enums.
2800 Change always_inserted_mode's type to 'enum auto_boolean'.
2801 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2802 callers.
2803 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2804 of add_setshow_enum_cmd.
2805 * infrun.c: Remove can_use_displaced_stepping_auto,
2806 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2807 can_use_displaced_stepping_enum.
2808 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2809 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2810 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2811 add_setshow_enum_cmd.
2812
42e7ad6c
DE
28132012-06-30 Doug Evans <dje@google.com>
2814
2815 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2816 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2817 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2818
39cf75f7
DE
28192012-06-29 Doug Evans <dje@google.com>
2820
2821 * linespec.c: #include "stack.h".
2822 (decode_line_with_current_source): Moved here from symtab.c and
2823 renamed from decode_line_spec. All callers updated.
2824 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2825 renamed from decode_line_spec_1. All callers updated.
2826 * linespec.h (decode_line_with_current_source): Move declaration here
2827 from symtab.h and renamed from decode_line_spec.
2828 (decode_line_with_last_displayed): Move declaration here from symtab.h
2829 and renamed from decode_line_spec_1.
2830 * macrocmd.c: #include "linespec.h".
2831 * symtab.c: Remove #include "linespec.h".
2832
433df2d4
DE
28332012-06-28 Doug Evans <dje@google.com>
2834
1ce1cefd
DE
2835 * dwarf2read.c (get_cu_length): New function.
2836 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2837 (create_debug_types_hash_table): Ditto.
2838 (init_cutu_and_read_dies): Ditto.
2839 (init_cutu_and_read_dies_no_follow): Ditto.
2840
3b80fe9b
DE
2841 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2842
433df2d4
DE
2843 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2844 (struct abbrev_table): Define.
2845 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2846 abbrev_table.
2847 (init_cutu_and_read_dies): Update.
2848 (abbrev_table_alloc_abbrev): New function. Replaces
2849 dwarf_alloc_abbrev. All callers updated.
2850 (abbrev_table_add_abbrev): New function.
2851 (abbrev_table_lookup_abbrev): New function. Replaces
2852 dwarf2_lookup_abbrev. All callers updated.
2853 (abbrev_table_read_table): New function. Contents moved here from
2854 dwarf2_read_abbrevs.
2855 (dwarf2_read_abbrevs): Call it.
2856 (abbrev_table_free): New function.
2857 (dwarf2_free_abbrev_table): Call it.
2858
71caed83
SS
28592012-06-28 Stan Shebs <stan@codesourcery.com>
2860
2861 * osdata.c (info_osdata_command): Filter out "Title" columns
2862 from non-MI uses.
2863 * common/linux-osdata.c (struct osdata_type): Add title field.
2864 (osdata_table): Add titles to each entry.
2865 (linux_command_xfer_osdata): Add a column for title data.
2866
37ce89eb
SS
28672012-06-28 Stan Shebs <stan@codesourcery.com>
2868
2869 Make logging work for MI.
2870 * NEWS: Mention it.
2871 * interps.h (interp_set_logging_ftype): New typedef.
2872 (struct interp_procs): New field set_logging_proc.
2873 (current_interp_set_logging): Declare.
2874 * interps.c (current_interp_set_logging): New function.
2875 * cli/cli-logging.c: Include interps.h.
2876 (set_logging_redirect): Call current_interp_set_logging.
2877 (pop_output_files): Ditto.
2878 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2879 * mi/mi-console.h (mi_console_set_raw): Declare.
2880 * mi/mi-console.c (mi_console_set_raw): New function.
2881 * mi/mi-interp.c (saved_raw_stdout): New global.
2882 (mi_set_logging): New function.
2883 (_initialize_mi_interp): Add it to interp procs.
2884
659c9f3a
DE
28852012-06-28 Doug Evans <dje@google.com>
2886
a743abeb
DE
2887 * symtab.c (lookup_symbol_aux_objfile): Use
2888 ALL_OBJFILE_PRIMARY_SYMTABS.
2889
659c9f3a
DE
2890 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2891
da2d6d3d
JK
28922012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2893
2894 * common/buffer.c: Include inttypes.h and stdint.h.
2895 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2896
e5ef252a
PA
28972012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2898 Pedro Alves <palves@redhat.com>
2899
2900 * gdbthread.h (ALL_THREADS): New macro.
2901 (thread_list): Declare.
2902 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2903 going, but instead fall through to the stepping handling.
2904 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2905 the passed in signal. Adjust debug output.
2906 (resume_callback): Rename to ...
2907 (linux_nat_resume_callback): ... this. Pass the thread's last
2908 stop signal, if in "pass" state.
2909 (linux_nat_resume): Adjust to rename.
2910 (stop_wait_callback): New assertion. Don't respawn signals;
2911 instead let the LWP remain with SIGNALLED set.
2912 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2913 * remote.c (append_pending_thread_resumptions): New.
2914 (remote_vcont_resume): Call it.
2915 * target.h (target_resume): Extend comment.
2916
1d7975eb
IS
29172012-06-28 Iain Sandoe <iain@codesourcery.com>
2918
2919 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2920
2e3cf129
DE
29212012-06-27 Doug Evans <dje@google.com>
2922
2923 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2924 Delete have_addr_base, unused. All uses updated.
2925 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2926 (dwarf2_get_pc_bounds): Add ranges_base.
2927 (dwarf2_record_block_ranges): Ditto.
2928
1bb9788d
TT
29292012-06-27 Tom Tromey <tromey@redhat.com>
2930
2931 PR macros/7961:
2932 * varobj.c (varobj_create): Update.
2933 (varobj_set_value): Update.
2934 * tracepoint.c (validate_actionline): Update.
2935 (encode_actions_1): Update.
2936 * parse.c (parse_exp_1): Add 'pc' argument.
2937 (parse_exp_in_context): Add 'pc' argument. Change how
2938 expression_context_pc is set.
2939 (parse_expression): Update.
2940 (parse_field_expression): Update.
2941 * expression.h (parse_exp_1): Update.
2942 * eval.c (parse_to_comma_and_eval): Update.
2943 * breakpoint.c (set_breakpoint_condition): Update.
2944 (update_watchpoint): Update.
2945 (init_breakpoint_sal): Update
2946 (find_condition_and_thread): Update.
2947 (watch_command_1): Update.
2948 (update_breakpoint_locations): Update.
2949 * ada-lang.c (ada_read_renaming_var_value): Update.
2950 (create_excep_cond_exprs): Update.
2951
0bc3a05c
DE
29522012-06-27 Doug Evans <dje@google.com>
2953
2954 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2955 type units.
2956
4bdcc0c1
DE
29572012-06-26 Doug Evans <dje@google.com>
2958
2959 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2960 prototype.
2961 (error_check_comp_unit_head): New arg abbrev_section. All callers
2962 updated.
2963 (read_and_check_comp_unit_head): Ditto.
2964 (read_and_check_type_unit_head): Ditto.
2965
ee0bf529
SCR
29662012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2967
2968 New attribute 'last' for gdb.Symtab_and_line.
2969 * NEWS (Python Scripting): Add entry about the new attribute.
2970 * python/py-symtab.c (salpy_get_last): New function which
2971 implements the get method for the 'last' attribute of
2972 gdb.Symtab_and_line.
2973 (sal_object_getset): Add entry for the 'last' attribute.
2974
1c658ad5
DE
29752012-06-26 Doug Evans <dje@google.com>
2976
09262596
DE
2977 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2978 (dwo_sections): Add macinfo, macro.
2979 (dwarf2_locate_dwo_sections): Watch for macro sections.
2980 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2981 All callers updated. Handle DWO files.
2982
45cfd468
DE
2983 * NEWS: Mention new options "set debug dwarf2-read" and
2984 "set debug symtab-create".
2985 * dwarf2read.c (dwarf2_read_debug): New static global.
2986 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2987 (process_queue): Ditto.
2988 (process_full_comp_unit): Ditto.
2989 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2990 * elfread.c (elf_symfile_read): Add debugging printf.
2991 * minsyms.c (install_minimal_symbols): Ditto.
2992 * psymtab.c (allocate_psymtab): Ditto.
2993 * symfile.c (allocate_symtab): Ditto.
2994 * symtab.c (symtab_create_debug): New global.
2995 (_initialize_symtab): Add new option "set debug symtab-create".
2996 * symtab.h (symtab_create_debug): Declare.
2997
1c658ad5
DE
2998 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2999 (lookup_dwo_type_unit): Ditto.
3000
6fea9e18
L
30012012-06-26 Roland McGrath <roland@hack.frob.com>
3002 H.J. Lu <hongjiu.lu@intel.com>
3003
3004 * amd64-linux-nat.c: Include <sys/user.h>.
3005 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3006 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3007 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3008
3009 * configure.ac: Check if the fs_base and gs_base members of
3010 `struct user_regs_struct' exist.
3011 * config.in: Regenerated.
3012 * configure: Likewise.
3013
adb4fe3b
ME
30142012-06-25 Michael Eager <eager@eagercon.com>
3015
3016 PR python/14291
f782ad9b 3017 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3018
fc51cce1
MGD
30192012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3020
3021 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3022 register as a stack alignment in ARM mode.
3023
40a73391
JK
30242012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3025
3026 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3027 * gnulib/config.in: Regenerate.
3028 * gnulib/configure: Likewise.
3029 * gnulib/import/m4/extensions.m4: Update it.
3030 * gnulib/import/m4/gnulib-common.m4: Likewise.
3031 * gnulib/import/m4/memmem.m4: Likewise.
3032 * gnulib/import/m4/mmap-anon.m4: Likewise.
3033 * gnulib/import/m4/multiarch.m4: Likewise.
3034 * gnulib/import/stdint.in.h: Likewise.
3035
972daa01
YQ
30362012-06-24 Yao Qi <yao@codesourcery.com>
3037
3038 * corefile.c (write_memory_with_notification): New.
3039 * gdbcore.h: Declare write_memory_with_notification.
3040 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3041 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3042 * valops.c (value_assign): Likewise.
3043 * python/py-inferior.c (infpy_write_memory): Call
3044 'write_memory_with_notification'.
3045
8d6e0714
JK
30462012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3047
3048 * cc-with-index.sh: Use also -ex "set auto-load no".
3049
156942c7
DE
30502012-06-23 Doug Evans <dje@google.com>
3051
3052 PR 14125
3053 * NEWS: Document additions to .gdb_index.
3054 * dwarf2read.c: #include "gdb/gdb-index.h".
3055 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3056 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3057 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3058 (dwarf2_read_index): Recognize version 7.
3059 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3060 block_kind, domain): All callers updated.
3061 (dw2_find_symbol_file): Handle new index CU values.
3062 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3063 (add_index_entry): New args is_static, kind. All callers updated.
3064 (offset_type_compare, uniquify_cu_indices): New functions
3065 (symbol_kind): New function.
3066 (write_psymtabs_to_index): Remove duplicate CU values.
3067 (write_psymtabs_to_index): Write .gdb_index version 7.
3068
352b3eda
JB
30692012-06-22 Joel Brobecker <brobecker@adacore.com>
3070
3071 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3072 * configure: Regenerate.
3073
2678e2af
YQ
30742012-06-20 Yao Qi <yao@codesourcery.com>
3075
3076 * python/py-inferior.c: Update comments of infpy_read_memory
3077 and infpy_write_memory.
3078
95c391b6
TT
30792012-06-19 Tom Tromey <tromey@redhat.com>
3080
3081 PR exp/9514:
3082 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3083 (push_type_address_space): Remove.
3084 * parse.c (insert_into_type_stack): New function.
3085 (insert_type): Likewise.
3086 (insert_type_address_space): Rename from push_type_address_space.
3087 Insert tp_space_identifier.
3088 * c-exp.y (ptr_operator): New production.
3089 (abs_decl): Use ptr_operator.
3090 (space_identifier): Call insert_type_address_space.
3091 (ptype): Don't use const_or_volatile_or_space_identifier.
3092 (const_or_volatile_noopt): Call insert_type.
3093 (conversion_type_id, conversion_declarator): New productions.
3094 (operator): Use conversion_type_id.
3095
6ac9ef80
DE
30962012-06-18 Doug Evans <dje@google.com>
3097
422d65e7
DE
3098 * symtab.h (minimal_symbol): New member created_by_gdb.
3099 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3100 created by gdb.
3101 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3102 (search_symbols): Call it instead of lookup_symbol.
3103 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3104
49f6c839
DE
3105 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3106 Adjust address for DW_OP_GNU_addr_index.
3107 * dwarf2expr.h (dwarf_expr_context): Update comment.
3108 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3109 all callers updated. Handle TLS vars described with
3110 DW_OP_GNU_const_index.
3111 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3112 and DW_OP_GNU_const_index.
3113 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3114
6ac9ef80
DE
3115 * block.c (find_block_in_blockvector): Make explicit the fact that we
3116 ignore GLOBAL_BLOCK.
3117
4cd18215
TT
31182012-06-18 Tom Tromey <tromey@redhat.com>
3119
3120 * c-exp.y (operator): Remove trailing space after "delete" and
3121 "delete[]".
3122
a9b8d892
JK
31232012-06-18 Mark Kettenis <kettenis@gnu.org>
3124 Jan Kratochvil <jan.kratochvil@redhat.com>
3125
3126 Switch i386 and derived targets to ON_STACK.
3127 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3128 (amd64_dicos_init_abi): Remove its installment.
3129 * dicos-tdep.c (dicos_init_abi): Remove the
3130 set_gdbarch_call_dummy_location call. Update the comment here.
3131 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3132 (i386_dicos_init_abi): Remove its installment.
3133 * i386-tdep.c (i386_push_dummy_code): New function.
3134 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3135 i386_push_dummy_code.
3136
e2e4d78b
JK
31372012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3138
3139 Remove stale dummy frames.
3140 * breakpoint.c: Include dummy-frame.h.
3141 (longjmp_breakpoint_ops): New variable.
3142 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3143 bp_longjmp_call_dummy.
3144 (bpstat_what, bptype_string, print_one_breakpoint_location)
3145 (init_bp_location): Support bp_longjmp_call_dummy.
3146 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3147 (set_longjmp_breakpoint_for_call_dummy)
3148 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3149 functions.
3150 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3151 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3152 FIXME comment and extend the other comment for bp_call_dummy.
3153 (set_longjmp_breakpoint_for_call_dummy)
3154 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3155 * dummy-frame.c: Include gdbthread.h.
3156 (pop_dummy_frame_bpt): New function.
3157 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3158 (dummy_frame_discard): New function.
3159 (cleanup_dummy_frames): Update the comment about longjmps.
3160 * dummy-frame.h (dummy_frame_discard): New declaration.
3161 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3162 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3163 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3164 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3165 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3166 keep_going if IS_LONGJMP and there is no other reason to stop.
3167
09d5912c
TT
31682012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3169
3170 * remote-sim.c (sim_command_completer): Initialize
3171 variable 'result'.
3172
1788b2d3
JK
31732012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3174
3175 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3176 * dwarf2loc.c (call_site_parameter_matches): Support
3177 CALL_SITE_PARAMETER_PARAM_OFFSET.
3178 (needs_dwarf_reg_entry_value): Push stub value.
3179 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3180 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3181 * gdbtypes.h (enum call_site_parameter_kind): New item
3182 CALL_SITE_PARAMETER_PARAM_OFFSET.
3183 (struct call_site.parameter.u): New field param_offset.
3184
24c5c679
JK
31852012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3186
3187 Code cleanup: Generalize call_site.parameter key.
3188 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3189 variable dwarf_reg. New variable kind_u. Update parameters to
3190 push_dwarf_reg_entry_value.
3191 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3192 * dwarf2expr.h (enum call_site_parameter_kind)
3193 (union call_site_parameter_u): Forward declarations.
3194 (struct dwarf_expr_context_funcs): Update parameters and their
3195 description for push_dwarf_reg_entry_value.
3196 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3197 * dwarf2loc.c (call_site_parameter_matches): New function.
3198 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3199 description. Use call_site_parameter_matches.
3200 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3201 Update parameters and their description.
3202 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3203 New variable kind_u. Adjust the caller for updated parameters.
3204 (needs_dwarf_reg_entry_value): Update parameters.
3205 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3206 instead of attr. Update for the changed fields of struct
3207 call_site_parameter.
3208 * gdbtypes.h: Include dwarf2expr.h.
3209 (enum call_site_parameter_kind): New.
3210 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3211 fb_offset into new union u.
3212
ac142d96
L
32132012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3214
3215 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3216 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3217 for x32.
3218
ba224c70
L
32192012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3220
3221 * amd64-linux-nat.c (compat_x32_clock_t): New.
3222 (compat_x32_siginfo_t): Likewise.
3223 (compat_x32_siginfo_from_siginfo): Likewise.
3224 (siginfo_from_compat_x32_siginfo): Likewise.
3225 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3226 and siginfo_from_compat_x32_siginfo for x32.
3227
7ecbc825
HZ
32282012-06-15 Hui Zhu <hui_zhu@mentor.com>
3229
3230 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3231
233dfcf0
L
32322012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3233
3234 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3235 instead of gdbarch_ptr_bit.
3236 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3237 (amd64_supply_native_gregset): Likewise.
3238 (amd64_collect_native_gregset): Likewise.
3239 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3240 (amd64_supply_xsave): Likewise.
3241 (amd64_collect_fxsave): Likewise.
3242 (amd64_collect_xsave): Likewise.
3243
6da38f42
L
32442012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3245
3246 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3247 (amd64_linux_read_description): Check DS segment register for
3248 x32 process.
3249
663b969e
TT
32502012-06-15 Tom Tromey <tromey@redhat.com>
3251
3252 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3253 init_cutu_and_read_dies.
3254
d6f05027
IS
32552012-06-15 Iain Sandoe <iain@codesourcery.com>
3256
3257 * MAINTAINERS (Write After Approval): Add myself to the list.
3258
6598ed07
TT
32592012-06-15 Tom Tromey <tromey@redhat.com>
3260
3261 * valops.c (value_find_oload_method_list): Now static.
3262 * value.h (value_find_oload_method_list): Don't declare.
3263
2b214ea6
TT
32642012-06-15 Tom Tromey <tromey@redhat.com>
3265
3266 * valops.c (find_overload_match): Use value_ind.
3267
a210c238
MR
32682012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3269
3270 * infrun.c (handle_inferior_event): Correct indentation.
3271
3771a44c
DE
32722012-06-14 Doug Evans <dje@google.com>
3273
3274 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3275 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3276 All uses updated.
3277 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3278 updated. Handle DEBUG_LOC_START_LENGTH.
3279 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3280 (loclist_describe_location): Ditto.
3281
1c5a993e
MR
32822012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3283
3284 PR backtrace/13866
3285 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3286 after hiding inline functions.
3287
0b155465
JB
32882012-06-13 Joel Brobecker <brobecker@adacore.com>
3289
3290 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3291 _initialize_inf_ttrace.
3292
45717bac
JB
32932012-06-13 Joel Brobecker <brobecker@adacore.com>
3294
3295 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3296 _initialize_hppa_hpux_nat.
3297
34370865
JB
32982012-06-13 Joel Brobecker <brobecker@adacore.com>
3299
3300 * remote-sim.c (sim_command_completer): Change type of return
3301 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3302
284c5a60
MK
33032012-06-13 Mark Kettenis <kettenis@gnu.org>
3304 Jan Kratochvil <jan.kratochvil@redhat.com>
3305
3306 PR tdep/14222
3307 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3308 stack on a 16-byte boundary.
3309
2535757a
TT
33102012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3311
3312 * jit.c (finalize_symtab): Set function's return type to 'void' by
3313 default.
3314
fff4548b
MK
33152012-06-13 Mark Kettenis <kettenis@gnu.org>
3316 H.J. Lu <hongjiu.lu@intel.com>
3317
5a83521a
MK
3318 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3319 Move bits common to both the classic LP64 and the new x32 ILP32
3320 ABI here.
3321 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3322 (amd64_x32_linux_init_abi): New function.
3323 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3324 subtype.
3325
fff4548b
MK
3326 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3327 * i386-tdep.c (i386_pseudo_register_name): Make public.
3328 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3329 * amd64-tdep.c (amd64_dword_names): Add "eip".
3330 (amd64_x32_pseudo_register_type): New function
3331 (amd64_x32_init_abi): New function.
3332
dd80ea3c
JK
33332012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3334
3335 PR build/14003
3336 * inferior.h (struct inferior_suspend_state): Comment out.
3337 (struct inferior): Comment out the field suspend.
3338 * infrun.c (struct infcall_suspend_state): Comment out the field
3339 inferior_suspend.
3340 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3341 out its assignment.
3342
50af5481
JK
33432012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3344
3345 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3346 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3347 function comment. Return ERROR for unresolved cases. Implement
3348 returning proper NAME.
3349 (yylex): Accept also NAME from classify_inner_name.
3350 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3351 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3352 LOC_TYPEDEF type.
3353 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3354
d55637df
TT
33552012-06-13 Tom Tromey <tromey@redhat.com>
3356
3357 * breakpoint.c (condition_completer): New function.
3358 (_initialize_breakpoint): Use it.
3359 * value.c (complete_internalvar): New function.
3360 * value.h (complete_internalvar): Declare.
3361
49c4e619
TT
33622012-06-13 Tom Tromey <tromey@redhat.com>
3363
3364 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3365 * breakpoint.c (catch_syscall_completer): Return a VEC.
3366 * cli/cli-cmds.c (complete_command): Update.
3367 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3368 (complete_on_enum): Likewise.
3369 * command.h: Include gdb_vecs.h.
3370 (completer_ftype): Change return type.
3371 (complete_on_cmdlist, complete_on_enum): Likewise.
3372 * completer.c (noop_completer, filename_completer)
3373 (location_completer): Return a VEC.
3374 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3375 to a VEC.
3376 (expression_completer, complete_line_internal, complete_line)
3377 (command_completer): Return a VEC.
3378 (gdb_completion_word_break_characters, line_completion_function):
3379 Update.
3380 * completer.h: Include gdb_vecs.h.
3381 (complete_line, noop_completer, filename_completer)
3382 (expression_completer, location_completer, command_completer):
3383 Update.
3384 * f-lang.c (f_word_break_characters): Return a VEC.
3385 * interps.c (interpreter_completer): Return a VEC.
3386 * language.h (struct language_defn)
3387 <la_make_symbol_completion_list>: Return a VEC.
3388 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3389 * symtab.c (free_completion_list): Take a VEC.
3390 (return_val_size, return_val_index): Remove.
3391 (return_val): Now a VEC.
3392 (completion_list_add_name): Update.
3393 (default_make_symbol_completion_list_break_on)
3394 (default_make_symbol_completion_list, make_symbol_completion_list)
3395 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3396 Return a VEC.
3397 (add_filename_to_list): Update.
3398 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3399 <list>: Now a VEC.
3400 (maybe_add_partial_symtab_filename): Update.
3401 (make_source_files_completion_list): Return a VEC.
3402 * symtab.h (default_make_symbol_completion_list_break_on)
3403 (default_make_symbol_completion_list, make_symbol_completion_list)
3404 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3405 (make_source_files_completion_list): Update.
3406
625e8578
TT
34072012-06-13 Tom Tromey <tromey@redhat.com>
3408
3409 * breakpoint.c (add_catch_command): Use completer_ftype.
3410 * breakpoint.h: Include command.h.
3411 (add_catch_command): Use completer_ftype.
3412 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3413 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3414 Use completer_ftype.
3415 * command.h (completer_ftype): New typedef.
3416 (set_cmd_completer): Use it.
3417 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3418 completer_ftype.
3419
5eb3b062
PA
34202012-06-13 Pedro Alves <palves@redhat.com>
3421
3422 Partial revert of previous change.
3423
3424 * serial.c (scb_base): New global.
3425 (serial_for_fd): New.
3426 (serial_open, serial_fdopen_ops): Link new serial in open serials
3427 chain.
3428 (do_serial_close): Unlink serial from the open serials chain.
3429
8b3ee56d
PA
34302012-06-12 Pedro Alves <palves@redhat.com>
3431
3432 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3433 threads here.
3434 (prepare_for_detach): No longer context switch here in non-stop
3435 mode.
3436 (fetch_inferior_event): Ditto.
3437 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3438 to the event thread before removing breakpoints. Switch to the
3439 event thread before inserting breakpoints and resuming.
3440 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3441 event thread before resuming.
3442 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3443 Switch to the event thread before removing breakpoints.
3444
5d60742e
EZ
34452012-06-12 Eli Zaretskii <eliz@gnu.org>
3446
3447 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3448 special characters correctly for the Windows shells. See
3449 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3450 report.
3451 [!__MINGW32__]: Remove extra double quote character from special
3452 characters.
3453
a6feecf7
SS
34542012-06-11 Stan Shebs <stan@codesourcery.com>
3455
3456 * ui-out.h: Remove #if 0 declarations.
3457 * ui-out.c: Remove #if 0 functions.
3458
ddefb60f
PA
34592012-06-11 Pedro Alves <palves@redhat.com>
3460
3461 * ser-base.c (run_async_handler_and_reschedule): New.
3462 (fd_event, push_event): Use it.
3463 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3464 reference count to 1.
3465 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3466 instead of xfree.
3467 (serial_is_open, serial_ref, serial_unref): New.
3468 * serial.h (serial_open): Adjust comment.
3469 (serial_is_open): Declare.
3470 (serial_close): Adjust comment.
3471 (serial_ref, serial_unref) Declare.
3472 (struct serial): New field 'refcnt'.
3473
d5ad6aa5
PA
34742012-06-11 Pedro Alves <palves@redhat.com>
3475
3476 Remove #if 0'd "connect" command, and unnecessary associated
3477 refcounting and serial reuse bits.
3478
3479 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3480 * serial.c (last_serial_opened): Delete.
3481 (scb_base): Delete.
3482 (serial_open): Adjust.
3483 (serial_for_fd): Delete.
3484 (serial_fdopen_ops, do_serial_close): Adjust.
3485 (serial_fdopen_ops): Adjust.
3486
318aa544
PA
34872012-06-11 Pedro Alves <palves@redhat.com>
3488
3489 * serial.c (do_serial_close): Remove early return when SCB is
3490 null.
3491
07261596
TT
34922012-06-11 Tom Tromey <tromey@redhat.com>
3493
3494 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3495
cc80f267
JK
34962012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3497
3498 Fix regression by the "ambiguous linespec" series.
3499 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3500 get_last_displayed_symtab and get_last_displayed_line and depending
3501 on CURSAL.
3502
356d9f9d
TT
35032012-06-11 Tom Tromey <tromey@redhat.com>
3504
3505 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3506 (dw2_find_symbol_file): Use it.
3507
232b8704
ME
35082012-06-11 Michael Eager <eager@eagercon.com>
3509
3510 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3511 * mips-linux-tdep.h (mips_signals): New
3512
e81a37f7
TT
35132012-06-11 Tom Tromey <tromey@redhat.com>
3514
3515 * infrun.c (handle_inferior_event)
3516 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3517 breakpoint.
3518 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3519 exception logic in all cases. Update comments.
3520 (insert_longjmp_resume_breakpoint): Set the exception resume
3521 breakpoint.
3522
2e81047f
MR
35232012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3524
3525 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3526
4e32eda7
SCR
35272012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3528
3529 * valarith.c (binop_types_user_defined_p): Fix a typo.
3530
18648a37 35312012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3532 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3533
3534 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3535 * arch-utils.h: Declare.
3536 * gdbarch.sh: Add return_in_first_hidden_param_p.
3537 * gdbarch.c, gdbarch.h: Regenerated.
3538 * infcall.c (call_function_by_hand): Call
3539 gdbarch_return_in_first_hidden_param_p instead of
3540 language_pass_by_reference.
3541
3542 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3543 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3544 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3545 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3546 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3547 `cplus_return_struct_by_reference'.
3548 (tic6x_return_value): Handle language cplusplus.
3549 (tic6x_return_in_first_hidden_param_p): New.
3550 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3551
034e5797
DE
35522012-06-07 Doug Evans <dje@google.com>
3553
3554 * dwarf2read.c (dwarf2_cu): Add comment.
3555
6a00aa1e
MR
35562012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3557
3558 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3559 variable.
3560 (mips_eabi_push_dummy_call): Likewise.
3561 (mips_n32n64_push_dummy_call): Likewise.
3562 (mips_o32_push_dummy_call): Likewise.
3563 (mips_o64_push_dummy_call): Likewise.
3564
eaa05d59
MR
35652012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3566
3567 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3568
de13fcf2
MR
35692012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3570
3571 * mips-tdep.c (mips_pseudo_register_type): Use
3572 mips_float_register_p.
3573
c3a01a22
PA
35742012-06-06 Pedro Alves <palves@redhat.com>
3575
3576 * infrun.c (handle_inferior_event): Remove calls to
3577 reinit_frame_cache that follow a context_switch call.
3578
d25f45d9
PA
35792012-06-06 Pedro Alves <palves@redhat.com>
3580
3581 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3582 context_switch and remove stale comment.
3583
359f5fe6
PA
35842012-06-06 Pedro Alves <palves@redhat.com>
3585
3586 * infrun.c (struct execution_control_state): Remove
3587 `new_thread_event' field.
3588 (handle_inferior_event): Simplify new threads handling; don't
3589 resume the inferior if we find a new thread.
3590
2d4c29c5
TS
35912012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3592
3593 * NEWS: Document the deprecation of SH's 'regs' command.
3594 * inferior.h (all_registers_info): Add function declaration.
3595 * sh-tdep.c (sh_show_regs): Remove variable.
3596 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3597 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3598 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3599 (sh_show_regs_command): Remove functions.
3600 (sh_gdbarch_init): Don't set sh_show_regs.
3601 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3602 'info all-registers'.
3603 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3604 (sh64_show_regs): Remove functions.
3605 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3606
f5f1cdb6
JK
36072012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3608
3609 * configure.ac: Move development=true below AC_INIT.
3610 * configure: Regenerate.
3611
bf6309af
SS
36122012-06-05 Stan Shebs <stan@codesourcery.com>
3613
3614 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3615 gdb_stdout.
3616
45aa4659
JK
36172012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3618
3619 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3620 argument as ssize_t.
3621 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3622 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3623 * target.c (target_read_stack, target_write_memory)
3624 (target_write_raw_memory): Likewise.
3625 * target.h (target_read_stack, target_write_memory)
3626 (target_write_raw_memory): Likewise.
3627
1b162304
JK
36282012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3629
3630 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3631 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3632 * target.c (target_read_memory): Change LEN to ssize_t.
3633 * target.h (target_read_memory): Change LEN to ssize_t.
3634
8556afb4
PA
36352012-06-05 Pedro Alves <palves@redhat.com>
3636
3637 PR backtrace/13866
3638
3639 * breakpoint.c (until_break_command): Only fetch the selected
3640 frame after decode_line_1.
3641
fb139f32
PA
36422012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3643
3644 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3645 event breakpoint at _start, __start or main if a program
3646 interpreter is not found.
3647
a8e1bb34
JB
36482012-06-05 Joel Brobecker <brobecker@adacore.com>
3649
3650 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3651 Add declaration.
3652 * windows-tdep.c: #include "objfiles.h".
3653 (windows_iterate_over_objfiles_in_search_order): New function.
3654 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3655 iterate_over_objfiles_in_search_order gdbarch method to
3656 windows_iterate_over_objfiles_in_search_order.
3657 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3658
19630284
JB
36592012-06-05 Joel Brobecker <brobecker@adacore.com>
3660
3661 * gdbarch.sh: Add generation of
3662 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3663 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3664 (iterate_over_objfiles_in_search_order): New gdbarch method.
3665 * gdbarch.h, gdbarch.c: Regenerate.
3666 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3667 Add declaration.
3668 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3669 New function.
3670 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3671 out of lookup_symbol_aux_symtabs.
3672 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3673 call to lookup_symbol_aux_objfile.
3674 (struct global_sym_lookup_data): New type.
3675 (lookup_symbol_global_iterator_cb): New function.
3676 (lookup_symbol_global): Search for symbol using
3677 gdbarch_iterate_over_objfiles_in_search_order and
3678 lookup_symbol_global_iterator_cb.
3679 * findvar.c (struct minsym_lookup_data): New type.
3680 (minsym_lookup_iterator_cb): New function.
3681 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3682 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3683 and minsym_lookup_iterator_cb.
3684
67ff19f7
JB
36852012-06-05 Joel Brobecker <brobecker@adacore.com>
3686
3687 Revert the following patch:
3688 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3689 try locating the symbol in the symbol's own objfile first, before
3690 extending the search to all objfiles.
3691 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3692 out of lookup_symbol_aux_symtabs.
3693 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3694 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3695 Do not search EXCLUDE_OBJFILE.
3696 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3697 (lookup_symbol_global): Search for matches in the block's objfile
3698 first, before searching all other objfiles.
3699
ccab2054
JB
37002012-06-05 Joel Brobecker <brobecker@adacore.com>
3701
3702 * breakpoint.c (find_condition_and_thread): Stop parsing
3703 as soon as the first invalid keyword is found.
3704
e23d4a9c
JB
37052012-06-05 Joel Brobecker <brobecker@adacore.com>
3706
3707 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3708
70160166
JB
37092012-06-05 Joel Brobecker <brobecker@adacore.com>
3710
3711 * config/djgpp/djcheck.sh: Add copyright header.
3712
399501a5
JB
37132012-06-05 Joel Brobecker <brobecker@adacore.com>
3714
3715 * copyright.py (update_files, main): Fix path to update-copyright
3716 script.
3717
3770a159
JB
37182012-06-05 Joel Brobecker <brobecker@adacore.com>
3719
3720 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3721 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3722 for which a reminder to update by hand is printed.
3723
4aad0dfc
DE
37242012-06-04 Doug Evans <dje@google.com>
3725
3726 * buildsym.c (make_blockvector): Add comment.
3727
1f8cf220
PA
37282012-06-04 Pedro Alves <palves@redhat.com>
3729
3730 * arch-utils.c (default_gdb_signal_from_target): Delete.
3731 * arch-utils.h (default_gdb_signal_from_target): Delete.
3732 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3733 gdbarch_gdb_signal_from_target_p.
3734 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3735 predicate).
3736 * gdbarch.h: Regenerate.
3737 * gdbarch.c: Regenerate.
3738
86b49880
PA
37392012-06-04 Pedro Alves <palves@redhat.com>
3740
3741 * gdbarch.sh (gdb_signal_from_target): Mention that the
3742 implementation of the method must be host independent.
3743 * gdbarch.h: Regenerate.
3744
fe78531d
JK
37452012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3746
3747 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3748 parameters.
3749 (target_read_memory_bfd): New function.
3750 (symbol_file_add_from_memory): Use it.
3751
d790cf0a
DE
37522012-06-03 Doug Evans <dje@google.com>
3753
78e5175a
DE
3754 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3755 of primary symtab.
3756 (basic_lookup_transparent_type): Ditto.
3757
d790cf0a
DE
3758 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3759 (ALL_PRIMARY_SYMTABS): Use it.
3760 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3761 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3762 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3763 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3764 (basic_lookup_transparent_type): Ditto.
3765
c6e5ee5e
SDJ
37662012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3767
3768 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3769 it to optimize resolution of demangled name.
3770
a68ffae9
JK
37712012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3772
3773 * configure.ac (development): Define new variable.
3774 Call AC_CHECK_LIB for mcheck if $development.
3775 (ERROR_ON_WARNING): Enable it by default only if $development.
3776 * config.in: Regenerate.
3777 * configure: Regenerate.
3778
5299c1c4
JK
37792012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3780
3781 * target.c (target_read_memory): Make LEN argument as size_t.
3782 * target.h (target_read_memory): Likewise.
3783
37842012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
3785
3786 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3787
0c56f59b
EBM
37882012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3789
3790 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3791 BookE interface for PowerPC server processors if not available
3792 in the Linux Kernel.
3793
71bdabee
KS
37942012-05-31 Keith Seitz <keiths@redhat.com>
3795
3796 * linespec.c (decode_objc): Add cleanup to free
3797 INFO.FILE_SYMTABS.
3798 (find_linespec_symbols): Add cleanup to free CLASSES.
3799 * symfile.c (find_separate_debug_file_by_debuglink): Add
3800 cleanup to free DEBUGLINK.
3801 * ui-out.c (clear_header_list): No need to check if
3802 HEADER_NEXT.COLHDR is NULL.
3803 Free HEADER_NEXT.COL_NAME.
3804
acbd605d
MGD
38052012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3806
3807 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3808 warning.
3809
65662cde
PA
38102012-05-30 Jeff Kenton <jkenton@tilera.com>
3811
3812 * configure.host (gdb_host_cpu): Handle tilegx*.
3813 (gdb_host): Handle tilegx-*-linux*.
3814 * tilegx-linux-nat.c: New file.
3815 * config/tilegx/linux.mh: New file.
3816
ade64f0e
PA
38172012-05-30 Jeff Kenton <jkenton@tilera.com>
3818
3819 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3820 tilegx-linux-tdep.o.
3821 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3822 tilegx-linux-tdep.c.
3823 * configure.tgt: Handle tilegx-*-linux*.
3824 * tilegx-tdep.h: New file.
3825 * tilegx-tdep.c: New file.
3826 * tilegx-linux-tdep.c: New file.
3827 * regformats/reg-tilegx.dat: New file.
3828
bb08bdbd
EBM
38292012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3830
3831 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3832 accounting of hw watchpoints on ppc.
3833
ebd86fb5
TJB
38342012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3835
3836 * source.c (openp): Expand tilde in path entries.
3837
0a0edcd5
DE
38382012-05-29 Doug Evans <dje@google.com>
3839
98cc87bd
DE
3840 * buildsym.c (block_compar): Fix comment.
3841 (end_symtab): Fix and clarify some comments.
3842
0a0edcd5
DE
3843 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3844 cleanup_undefined_types.
3845 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3846 All callers updated.
3847
6f0c7050
TT
38482012-05-29 Tom Tromey <tromey@redhat.com>
3849
3850 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3851 fails.
3852 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3853 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3854 fails.
3855 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3856 fails.
3857
ec95993c
TG
38582012-05-29 Tristan Gingold <gingold@adacore.com>
3859
3860 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3861 (struct darwin_info): ... New struct.
3862 (solib_darwin_pspace_data): New variable.
3863 (darwin_pspace_data_cleanup): New function.
3864 (get_darwin_info): Likewise.
3865 (darwin_dyld_version_ok, darwin_load_image_infos)
3866 (darwin_solib_get_all_image_info_addr_at_init)
3867 (darwin_solib_read_all_image_info_addr): Add info argument.
3868 Adjust code.
3869 (darwin_current_sos): Use per pspace structure.
3870 (darwin_solib_create_inferior_hook): Likewise.
3871 (darwin_clear_solib): Likewise.
3872 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3873
ae25568b
PA
38742012-05-28 Pedro Alves <palves@redhat.com>
3875
3876 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3877 block that uses them. Clear ecss before handling each event.
3878
0c5bf5a9
JK
38792012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3880
3881 * solib-svr4.c (svr4_current_sos): New comment on
3882 svr4_current_sos_via_xfer_libraries fall back.
3883
bfb05775
JK
38842012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3885
3886 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3887 it as a fallback for TYPE_IS_OPAQUE.
3888 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3889 symbols for lookup_symbol.
3890
685b1105
JK
38912012-05-24 John Steele Scott <toojays@toojays.net>
3892
3893 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3894 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3895 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3896 (check_producer): ... this new function, which also checks for ICC
3897 and caches the result.
3898 (producer_is_icc): New function.
3899 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3900 producer was ICC.
3901
22203bbf
PA
39022012-05-24 Pedro Alves <palves@redhat.com>
3903
3904 PR gdb/7205
3905
3906 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3907 (default_gdb_signal_to_target): ... this. Add comment.
3908 (default_gdb_signal_from_host): Rename to ...
3909 (default_gdb_signal_from_target): ... this. Add comment.
3910 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3911 (default_gdb_signal_to_target): ... this.
3912 (default_gdb_signal_from_host): Rename to ...
3913 (default_gdb_signal_from_target): ... this.
3914 * corelow.c (core_open): Adjust to naming change. Replace comment.
3915 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3916 (gdb_signal_from_target): ... this. Adjust to
3917 default_gdb_signal_from_host naming change. Extend comment.
3918 (gdb_signal_to_host): Rename to ...
3919 (gdb_signal_to_target): ... this. Adjust to
3920 default_gdb_signal_to_host naming change.
3921 * gdbarch.h, gdbarch.c: Renegerate.
3922
a493e3e2
PA
39232012-05-24 Pedro Alves <palves@redhat.com>
3924
3925 PR gdb/7205
3926
f782ad9b 3927 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 3928
2ea28649
PA
39292012-05-24 Pedro Alves <palves@redhat.com>
3930
3931 PR gdb/7205
3932
3933 Replace target_signal with gdb_signal throughout.
3934
b09846a9
PA
39352012-05-24 Pedro Alves <palves@redhat.com>
3936
3937 PR tui/14159
3938
3939 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3940 string, instead of reusing the va_list argument.
3941
e77c107e
TT
39422012-05-24 Tom Tromey <tromey@redhat.com>
3943
3944 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3945 Remove.
3946
9fccedf7
DE
39472012-05-23 Doug Evans <dje@google.com>
3948
d50bd42b
DE
3949 * symtab.c (search_symbols): Formatting fixes.
3950 (print_symbol_info): Formatting fixes.
3951
9fccedf7
DE
3952 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3953 int64_t change to leb128 API.
3954 (read_encoded_value, decode_frame_entry_1): Ditto.
3955 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3956 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3957 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3958 (execute_stack_op): Ditto.
3959 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3960 (safe_read_uleb128, safe_read_sleb128): Ditto.
3961 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3962 (dwarf2_compile_expr_to_ax): Ditto.
3963 (locexpr_describe_location_piece): Ditto.
3964 (disassemble_dwarf_expression): Ditto.
3965 (locexpr_describe_location_1): Ditto.
3966
f3e0e960
SS
39672012-05-23 Stan Shebs <stan@codesourcery.com>
3968 Kwok Cheung Yeung <kcy@codesourcery.com>
3969
3970 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3971 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3972 (mi-cmd-info.o): New rule.
3973 * osdata.h (info_osdata_command): New declaration.
3974 * osdata.c (info_osdata_command): Change to non-static.
3975 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3976 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3977 * mi/mi-cmd-info.c: New file.
3978
c51fe631
DE
39792012-05-23 Doug Evans <dje@google.com>
3980
71cddcc1
DE
3981 * symtab.c (search_symbols): Pass NULL for file_matcher to
3982 expand_symtabs_matching if there are no files to match.
3983
c51fe631
DE
3984 * gdbtypes.c (lookup_typename): Simplify.
3985
a79378d4
PA
39862012-05-23 Pedro Alves <palves@redhat.com>
3987
3988 * arch-utils.h (default_target_signal_to_host): Delete.
3989 * arch-utils.c (default_target_signal_to_host): Delete.
3990 * gdbarch.sh (target_signal_to_host): Remove.
3991 * gdbarch.h, gdbarch.c: Regenerate.
3992
f664829e
DE
39932012-05-22 Doug Evans <dje@google.com>
3994
3995 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3996 "const gdb_byte *".
3997 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3998 (execute_cfa_program): Update to match API of leb128 functions.
3999 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4000 "const gdb_byte *".
4001 (read_unsigned_leb128, read_signed_leb128): Delete.
4002 (read_initial_length): Change type of buf argument to
4003 "const gdb_byte *".
4004 (read_encoded_value): Update to match API of leb128 functions.
4005 (decode_frame_entry): Change result to "const gdb_byte *", and
4006 similarly for "start" parameter.
4007 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4008 (dwarf2_build_frame_info): Change local frame_ptr to
4009 "const gdb_byte *".
4010 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4011 read_uleb128, read_sleb128. All callers updated.
4012 (safe_skip_leb128): New function.
4013 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4014 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4015 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4016 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4017 read_uleb128, read_sleb128.
4018 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4019 (execute_stack_op): Update to match API of leb128 functions.
4020 * dwarf2expr.h: #include "leb128.h".
4021 (read_uleb128, read_sleb128): Delete.
4022 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4023 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4024 * dwarf2loc.c (debug_loc_kind): New enum.
4025 (decode_debug_loc_addresses): New function.
4026 (decode_debug_loc_dwo_addresses): New function.
4027 (dwarf2_find_location_expression): Rewrite.
4028 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4029 (locexpr_describe_location_piece): Ditto.
4030 (disassemble_dwarf_expression): Ditto.
4031 (locexpr_describe_location_1): Ditto.
4032 (loclist_describe_location): Rewrite.
4033 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4034 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4035 (dwarf2_section_buffer_overflow_complaint): Renamed from
4036 dwarf2_macros_too_long_complaint. All callers updated.
4037 (skip_leb128): Delete.
4038 (init_cu_die_reader): Initialize reader->buffer_end.
4039 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4040 (skip_form_bytes): New arg buffer_end. All callers updated.
4041 Replace call to skip_leb128 with gdb_skip_leb128.
4042 (skip_unknown_opcode): New arg mac_end. All callers updated.
4043 (fill_in_loclist_baton): Initialize baton->from_dwo.
4044
837a1b32
MR
40452012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4046
4047 * mips-linux-nat.c (mips_linux_read_description): Use a more
4048 verbose error message.
4049
d0e64392
MR
40502012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4051
4052 * NEWS: Add MIPS/Linux DSP support.
4053 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4054 (SIGCONTEXT_DSPCTL): New macro.
4055 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4056 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4057 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4058 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4059 (N64_SIGCONTEXT_HI3): Likewise.
4060 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4061 (N64_SIGCONTEXT_LO3): Likewise.
4062 (N64_SIGCONTEXT_DSPCTL): Likewise.
4063 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4064 (mips_linux_o32_sigframe_init): Handle DSP registers.
4065 (mips_linux_n32n64_sigframe_init): Likewise.
4066
8bea7ed1
PM
40672012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4068
4069 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4070 call to abort.
4071
dab06dbe
PA
40722012-05-22 Pedro Alves <palves@redhat.com>
4073
4074 * target.h (store_waitstatus): Move declaration ...
4075 * inf-child.h (store_waitstatus): ... here.
4076 * target.c: Move inclusion of gdb_wait.h, and ...
4077 (store_waitstatus): ... this ...
4078 * inf-child.c: ... here.
4079 * linux-nat.c: Include inf-child.h.
4080 * rs6000-nat.c: Include inf-child.h.
4081 * spu-linux-nat.c: Include inf-child.h.
4082
43011e52
PM
40832012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4084
4085 * tracepoint.c (start_tracing): Add missing i18n markup.
4086 (stop_tracing, set_trace_user): Ditto.
4087 (set_trace_notes, set_trace_stop_notes): Ditto.
4088
b1af9e97
TT
40892012-05-21 Tom Tromey <tromey@redhat.com>
4090
4091 PR c++/7173:
4092 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4093 types.
4094 * value.h (value_cast_pointers): Update.
4095 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4096 (value_cast): Update.
4097 (update_search_result): New function.
4098 (do_search_struct_field): New, from search_struct_field. Check
4099 for ambiguous results.
4100 (search_struct_field): Rewrite.
4101 * infcall.c (value_arg_coerce): Update.
4102 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4103 value_cast_pointers.
4104 * ada-lang.c (ada_convert_actual): Update.
4105
e9e5e6b3
TT
41062012-05-21 Tom Tromey <tromey@redhat.com>
4107
4108 * macroexp.c (macro_stringify): Terminate the string.
4109
1564a261
JK
41102012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4111
4112 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4113 Describe it.
4114 * auto-load.c (auto_load_expand_dir_vars): New function.
4115 (auto_load_safe_path_vec_update): Use it, remove the
4116 substitute_path_component call thanks to it.
4117 (auto_load_objfile_script): Remove the debug_file_directory processing.
4118 Use auto_load_expand_dir_vars, remove the substitute_path_component
4119 call thanks to it.
4120 * configure: Regenerate.
4121 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4122 path. Escape $ also for $debugdir.
4123 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4124 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4125
a3ec0bb1
DE
41262012-05-20 Doug Evans <dje@google.com>
4127
4128 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4129 before use. Check for symtab->includes == NULL before scanning it.
4130
d467df4e
MR
41312012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4132
4133 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4134
4cc0665f
MR
41352012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4136
4137 * NEWS: Add microMIPS support and "set mips compression",
4138 "show mips compression" commands.
4139 * mips-tdep.h (mips_isa): New enum.
4140 (gdbarch_tdep): Add mips_isa.
4141 (mips_pc_is_mips16): Update prototype.
4142 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4143 * mips-tdep.c (mips_compression_mips16): New variable.
4144 (mips_compression_micromips): Likewise.
4145 (mips_compression_strings): Likewise.
4146 (mips_compression_string): Likewise.
4147 (is_mips16_isa, is_micromips_isa): New functions.
4148 (is_mips16_addr): Rename to...
4149 (is_compact_addr): ... this.
4150 (unmake_mips16_addr): Likewise to...
4151 (unmake_compact_addr): ... this.
4152 (make_mips16_addr): Likewise to...
4153 (make_compact_addr): ... this.
4154 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4155 functions.
4156 (mips_elf_make_msymbol_special): Handle microMIPS code.
4157 (msymbol_is_special): Rename to...
4158 (msymbol_is_mips16): ... this.
4159 (mips_make_symbol_special, mips_pc_is_mips16): Update
4160 accordingly.
4161 (msymbol_is_mips, msymbol_is_micromips): New functions.
4162 (mips16_to_32_reg): Rename to...
4163 (mips_reg3_to_reg): ... this.
4164 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4165 (mips_pc_isa): Likewise.
4166 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4167 code.
4168 (mips_fetch_instruction): Pass return status instead of printing
4169 an error message if requested. Handle microMIPS code. Bail out
4170 on an invalid ISA.
4171 (micromips_op): New macro.
4172 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4173 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4174 (b6s4_op, b7s3_reg): Likewise.
4175 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4176 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4177 (mips_insn_size): New function.
4178 (mips32_next_pc): Update mips_fetch_instruction call.
4179 (micromips_relative_offset7): New function.
4180 (micromips_relative_offset10): Likewise.
4181 (micromips_relative_offset16): Likewise.
4182 (micromips_pc_insn_size): Likewise.
4183 (micromips_bc1_pc): Likewise.
4184 (micromips_next_pc): Likewise.
4185 (unpack_mips16): Update mips_fetch_instruction call.
4186 (extended_mips16_next_pc): Update according to change to
4187 mips16_to_32_reg.
4188 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4189 code.
4190 (mips16_scan_prologue): Update mips_fetch_instruction call.
4191 Update according to change to mips16_to_32_reg.
4192 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4193 (mips_insn16_frame_base_sniffer): Likewise.
4194 (micromips_decode_imm9): New function.
4195 (micromips_scan_prologue): Likewise.
4196 (mips_micro_frame_cache): Likewise.
4197 (mips_micro_frame_this_id): Likewise.
4198 (mips_micro_frame_prev_register): Likewise.
4199 (mips_micro_frame_sniffer): Likewise.
4200 (mips_micro_frame_unwind): New variable.
4201 (mips_micro_frame_base_address): New function.
4202 (mips_micro_frame_base): New variable.
4203 (mips_micro_frame_base_sniffer): New function.
4204 (mips32_scan_prologue): Update mips_fetch_instruction call.
4205 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4206 rather than for MIPS16.
4207 (mips_insn32_frame_base_sniffer): Likewise.
4208 (mips_addr_bits_remove): Handle microMIPS code.
4209 (deal_with_atomic_sequence): Rename to...
4210 (mips_deal_with_atomic_sequence): ... this. Update the type
4211 of the variable used to hold an instruction. Remove the ISA bit
4212 check. Update mips_fetch_instruction call.
4213 (micromips_deal_with_atomic_sequence): New function.
4214 (deal_with_atomic_sequence): Likewise.
4215 (mips_about_to_return): Handle microMIPS code. Update
4216 mips_fetch_instruction call.
4217 (heuristic_proc_start): Check for the standard MIPS ISA rather
4218 than for MIPS16. Update mips_pc_is_mips16 and
4219 mips_fetch_instruction calls. Handle microMIPS code.
4220 (mips_push_dummy_code): Handle microMIPS code.
4221 (mips_eabi_push_dummy_call): Likewise.
4222 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4223 (mips_o64_push_dummy_call): Handle microMIPS code.
4224 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4225 (is_delayed): Remove function.
4226 (mips_single_step_through_delay): Replace the call to is_delayed
4227 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4228 Handle microMIPS code.
4229 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4230 microMIPS code.
4231 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4232 call.
4233 (micromips_in_function_epilogue_p): New function.
4234 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4235 call.
4236 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4237 Handle microMIPS.
4238 (gdb_print_insn_mips): Likewise.
4239 (mips_breakpoint_from_pc): Likewise.
4240 (mips_remote_breakpoint_from_pc): New function.
4241 (mips32_instruction_has_delay_slot): Simplify making use of the
4242 updated mips_fetch_instruction interface.
4243 (micromips_instruction_has_delay_slot): New function.
4244 (mips16_instruction_has_delay_slot): Simplify making use of the
4245 updated mips_fetch_instruction interface.
4246 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4247 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4248 calls. Handle microMIPS code.
4249 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4250 (mips_skip_trampoline_code): Handle microMIPS code.
4251 (global_mips_compression): New function.
4252 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4253 file flags. Register the microMIPS remote breakpoint handler
4254 and heuristic frame unwinder.
4255 (show_mips_compression): New function.
4256 (_initialize_mips_tdep): Add the "set mips compression" and
4257 "show mips compression" commands.
4258
22e048c9
SDJ
42592012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4260
4261 * ada-lang.c:
4262 * ada-tasks.c:
4263 * ada-varobj.c:
4264 * amd64-darwin-tdep.c:
4265 * arm-symbian-tdep.c:
4266 * arm-tdep.c:
4267 * avr-tdep.c:
4268 * ax-gdb.c:
4269 * bfin-linux-tdep.c:
4270 * breakpoint.c:
4271 * c-valprint.c:
4272 * cli/cli-cmds.c:
4273 * coffread.c:
4274 * cp-support.c:
4275 * cris-tdep.c:
4276 * dwarf2-frame-tailcall.c:
4277 * dwarf2-frame.c:
4278 * dwarf2expr.c:
4279 * dwarf2loc.c:
4280 * dwarf2read.c:
4281 * elfread.c:
4282 * eval.c:
4283 * expprint.c:
4284 * f-valprint.c:
4285 * frv-tdep.c:
4286 * h8300-tdep.c:
4287 * hppa-hpux-tdep.c:
4288 * hppa-tdep.c:
4289 * hppanbsd-tdep.c:
4290 * i386-nto-tdep.c:
4291 * i386-tdep.c:
4292 * i387-tdep.c:
4293 * ia64-tdep.c:
4294 * jit.c:
4295 * linespec.c:
4296 * linux-tdep.c:
4297 * lm32-tdep.c:
4298 * m2-valprint.c:
4299 * m32c-tdep.c:
4300 * m32r-rom.c:
4301 * m32r-tdep.c:
4302 * m68k-tdep.c:
4303 * m68klinux-tdep.c:
4304 * mi/mi-main.c:
4305 * microblaze-tdep.c:
4306 * mips-linux-tdep.c:
4307 * mips-tdep.c:
4308 * mn10300-tdep.c:
4309 * p-valprint.c:
4310 * parse.c:
4311 * ppc-linux-tdep.c:
4312 * ppc-sysv-tdep.c:
4313 * printcmd.c:
4314 * python/py-finishbreakpoint.c:
4315 * python/py-inferior.c:
4316 * python/py-infthread.c:
4317 * python/py-type.c:
4318 * python/python.c:
4319 * remote-fileio.c:
4320 * remote-m32r-sdi.c:
4321 * remote-mips.c:
4322 * reverse.c:
4323 * rl78-tdep.c:
4324 * rs6000-aix-tdep.c:
4325 * rs6000-tdep.c:
4326 * s390-tdep.c:
4327 * score-tdep.c:
4328 * sh64-tdep.c:
4329 * skip.c:
4330 * solib-darwin.c:
4331 * solib-dsbt.c:
4332 * solib-frv.c:
4333 * sparc-tdep.c:
4334 * spu-multiarch.c:
4335 * spu-tdep.c:
4336 * stack.c:
4337 * symfile.c:
4338 * symtab.c:
4339 * tic6x-tdep.c:
4340 * tracepoint.c:
4341 * v850-tdep.c:
4342 * valarith.c:
4343 * valprint.c:
4344 * value.c:
4345 * xcoffread.c:
4346 * xtensa-tdep.c:
4347 * ada-lang.c:
4348 * ada-tasks.c:
4349 * ada-varobj.c:
4350 * amd64-darwin-tdep.c:
4351 * arm-symbian-tdep.c:
4352 * arm-tdep.c: Delete unused variables.
4353
aff139ff
JK
43542012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4355
4356 Rename $ddir to $datadir.
4357 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4358 * auto-load.c (auto_load_safe_path_vec_update)
4359 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4360 * configure: Regenerate.
4361 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4362 Likewise. Remove the 'use $ddir' help string.
4363
f7bfa992
JK
43642012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4365
4366 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4367 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4368
9cb709b6
TT
43692012-05-18 Tom Tromey <tromey@redhat.com>
4370
4371 PR exp/13907:
4372 * valprint.h (struct value_print_options) <symbol_print>: New
4373 field.
4374 * valprint.c (user_print_options): Add default for symbol_print.
4375 (show_symbol_print): New function.
4376 (generic_val_print): Respect symbol_print.
4377 (_initialize_valprint): Add "print symbol" setting.
4378 * f-valprint.c (f_val_print): Respect symbol_print.
4379 * c-valprint.c (c_val_print): Respect symbol_print.
4380 * NEWS: Update.
4381 * printcmd.c (print_address_symbolic): Return int. Ignore some
4382 zero-size symbols.
4383 (print_address_demangle): Return int.
4384 * defs.h: (print_address_symbolic): Return int.
4385 * value.h (print_address_demangle): Return int.
4386
b012acdd
TT
43872012-05-18 Tom Tromey <tromey@redhat.com>
4388
4389 * valprint.c (val_print_string): Don't print leading space.
4390 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4391 print space before string or vtbl.
4392 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4393 before string.
4394 * jv-valprint.c (java_value_print): Print space before string.
4395 * go-valprint.c (print_go_string): Print space before string.
4396 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4397 space before string.
4398 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4399 space before string or vtbl.
4400 * auxv.c (fprint_target_auxv): Print space after address.
4401
1d51a733
TT
44022012-05-18 Tom Tromey <tromey@redhat.com>
4403
4404 * printcmd.c (print_address_demangle): Remove special case for 0.
4405
edf0c1b7
TT
44062012-05-18 Tom Tromey <tromey@redhat.com>
4407
4408 * printcmd.c (print_address_demangle): Add 'opts' argument.
4409 * p-valprint.c (pascal_val_print): Update.
4410 * jv-valprint.c (java_val_print): Update.
4411 * value.h: Update.
4412 * valprint.c (generic_val_print): Update.
4413 (print_function_pointer_address): Add 'options' argument. Remove
4414 'addressprint' argument. Update.
4415 * m2-valprint.c (print_unpacked_pointer): Update.
4416 * gnu-v3-abi.c (print_one_vtable): Update.
4417 (gnuv3_print_method_ptr): Update.
4418 * f-valprint.c (f_val_print): Update.
4419 * cp-valprint.c (cp_print_value_fields): Update.
4420 * valprint.h (print_function_pointer_address): Update.
4421 * c-valprint.c (c_val_print): Update.
4422
9703b513
TT
44232012-05-18 Tom Tromey <tromey@redhat.com>
4424
4425 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4426 directly corresponding to the found psymtab.
4427 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4428 (dw2_find_pc_sect_symtab): Use it.
4429 * block.h (blockvector_contains_pc): Declare.
4430 * block.c (find_block_in_blockvector): New function.
4431 (blockvector_for_pc_sect): Use it.
4432 (blockvector_contains_pc): New function.
4433
5a439849
MR
44342012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4435
4436 * mips-tdep.h (mips_write_pc): New prototype.
4437 * mips-tdep.c (mips_write_pc): Make external, add description.
4438 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4439 add description.
4440
8376de04
MR
44412012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4442
4443 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4444 mips_regnum->pc.
4445 (mips_unwind_pc, mips_write_pc): Likewise.
4446 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4447 gdbarch_read_pc.
4448
d3581e61
JB
44492012-05-17 Joel Brobecker <brobecker@adacore.com>
4450
4451 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4452 proc_warn, proc_error, proc_get_status, proc_flags,
4453 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4454 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4455 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4456 proc_stop_process, proc_wait_for_stop, proc_run_process,
4457 proc_set_traced_signals, proc_set_traced_faults,
4458 proc_set_traced_sysentry, proc_set_traced_sysexit,
4459 proc_set_held_signals, proc_get_held_signals,
4460 proc_get_traced_signals, proc_get_traced_faults,
4461 proc_get_traced_sysentry, proc_get_traced_sysexit,
4462 proc_clear_current_fault, proc_set_current_signal,
4463 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4464 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4465 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4466 proc_get_current_thread, proc_get_current_thread,
4467 proc_get_current_thread, proc_update_threads,
4468 proc_update_threads, proc_update_threads, proc_update_threads,
4469 proc_iterate_over_threads, procfs_find_new_threads,
4470 procfs_pid_to_str): Make static. Remove advance declaration.
4471 (proc_cursig): Make static. Conditionalized defintion on
4472 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4473 (proc_syscall, proc_set_kill_on_last_close,
4474 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4475 proc_get_pending_signals, proc_get_signal_actions,
4476 proc_trace_signal, proc_ignore_signal): Delete.
4477
81b9b86e
SDJ
44782012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4479
4480 * coffread.c (cs_section_address): Passing proper argument for
4481 `bfd_get_section_vma'.
4482 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4483 `bfd_get_section_flags'.
4484 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4485 `bfd_get_section_vma'.
4486
abc9d0dc
TT
44872012-05-16 Tom Tromey <tromey@redhat.com>
4488
4489 PR macros/13205:
4490 * macrotab.h: (macro_define_special): Declare.
4491 (enum macro_special_kind): New.
4492 (struct macro_definition) <argc, replacement>: Update comments.
4493 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4494 (macro_define_object_internal): New function.
4495 (macro_define_object): Use it.
4496 (macro_define_special): New function.
4497 (fixup_definition): New function.
4498 (macro_lookup_definition, foreach_macro_in_scope)
4499 (foreach_macro): Use fixup_definition.
4500 * macroexp.h (macro_stringify): Declare.
4501 * macroexp.c (free_buffer_return_text): New function.
4502 (stringify): Constify "arg".
4503 (macro_stringify): New function.
4504 * dwarf2read.c (macro_start_file): Call macro_define_special.
4505
6a3a010b 45062012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4507 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4508
4509 * breakpoint.h (bp_location): Add related_address member.
4510 * inferior.h (get_return_value): Take a pointer to struct value
4511 instead of struct type for the function requested.
4512 * value.h (using_struct_return): Likewise.
4513 * gdbarch.sh (return_value): Take a pointer to struct value
4514 instead of struct type for the function requested.
4515 * breakpoint.c (set_breakpoint_location_function): Initialize
4516 related_address for bp_gnu_ifunc_resolver breakpoints.
4517 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4518 requested function's address to gdbarch_return_value.
4519 * eval.c (evaluate_subexp_standard): Pass the requested
4520 function's address to using_struct_return.
4521 * infcall.c (call_function_by_hand): Pass the requested
4522 function's address to using_struct_return and
4523 gdbarch_return_value.
4524 * infcmd.c (get_return_value): Take a pointer to struct value
4525 instead of struct type for the function requested.
4526 (print_return_value): Update accordingly.
4527 (finish_command_continuation): Likewise.
4528 * stack.c (return_command): Pass the requested function's
4529 address to using_struct_return and gdbarch_return_value.
4530 * value.c (using_struct_return): Take a pointer to struct value
4531 instead of struct type for the function requested. Pass the
4532 requested function's address to gdbarch_return_value.
4533 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4534 New function_value member, replacing function_type.
4535 (bpfinishpy_dealloc): Update accordingly.
4536 (bpfinishpy_pre_stop_hook): Likewise.
4537 (bpfinishpy_init): Likewise. Record the requested function's
4538 address.
4539 * mips-tdep.c (mips_fval_reg): New enum.
4540 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4541 words put in GP registers.
4542 (mips_o64_push_dummy_call): Update a comment.
4543 (mips_o32_return_value): Take a pointer to struct value instead
4544 of struct type for the function requested and use it to check if
4545 using the MIPS16 calling convention. Return the designated
4546 general purpose registers for floating-point values returned in
4547 MIPS16 mode.
4548 (mips_o64_return_value): Likewise.
4549 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4550 (ppc_sysv_abi_broken_return_value): Likewise.
4551 (ppc64_sysv_abi_return_value): Likewise.
4552 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4553 value instead of struct type for the function requested.
4554 * amd64-tdep.c (amd64_return_value): Likewise.
4555 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4556 * arm-tdep.c (arm_return_value): Likewise.
4557 * avr-tdep.c (avr_return_value): Likewise.
4558 * bfin-tdep.c (bfin_return_value): Likewise.
4559 * cris-tdep.c (cris_return_value): Likewise.
4560 * frv-tdep.c (frv_return_value): Likewise.
4561 * h8300-tdep.c (h8300_return_value): Likewise.
4562 (h8300h_return_value): Likewise.
4563 * hppa-tdep.c (hppa32_return_value): Likewise.
4564 (hppa64_return_value): Likewise.
4565 * i386-tdep.c (i386_return_value): Likewise.
4566 * ia64-tdep.c (ia64_return_value): Likewise.
4567 * iq2000-tdep.c (iq2000_return_value): Likewise.
4568 * lm32-tdep.c (lm32_return_value): Likewise.
4569 * m32c-tdep.c (m32c_return_value): Likewise.
4570 * m32r-tdep.c (m32r_return_value): Likewise.
4571 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4572 * m68k-tdep.c (m68k_return_value): Likewise.
4573 (m68k_svr4_return_value): Likewise.
4574 * m88k-tdep.c (m88k_return_value): Likewise.
4575 * mep-tdep.c (mep_return_value): Likewise.
4576 * microblaze-tdep.c (microblaze_return_value): Likewise.
4577 * mn10300-tdep.c (mn10300_return_value): Likewise.
4578 * moxie-tdep.c (moxie_return_value): Likewise.
4579 * mt-tdep.c (mt_return_value): Likewise.
4580 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4581 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4582 (ppc_sysv_abi_broken_return_value): Likewise.
4583 (ppc64_sysv_abi_return_value): Likewise.
4584 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4585 * rl78-tdep.c (rl78_return_value): Likewise.
4586 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4587 * rx-tdep.c (rx_return_value): Likewise.
4588 * s390-tdep.c (s390_return_value): Likewise.
4589 * score-tdep.c (score_return_value): Likewise.
4590 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4591 (sh_return_value_fpu): Likewise.
4592 * sh64-tdep.c (sh64_return_value): Likewise.
4593 * sparc-tdep.c (sparc32_return_value): Likewise.
4594 * sparc64-tdep.c (sparc64_return_value): Likewise.
4595 * spu-tdep.c (spu_return_value): Likewise.
4596 * tic6x-tdep.c (tic6x_return_value): Likewise.
4597 * v850-tdep.c (v850_return_value): Likewise.
4598 * vax-tdep.c (vax_return_value): Likewise.
4599 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4600 * xtensa-tdep.c (xtensa_return_value): Likewise.
4601 * gdbarch.c: Regenerate.
4602 * gdbarch.h: Regenerate.
4603
29ca12b3
TT
46042012-05-15 Tom Tromey <tromey@redhat.com>
4605
4606 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4607
588ae58c
JB
46082012-05-15 Joel Brobecker <brobecker@adacore.com>
4609
4610 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4611 of command in two error message.
4612
855a6e68
JB
46132012-05-15 Joel Brobecker <brobecker@adacore.com>
4614
4615 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4616
d634f2de
JB
46172012-05-15 Joel Brobecker <brobecker@adacore.com>
4618
4619 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4620
9cc815f5
JK
46212012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4622
4623 * NEWS (show auto-load scripts-directory): Add forgotten command.
4624
6a609e58
JK
46252012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4626
4627 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4628 parameters.
4629
ac1438b5
L
46302012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4631
4632 * amd64-tdep.c: Include features/i386/x32.c and
4633 features/i386/x32-avx.c.
4634 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4635 initialize_tdesc_x32_avx.
4636
e7e0cddf
SS
46372012-05-14 Stan Shebs <stan@codesourcery.com>
4638
4639 Add dynamic printf.
4640 * breakpoint.h (enum bptype): New type bp_dprintf.
4641 (struct breakpoint): New field extra_string.
4642 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4643 (create_breakpoint): Add extra_string arg.
4644 * breakpoint.c (dprintf_breakpoint_ops): New.
4645 (is_breakpoint): Add bp_dprintf.
4646 (bpstat_what): Add dprintf case.
4647 (bptype_string): Ditto.
4648 (print_one_breakpoint_location): Ditto.
4649 (init_bp_location): Ditto.
4650 (bkpt_print_mention): Ditto.
4651 (dprintf_style_enums): New array.
4652 (dprintf_style): New global.
4653 (dprintf_function): New global.
4654 (dprintf_channel): New global.
4655 (update_dprintf_command_list): New function.
4656 (update_dprintf_commands): New function.
4657 (init_breakpoint_sal): Add extra_string argument, handle it.
4658 (create_breakpoint_sal): Add extra_string argument.
4659 (create_breakpoints_sal): Add extra_string argument, update callers.
4660 (find_condition_and_thread): Add extra argument.
4661 (create_breakpoint): Add extra_string argument, record it.
4662 (dprintf_command): New function.
4663 (break_command_1): Add arg to create_breakpoint call.
4664 (handle_gnu_v3_exceptions): Ditto.
4665 (trace_command): Ditto.
4666 (ftrace_command): Ditto.
4667 (strace_command): Ditto.
4668 (bkpt_print_mention): Add dprintf case.
4669 (create_breakpoint_sal_default): Add extra_string argument.
4670 (_initialize_breakpoint): Add new commands.
4671 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4672 * python/py-breakpoint.c (bppy_init): Ditto.
4673 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4674
8ae38c14
MR
46752012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4676
4677 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4678
9f676e66
SCR
46792012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4680
4681 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4682 unsigned long long.
4683
7efc75aa
SCR
46842012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4685
4686 Add a new function gdb.find_pc_line to the Python API.
4687 * NEWS (Python Scripting): Add entry about the new function.
4688 * python/python.c (gdbpy_find_pc_line): New function which
4689 implements gdb.find_pc_line.
4690 (GdbMethods): Add entry for the new function.
4691
70af3797
PA
46922012-05-12 Pedro Alves <palves@redhat.com>
4693
4694 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4695 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4696
06da564e
EZ
46972012-05-12 Eli Zaretskii <eliz@gnu.org>
4698
4699 * inferior.c: Include completer.h
4700 (initialize_inferiors): Set completer of add-inferior to
4701 filename_completer.
4702
0288cee2
L
47032012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4704
4705 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4706 gdbarch_ptr_bit for x32 core dump.
4707
f6537a2c
L
47082012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4709
4710 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4711 and features/i386/x32-avx-linux.c.
4712
85d4a676
SS
47132012-05-11 Stan Shebs <stan@codesourcery.com>
4714 Kwok Cheung Yeung <kcy@codesourcery.com>
4715
4716 * NEWS: Describe new info os commands.
4717 * common/linux-osdata.c (PID_T, TIME_T): Define.
4718 (MAX_PID_T_STRLEN): New.
4719 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4720 MAX_PID_T_STRLEN.
4721 (command_from_pid): Add comment. Change to use PID_T.
4722 (commandline_from_pid): Change to use PID_T.
4723 (user_from_pid): Add comment.
4724 (get_process_owner): Add comment. Change to use PID_T and
4725 MAX_PID_T_STRLEN.
4726 (get_number_of_cpu_cores): Add comment.
4727 (get_cores_used_by_process): Add comment. Change to use PID_T and
4728 MAX_PID_T_STRLEN.
4729 (linux_xfer_osdata_processes): Change to use PID_T and
4730 MAX_PID_T_STRLEN.
4731 (compare_processes): New function.
4732 (linux_xfer_osdata_processgroups): New function.
4733 (linux_xfer_osdata_threads): Change to use PID_T.
4734 (linux_xfer_osdata_fds): New function.
4735 (format_socket_state, print_sockets): New functions.
4736 (union socket_addr): New union.
4737 (linux_xfer_osdata_isockets): New function.
4738 (time_from_time_t, group_from_gid): New functions.
4739 (linux_xfer_osdata_shm): New function.
4740 (linux_xfer_osdata_sem): New function.
4741 (linux_xfer_osdata_msg): New function.
4742 (linux_xfer_osdata_modules): New function.
4743 (osdata_table): Add new entries.
4744 * common/buffer.c (buffer_xml_printf): Add support for long and
4745 long long format specifiers.
4746
f24afd6d
L
47472012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4748
4749 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4750 (tdesc_x32_avx_linux): Likewise.
4751
7349ff92
JK
47522012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4753
4754 Implement multi-component --with-auto-load-dir.
4755 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4756 entries.
4757 (--with-auto-load-safe-path): Update the default value description.
4758 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4759 New.
4760 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4761 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4762 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4763 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4764 "set auto-load scripts-directory".
4765 * config.in: Regenerate.
4766 * configure: Regenerate.
4767 * configure.ac (--with-auto-load-dir): New configure option.
4768 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4769
6dea1fbd
JK
47702012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4771
4772 Provide $ddir substitution for --with-auto-load-safe-path.
4773 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4774 entries.
4775 * auto-load.c: Include observer.h.
4776 (auto_load_safe_path_vec_update): Call substitute_path_component for
4777 each component. New variable ddir_subst.
4778 (auto_load_gdb_datadir_changed): New function.
4779 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4780 AUTO_LOAD_SAFE_PATH. New comment.
4781 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4782 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4783 * config.in: Regenerate.
4784 * configure: Regenerate.
4785 * configure.ac (--auto-load-safe-path): Rename
4786 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4787 GDB_DATADIR/auto-load.
4788 * defs.h (substitute_path_component): New declaration.
4789 * top.c: Include observer.h.
4790 (set_gdb_datadir): New function.
4791 (init_main): Install it for "set data-directory".
4792 * utils.c (substitute_path_component): New function.
4793
b09aca3a
JK
47942012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4795
4796 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4797 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4798 DEBUG_FILE_DIRECTORY. Handle multiple components of
4799 DEBUG_FILE_DIRECTORY.
4800
95554aad
TT
48012012-05-10 Tom Tromey <tromey@redhat.com>
4802
4803 * dwarf2read.c (recursively_write_psymbols): New function.
4804 (write_psymtabs_to_index): Use it.
4805
4806 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4807 field.
4808 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4809 (load_partial_comp_unit): Update.
4810 (queue_comp_unit): Add argument 'pretend_language'.
4811 (process_queue): Update.
4812 (psymtab_to_symtab_1): Skip dependencies that have a user.
4813 (load_partial_comp_unit_reader): Give meaning to the 'data'
4814 argument.
4815 (load_full_comp_unit): Add 'pretend_language' argument.
4816 (process_full_comp_unit): Add 'pretend_language' argument. Set
4817 language on CU.
4818 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4819 Update.
4820 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4821 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4822 Update.
4823 (prepare_one_comp_unit): Add 'pretend_language' argument.
4824
4825 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4826 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4827 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4828 (dw2_do_instantiate_symtab): Check whether symtab was read in
4829 before queueing.
4830 (dw2_instantiate_symtab): Add assertion. Call
4831 process_cu_includes.
4832 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4833 (partial_symtab_p): New typedef.
4834 (set_partial_user): New function.
4835 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4836 (scan_partial_symbols): Add imported CU to imported_symtabs.
4837 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4838 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4839 (get_symtab, recursively_compute_inclusions)
4840 (compute_symtab_includes, process_cu_includes)
4841 (process_imported_unit_die): New functions.
4842 (process_die) <DW_TAG_imported_unit>: New case.
4843 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4844
4845 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4846 comment.
4847 (struct partial_die_info) <locdesc>: Remove.
4848 <d>: New field.
4849 (process_psymtab_comp_unit): Add 'read_partial' argument.
4850 Update.
4851 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4852 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4853 (add_partial_symbol): Update.
4854 (process_die): Handle DW_TAG_partial_unit.
4855 (read_file_scope): Update comment.
4856 (load_partial_dies): Handle DW_TAG_imported_unit.
4857 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4858 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4859
e871fbb9
TT
48602012-05-10 Tom Tromey <tromey@redhat.com>
4861
4862 * cc-with-dwz.sh: New file.
4863
b5b04b5b
TT
48642012-05-10 Tom Tromey <tromey@redhat.com>
4865
4866 * symtab.h (struct symtab) <includes, user>: New fields.
4867 * block.h (struct block_iterator) <d, idx, which>: New fields.
4868 * block.c (initialize_block_iterator, find_iterator_symtab)
4869 (block_iterator_step, block_iter_name_step)
4870 (block_iter_match_step): New functions.
4871 (block_iterator_first, block_iterator_next)
4872 (block_iter_name_first, block_iter_name_next)
4873 (block_iter_match_first, block_iter_match_next): Rewrite.
4874 (get_block_symtab): New function.
4875
84a146c9
TT
48762012-05-10 Tom Tromey <tromey@redhat.com>
4877
4878 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4879 set_block_symtab.
4880 * jit.c (finalize_symtab): Use allocate_global_block,
4881 set_block_symtab.
4882 * buildsym.c (finish_block_internal): New function, from old
4883 finish_block.
4884 (finish_block): Rewrite.
4885 (end_symtab): Use finish_block_internal, set_block_symtab.
4886 * block.h (struct global_block): New.
4887 (allocate_global_block, set_block_symtab): Declare.
4888 * block.c (allocate_global_block, set_block_symtab): New
4889 functions.
4890
9439a077
TT
48912012-05-10 Tom Tromey <tromey@redhat.com>
4892
4893 * psymtab.c (partial_map_expand_apply): Add assertion.
4894 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4895 (psymtab_to_symtab): Find unshared psymtab.
4896 (dump_psymtab): Print including psymtabs.
4897 (recursively_search_psymtabs): New function.
4898 (expand_symtabs_matching_via_partial): Use it.
4899 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4900 fields.
4901 (enum psymtab_search_status): New.
4902
8157b174
TT
49032012-05-10 Tom Tromey <tromey@redhat.com>
4904
4905 * tracepoint.c (scope_info): Update.
4906 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4907 (find_pc_sect_symtab, search_symbols)
4908 (default_make_symbol_completion_list_break_on)
4909 (make_file_symbol_completion_list): Update.
4910 * symmisc.c (dump_symtab_1): Update.
4911 * stack.c (print_frame_args, iterate_over_block_locals)
4912 (print_frame_labels, iterate_over_block_arg_vars): Update.
4913 * python/py-block.c (block_object) <dict>: Remove.
4914 <block>: New field.
4915 <iter>: Change type.
4916 (blpy_iter): Update.
4917 (blpy_block_syms_iternext): Update.
4918 * psymtab.c (map_block): Use block iterators.
4919 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4920 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4921 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4922 * infrun.c (check_exception_resume): Update.
4923 * cp-support.c (make_symbol_overload_list_block): Update.
4924 * coffread.c (patch_opaque_types): Update.
4925 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4926 * block.h (struct block_iterator): New.
4927 (block_iterator_first, block_iterator_next, block_iter_name_first)
4928 (block_iter_name_next, block_iter_match_first)
4929 (block_iter_match_next): Declare.
4930 (ALL_BLOCK_SYMBOLS): Redefine.
4931 * block.c (block_iterator_first, block_iterator_next)
4932 (block_iter_name_first, block_iter_name_next)
4933 (block_iter_match_first, block_iter_match_next): New functions.
4934 * ada-lang.c (ada_add_block_symbols)
4935 (ada_make_symbol_completion_list): Use block iterator.
4936
a2ca7a52
TT
49372012-05-10 Tom Tromey <tromey@redhat.com>
4938
4939 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4940 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4941 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4942 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4943 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4944 Update.
4945
64ea88dc
JB
49462012-05-10 Joel Brobecker <brobecker@adacore.com>
4947
4948 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4949 print-file-var-lib2.c, print-file-var-main.c and
4950 print-file-var.exp (located in gdb/testsuite/gdb.base).
4951
99a547d6
JB
49522012-05-10 Joel Brobecker <brobecker@adacore.com>
4953
4954 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4955 try locating the symbol in the symbol's own objfile first, before
4956 extending the search to all objfiles.
4957 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4958 out of lookup_symbol_aux_symtabs.
4959 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4960 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4961 Do not search EXCLUDE_OBJFILE.
4962 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4963 (lookup_symbol_global): Search for matches in the block's objfile
4964 first, before searching all other objfiles.
4965
0ece64fd
TG
49662012-05-10 Tristan Gingold <gingold@adacore.com>
4967
4968 * printcmd.c (set_command): Add pre/post inc/dec.
4969
3d16a105
FCE
49702012-05-09 Frank Ch. Eigler <fche@redhat.com>
4971
4972 * gdb.1: Document -ex option.
4973
2efbc0f7
JB
49742012-05-09 Joel Brobecker <brobecker@adacore.com>
4975
4976 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4977 * inferior.h (AT_SYMBOL): Delete.
4978
2c76a0c7
JB
49792012-05-09 Joel Brobecker <brobecker@adacore.com>
4980
4981 * mips-tdep.c (mips_push_dummy_code): New function.
4982 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4983 ON_STACK and install mips_push_dummy_code as our gdbarch
4984 push_dummy_code routine.
4985
9401a810
PA
49862012-05-09 Pedro Alves <palves@redhat.com>
4987
4988 * target.c (set_maintenance_target_async_permitted): Rename to ...
4989 (set_target_async_command): ... this.
4990 (show_maintenance_target_async_permitted): Rename to ...
4991 (show_target_async_command): ... this.
4992 (initialize_targets): Adjust.
4993
3929b321
DE
49942012-05-08 Doug Evans <dje@google.com>
4995
4996 * go-exp.y (classify_name): Add missing assignment of fields of
4997 yylval.ssym.
4998
c41535fd
EZ
49992012-05-08 Eli Zaretskii <eliz@gnu.org>
5000
5001 Display the ">" prompt in interactive mode while reading canned
5002 commands, even when the current interpreter is MI.
5003
5004 * interps.c (interp_set_temp): New function.
5005
5006 * interps.h (interp_set_temp): Add prototype.
5007
5008 * cli/cli-script.c (restore_interp): New cleanup function.
5009 (read_command_lines): Temporarily override the current interpreter
5010 with CLI and arrange for restoring the original one.
5011
c0749c4d
JS
50122012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5013
5014 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5015
d7333987
SDJ
50162012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5017
5018 * probe.c (parse_probes): Move conditional to check for
5019 debuginfo files from here...
5020 * stap-probe.c (stap_get_probes): ... to here.
5021
649e6d92
MK
50222012-05-07 Mark Kettenis <kettenis@gnu.org>
5023 H.J. Lu <hongjiu.lu@intel.com>
5024
5025 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5026 `movl %esp, %ebp' for the X32 ABI.
5027
f39c6ffd
TT
50282012-05-07 Tom Tromey <tromey@redhat.com>
5029
5030 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5031 get_DW_TAG_name.
5032 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5033 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5034 (dwarf_stack_op_name): Remove.
5035 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5036 (decode_locdesc): Use get_DW_OP_name.
5037 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5038 (dwarf2_compile_expr_to_ax): Likewise.
5039 (disassemble_dwarf_expression): Likewise.
5040 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5041
1e1f6591
CLT
50422012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5043
5044 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5045 (sh_linux_sigtramp_cache): New function.
5046 (sh_linux_sigreturn_init): New function.
5047 (sh_linux_rt_sigreturn_init): New function.
5048 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5049 patterns.
5050 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5051 syscall codes.
5052 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5053 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5054 (sh_linux_init_abi): Add init calls to register new tramp_frame
5055 definitions under 32-bit SH, update comments.
5056
545c08b4
PA
50572012-05-07 Pedro Alves <palves@redhat.com>
5058
daac165e
PA
5059 PR gdb/10952
5060
545c08b4
PA
5061 * amd64-linux-tdep.c: Include glibc-tdep.h.
5062 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5063 gdbarch_skip_solib_resolver callback.
5064
af2c1515
JK
50652012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5066
5067 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5068 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5069 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5070 (add_auto_load_safe_path): Change the error message.
5071 (_initialize_auto_load): Change the "safe-path" help text.
5072 * configure: Regenerate
5073 * configure.ac (--without-auto-load-safe-path): Set
5074 WITH_AUTO_LOAD_SAFE_PATH to /.
5075
1067f998
SDJ
50762012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5077
5078 * stap-probe.h: Do not include unecessary `probe.h'.
5079
45dfa85a
AM
50802012-05-05 Alan Modra <amodra@gmail.com>
5081
5082 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5083 bfd_und_section_ptr.
5084 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5085 and bfd_com_section_ptr.
5086
cf093994
JB
50872012-05-04 Joel Brobecker <brobecker@adacore.com>
5088
762ebb75 5089 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5090
d40dc7a8
JB
50912012-05-04 Joel Brobecker <brobecker@adacore.com>
5092
5093 * windows-nat.h (segment_register_p_ftype): New typedef.
5094 (windows_set_segment_register_p): Add declaration.
5095 * windows-nat.c (segment_register_p): New static global.
5096 (windows_set_segment_register_p): New function.
5097 (do_windows_fetch_inferior_registers): Add special handling
5098 for segment registers.
5099 * amd64-windows-nat.c: #include "amd64-tdep.h".
5100 (amd64_windows_segment_register_p): New function.
5101 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5102 * i386-windows-nat.c: #include "i386-tdep.h".
5103 (i386_windows_segment_register_p): New function.
5104 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5105
52b3699b
TG
51062012-05-04 Tristan Gingold <gingold@adacore.com>
5107
5108 * printcmd.c (set_command): Emit a warning if the expression is not
5109 an assignment.
5110
94c74239
JB
51112012-05-03 Joel Brobecker <brobecker@adacore.com>
5112
5113 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5114 Make static.
5115
fcf57f19
SDJ
51162012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5117
5118 * stap-probe.c (stap_is_operator): Change declaration.
5119 (stap_get_opcode): Change return value.
5120 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5121 `stap_parse_argument_1'.
5122
27d2932e
PA
51232012-05-03 Pedro Alves <pedro@codesourcery.com>
5124
5125 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5126 debug log.
5127
a20ee7a4
SCR
51282012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5129
5130 Add two new methods global_block and static_block to gdb.Symtab
5131 objects.
5132 * NEWS (Python scripting): Add entry about the new methods.
5133 * python/py-symtab.c (stpy_global_block): New function which
5134 implements the gdb.Symtab.global_block() method.
5135 (stpy_static_block): New function which implements the
5136 gdb.Symtab.static_block() method.
5137 (symtab_object_methods): Add entries for the two new methods.
5138
943cb756
DE
51392012-05-03 Doug Evans <dje@google.com>
5140
5141 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5142 files.
5143
f4644a3f
YQ
51442012-05-03 Yao Qi <yao@codesourcery.com>
5145
5146 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5147 space.
5148 (i386_process_record): Ditto.
5149
ef61f180
JB
51502012-05-02 Joel Brobecker <brobecker@adacore.com>
5151
5152 * infcall.c (unwind_on_signal_p): Make static.
5153
02f1df11
JB
51542012-05-02 Joel Brobecker <brobecker@adacore.com>
5155
5156 * sol-thread.c (solaris_pid_to_str): Make static.
5157 (_initialize_sol_thread): Add prototype.
5158
39023530
JB
51592012-05-02 Joel Brobecker <brobecker@adacore.com>
5160
5161 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5162
c6b0c501
CF
51632012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5164
5165 * MAINTAINERS: Remove myself.
5166
1ef71717
JK
51672012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5168
5169 Fix --without-auto-load-safe-path for MS-Windows host platform.
5170 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5171
b31b86a7
EZ
51722012-05-02 Eli Zaretskii <eliz@gnu.org>
5173
5174 * gdb_curses.h: Undefine KEY_EVENT before including curses
5175 headers. Move "#undef MOUSE_MOVED" before any curses header
5176 inclusion.
5177
777532fc
SDJ
51782012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5179
5180 * features/i386/i386-mmx-linux.c: Regenerate.
5181 * features/rs6000/powerpc-32.c: Likewise.
5182 * features/rs6000/powerpc-32l.c: Likewise.
5183 * features/rs6000/powerpc-403.c: Likewise.
5184 * features/rs6000/powerpc-403gc.c: Likewise.
5185 * features/rs6000/powerpc-405.c: Likewise.
5186 * features/rs6000/powerpc-505.c: Likewise.
5187 * features/rs6000/powerpc-601.c: Likewise.
5188 * features/rs6000/powerpc-602.c: Likewise.
5189 * features/rs6000/powerpc-603.c: Likewise.
5190 * features/rs6000/powerpc-604.c: Likewise.
5191 * features/rs6000/powerpc-64.c: Likewise.
5192 * features/rs6000/powerpc-64l.c: Likewise.
5193 * features/rs6000/powerpc-750.c: Likewise.
5194 * features/rs6000/powerpc-860.c: Likewise.
5195 * features/rs6000/powerpc-e500.c: Likewise.
5196 * features/rs6000/powerpc-e500l.c: Likewise.
5197 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5198 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5199 * features/rs6000/rs6000.c: Likewise.
5200
d71871bc
SDJ
52012012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5202
5203 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5204 variable.
5205 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5206 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5207 (stap_parse_argument) <e>: Likewise.
5208 (handle_stap_probe) <byte_order>: Likewise.
5209
fd820528
DE
52102012-04-30 Doug Evans <dje@google.com>
5211
5212 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5213 init_and_read_dies_worker. All callers updated.
5214 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5215 replaced with init_cutu_and_read_dies.
5216 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5217 (find_partial_die): Remove FIXME. Don't free current CU.
5218
ec3f619d 52192012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5220
5221 * contrib: New directory.
5222 * contrib/test_pubnames_and_indexes.py: New file.
5223
fceca515
DE
52242012-04-30 Doug Evans <dje@google.com>
5225
5226 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5227 All callers updated.
5228 (init_cu_die_reader): Verify the section is non-empty.
5229 (dwarf_decode_line_header): Don't dereference section->asection
5230 until we know the section is present.
5231
311fe7e1
SDJ
52322012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5233
5234 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5235 probes.
5236
5977971a
YQ
52372012-04-29 Yao Qi <yao@codesourcery.com>
5238
5239 * gdb-code-style.el: New hook gdb-markup-hook
5240 and gdb-comment-hook.
5241
dee91e82
DE
52422012-04-28 Doug Evans <dje@google.com>
5243
3019eac3
DE
5244 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5245 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5246 objfile->obfd.
5247 * symfile.h (dwarf2_debug_sections): New member addr.
5248 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5249 (ctx_no_get_addr_index): New function.
5250 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5251 (ctx_no_get_addr_index): Declare.
5252 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5253 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5254 (dwarf_expr_ctx_funcs): Update.
5255 (needs_get_addr_index): New function.
5256 (needs_frame_ctx_funcs): Update.
5257 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5258 * dwarf2read.c: #include "gdbcore.h".
5259 (dwarf2_per_objfile): New members addr, dwo_files.
5260 (dwarf2_elf_names): Add entry for addr.
5261 (struct dwo_section_names): New type.
5262 (dwo_section_names): New static global.
5263 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5264 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5265 old debug_types_section member updated to use this.
5266 Rename member debug_types_section to info_or_types_section,
5267 all uses updated.
5268 (signatured_type): Rename member type_offset to type_offset_in_tu,
5269 all uses updated. New member type_offset_in_section.
5270 (struct dwo_sections): New type.
5271 (struct dwo_unit): New type.
5272 (struct dwo_file): New type.
5273 (die_reader_specs): New member dwo_file.
5274 (dwarf2_locate_sections): Watch for .debug_addr.
5275 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5276 (dwarf2_read_section): Get bfd of section from bfd's asection,
5277 instead of objfile.
5278 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5279 (create_signatured_type_table_from_index): Initialize
5280 sig_type->info_or_types_section.
5281 (dw2_get_file_names): Statement lists for type units with DWO files
5282 live in the DWO file.
5283 (create_debug_types_hash_table): New function.
5284 (create_all_type_units): Rewrite.
5285 (init_cu_die_reader): New arg dwo_file, all callers updated.
5286 (init_and_read_dies_worker): Get section from
5287 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5288 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5289 continue reading the CU/TU from there.
5290 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5291 updated. Get section from this_cu->info_or_types_section.
5292 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5293 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5294 DW_FORM_GNU_str_index.
5295 (hash_dwo_file, eq_dwo_file): New functions.
5296 (allocate_dwo_file_hash_table): New function.
5297 (hash_dwo_unit, eq_dwo_unit): New functions.
5298 (allocate_dwo_unit_table): New function.
5299 (dwarf2_locate_dwo_sections): New function.
5300 (struct create_dwo_info_table_data): New type.
5301 (create_debug_info_hash_table_reader): New function.
5302 (create_debug_info_hash_table): New function.
5303 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5304 (lookup_dwo_file): New function.
5305 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5306 (free_dwo_file, free_dwo_file_cleanup): New functions.
5307 (free_dwo_file_from_slot, free_dwo_files): New functions.
5308 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5309 (dwarf2_record_block_ranges): Ditto.
5310 (read_partial_die): Ditto.
5311 (process_enumeration_scope): Update to use type_offset_in_section.
5312 (read_full_die_1): New function.
5313 (read_full_die): Rewrite.
5314 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5315 DW_FORM_GNU_str_index.
5316 (read_addr_index_1, read_addr_index): New functions.
5317 (read_addr_index_from_leb128): New function.
5318 (struct dwarf2_read_addr_index_data): New type.
5319 (dwarf2_read_addr_index_reader): New function.
5320 (dwarf2_read_addr_index): New function.
5321 (read_str_index): New function.
5322 (leb128_size): New function.
5323 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5324 If processing a type unit from a DWO file, get the line section
5325 from the DWO file.
5326 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5327 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5328 DW_FORM_GNU_str_index.
5329 (lookup_die_type): Check whether section offset of type's die is
5330 known before looking it up. Remove assert. Condition can
5331 legimately happen for inter-cu type references.
5332 (dwarf_attr_name): Handle Fission attributes.
5333 (dwarf_form_name): Handle Fission forms.
5334 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5335 DW_FORM_GNU_str_index.
5336 (follow_die_sig): Update to use type_offset_in_section.
5337 (decode_locdesc): New case DW_OP_GNU_addr_index.
5338 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5339 DW_FORM_GNU_str_index.
5340 (cu_debug_loc_section): New function.
5341 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5342 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5343 Free DWO files if present.
5344 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5345
dee91e82
DE
5346 Refactor DIE reading.
5347 * dwarf2read.c (dwarf2_per_objfile): Replace members
5348 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5349 (die_reader_specs): New member "die_section". Temporarily make
5350 member "buffer" non-const, pending constifying all info_ptr uses.
5351 (die_reader_func_ftype): New typedef.
5352 (dw2_get_file_names_reader): New function.
5353 (dw2_get_file_names): Rewrite.
5354 (read_and_check_type_unit_head): Rename arg type_offset to
5355 type_offset_in_tu.
5356 (create_all_type_units): Improve debugging message.
5357 Improve dummy type unit check.
5358 (init_cu_die_reader): New arg "section". All callers updated.
5359 (init_and_read_dies_worker): New function.
5360 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5361 (init_cutu_and_read_dies_no_follow): New function.
5362 (init_cutu_and_read_dies_simple): New function.
5363 (process_psymtab_comp_unit_reader): New function.
5364 (process_psymtab_comp_unit): Delete args section,
5365 is_debug_types_section. Rewrite. All callers updated.
5366 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5367 All callers updated. Rewrite.
5368 (load_partial_comp_unit_reader): New function.
5369 (load_partial_comp_unit): Rewrite.
5370 (skip_children): New arg reader. Delete args buffer, cu.
5371 All callers updated.
5372 (skip_one_die): New arg reader. Delete args buffer, cu.
5373 All callers updated.
5374 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5375 All callers updated.
5376 (load_full_comp_unit_reader): New function.
5377 (load_full_comp_unit): Rewrite.
5378 (read_comp_unit): Delete.
5379 (read_die_and_children_1): Delete, contents moved ...
5380 (read_die_and_children): ... here.
5381 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5382 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5383 All callers updated.
5384 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5385 All callers updated.
5386 (find_partial_die): Rewrite load_all_dies support.
5387 (read_attribute_value): New arg reader. Delete args abfd, cu.
5388 All callers updated.
5389 (read_attribute): New arg reader. Delete args abfd, cu.
5390 All callers updated.
5391 (load_full_type_unit): Add assert.
5392 (read_signatured_type_reader): New function.
5393 (read_signatured_type): Rewrite.
5394 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5395 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5396 All callers updated. Set per_cu->cu = NULL after freeing it.
5397 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5398 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5399 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5400 (set_die_type): Update.
5401 (get_die_type_at_offset): Update.
5402 (read_file_scope): Call prepare_one_comp_unit.
5403 (read_type_unit_scope): Ditto.
5404 (prepare_one_comp_unit): Set producer if present.
5405
72d59e0d
SDJ
54062012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5407
5408 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5409 gettext function on `error'.
5410
0fefef59
DE
54112012-04-27 Doug Evans <dje@google.com>
5412
5413 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5414 is empty.
5415
28106bc2
SDJ
54162012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5417 Tom Tromey <tromey@redhat.com>
5418
5419 * breakpoint.c (struct breakpoint_objfile_data)
5420 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5421 <exception_probes>: New fields.
5422 (free_breakpoint_probes): New function.
5423 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5424 `_Unwind_DebugHook'.
5425 (create_exception_master_breakpoint): Likewise.
5426 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5427 * infrun.c: Including necessary header files for handling SystemTap
5428 probes.
5429 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5430 via SystemTap probes.
5431 (check_exception_resume): Remove `func' argument. Handle exception
5432 unwinding breakpoint set via a SystemTap probe.
5433 (insert_exception_resume_from_probe): New function.
5434
55aa24fb
SDJ
54352012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5436 Tom Tromey <tromey@redhat.com>
5437 Jan Kratochvil <jan.kratochvil@redhat.com>
5438
5439 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5440 (COMMON_OBS): Likewise.
5441 (HFILES_NO_SRCDIR): Add `probe'.
5442 * NEWS: Mention support for static and SystemTap probes.
5443 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5444 SystemTap probes' arguments parser.
5445 * arm-linux-tdep.c: Including headers needed to perform the parsing
5446 of SystemTap probes' arguments.
5447 (arm_stap_is_single_operand): New function.
5448 (arm_stap_parse_special_token): Likewise.
5449 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5450 probes' arguments parser.
5451 * ax-gdb.c (require_rvalue): Removing static declaration.
5452 (gen_expr): Likewise.
5453 * ax-gdb.h (gen_expr): Declaring function.
5454 (require_rvalue): Likewise.
5455 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5456 (bkpt_probe_breakpoint_ops): New variable.
5457 (momentary_breakpoint_from_master): Set the `probe' value.
5458 (add_location_to_breakpoint): Likewise.
5459 (break_command_1): Using proper breakpoint_ops according to the
5460 argument passed by the user in the command line.
5461 (bkpt_probe_insert_location): New function.
5462 (bkpt_probe_remove_location): Likewise.
5463 (bkpt_probe_create_sals_from_address): Likewise.
5464 (bkpt_probe_decode_linespec): Likewise.
5465 (tracepoint_probe_create_sals_from_address): Likewise.
5466 (tracepoint_probe_decode_linespec): Likewise.
5467 (tracepoint_probe_breakpoint_ops): New variable.
5468 (trace_command): Using proper breakpoint_ops according to the
5469 argument passed by the user in the command line.
5470 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5471 static probes on breakpoints and tracepoints.
5472 * breakpoint.h (struct bp_location) <probe>: New field.
5473 * cli-utils.c (skip_spaces_const): New function.
5474 (extract_arg): Likewise.
5475 * cli-utils.h (skip_spaces_const): Likewise.
5476 (extract_arg): Likewise.
5477 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5478 * configure.ac: Append `stap-probe.o' to be generated when ELF
5479 support is present.
5480 * configure: Regenerate.
5481 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5482 * elfread.c: Include `probe.h' and `arch-utils.h'.
5483 (probe_key): New variable.
5484 (elf_get_probes): New function.
5485 (elf_get_probe_argument_count): Likewise.
5486 (elf_evaluate_probe_argument): Likewise.
5487 (elf_compile_to_ax): Likewise.
5488 (elf_symfile_relocate_probe): Likewise.
5489 (stap_probe_key_free): Likewise.
5490 (elf_probe_fns): New variable.
5491 (elf_sym_fns): Add `sym_probe_fns' value.
5492 (elf_sym_fns_lazy_psyms): Likewise.
5493 (elf_sym_fns_gdb_index): Likewise.
5494 (_initialize_elfread): Initialize objfile cache for static
5495 probes.
5496 * gdb_vecs.h (struct probe): New forward declaration.
5497 (probe_p): New VEC declaration.
5498 * gdbarch.c: Regenerate.
5499 * gdbarch.h: Regenerate.
5500 * gdbarch.sh (stap_integer_prefix): New variable.
5501 (stap_integer_suffix): Likewise.
5502 (stap_register_prefix): Likewise.
5503 (stap_register_suffix): Likewise.
5504 (stap_register_indirection_prefix): Likewise.
5505 (stap_register_indirection_suffix): Likewise.
5506 (stap_gdb_register_prefix): Likewise.
5507 (stap_gdb_register_suffix): Likewise.
5508 (stap_is_single_operand): New function.
5509 (stap_parse_special_token): Likewise.
5510 (struct stap_parse_info): Forward declaration.
5511 * i386-tdep.c: Including headers needed to perform the parsing
5512 of SystemTap probes' arguments.
5513 (i386_stap_is_single_operand): New function.
5514 (i386_stap_parse_special_token): Likewise.
5515 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5516 probes' arguments parser.
5517 * i386-tdep.h (i386_stap_is_single_operand): New function.
5518 (i386_stap_parse_special_token): Likewise.
5519 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5520 * mipsread.c (ecoff_sym_fns): Likewise.
5521 * objfiles.c (objfile_relocate1): Support relocation for static
5522 probes.
5523 * parse.c (prefixify_expression): Remove static declaration.
5524 (initialize_expout): Likewise.
5525 (reallocate_expout): Likewise.
5526 * parser-defs.h (initialize_expout): Declare function.
5527 (reallocate_expout): Likewise.
5528 (prefixify_expression): Likewise.
5529 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5530 of SystemTap probes' arguments.
5531 (ppc_stap_is_single_operand): New function.
5532 (ppc_stap_parse_special_token): Likewise.
5533 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5534 probes' arguments parser.
5535 * probe.c: New file, for generic statically defined probe support.
5536 * probe.h: Likewise.
5537 * s390-tdep.c: Including headers needed to perform the parsing of
5538 SystemTap probes' arguments.
5539 (s390_stap_is_single_operand): New function.
5540 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5541 probes' arguments parser.
5542 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5543 * stap-probe.c: New file, for SystemTap probe support.
5544 * stap-probe.h: Likewise.
5545 * symfile.h: Include `gdb_vecs.h'.
5546 (struct sym_probe_fns): New struct.
5547 (struct sym_fns) <sym_probe_fns>: New field.
5548 * symtab.c (init_sal): Initialize `probe' field.
5549 * symtab.h (struct probe): Forward declaration.
5550 (struct symtab_and_line) <probe>: New field.
5551 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5552 locations.
5553 (stop_tracing): Likewise.
5554 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5555
22d2b532
SDJ
55562012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5557 Tom Tromey <tromey@redhat.com>
5558
5559 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5560 and to compile agent expressions.
5561 * infrun.c (siginfo_make_value): New argument `ignore'.
5562 (siginfo_funcs): New struct.
5563 (_initialize_infrun): New argument when calling
5564 `create_internalvar_type_lazy'.
5565 * thread.c (thread_id_make_value): New argument `ignore'.
5566 (thread_funcs): New struct.
5567 (_initialize_thread): New argument when calling
5568 `create_internalvar_type_lazy'.
5569 * tracepoint.c (sdata_make_value): New argument `ignore'.
5570 (sdata_funcs): New struct.
5571 (_initialize_tracepoint): New argument when calling
5572 `create_internalvar_type_lazy'.
5573 * value.c (make_value): New struct.
5574 (create_internalvar_type_lazy): New argument `data'.
5575 (compile_internalvar_to_ax): New function.
5576 (value_of_internalvar): Properly handling `make_value' case.
5577 (clear_internalvar): Likewise.
5578 (show_convenience): Adding `TRY_CATCH' block.
5579 * value.h (internalvar_make_value): Delete, replace by...
5580 (struct internalvar_funcs): ... this.
5581 (create_internalvar_type_lazy) <fun>: Delete argument.
5582 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5583 (compile_internalvar_to_ax): New function.
5584 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5585 (tlb_funcs): New struct.
5586 (_initialize_windows_tdep): New argument when calling
5587 `create_internalvar_type_lazy'.
5588
91da1414
MW
55892012-04-27 Mark Wielaard <mjw@redhat.com>
5590
5591 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5592 see whether it is an address or a constant offset from DW_AT_low_pc.
5593 (dwarf2_record_block_ranges): Likewise.
5594 (read_partial_die): Likewise.
5595
4ab9d8ec
MW
55962012-04-26 Mark Wielaard <mjw@redhat.com>
5597
5598 * MAINTAINERS (Write After Approval): Add myself to the list.
5599
a0911fd0
MR
56002012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5601
5602 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5603 (proc_prettyprint_signal): Likewise.
5604 (proc_prettyprint_faultset): Likewise.
5605 (proc_prettyprint_fault): Likewise.
5606 (proc_prettyprint_actionset): Likewise.
5607 (proc_prettyprint_flags): Move to new proc-flags.c section.
5608 (proc_prettyfprint_flags): New prototype.
5609 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5610 (proc_syscall, proc_cursig): Likewise.
5611 (proc_set_kill_on_last_close): Likewise.
5612 (proc_unset_kill_on_last_close): Likewise.
5613 (proc_set_watchpoint): Make static.
5614 (proc_delete_dead_threads): Likewise.
5615 (procfs_set_watchpoint): Likewise.
5616 (_initialize_procfs): Add prototype.
5617 * proc-events.c: Include proc-utils.h.
5618 (init_syscall_table): Make static.
5619 * proc-api.c (_initialize_proc_api): Add prototype.
5620 * proc-flags.c: Include proc-utils.h.
5621
9009e1ae
MR
56222012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5623
5624 * configure.ac: Add AC_ARG_PROGRAM.
5625 * configure: Regenerate.
5626
4fae6e18
JK
56272012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5628
5629 Fix DW_AT_lower_bound defaults for DWARF-4+.
5630 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5631 high. New variable low_default_is_valid. Implement DWARF-4+
5632 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5633 no default by the DWARF standard.
5634
14132e89 56352012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5636 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5637
5638 * infrun.c (handle_inferior_event): Move the check for return
5639 trampolines ahead of the check for function trampolines.
5640 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5641 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5642 (mips_str_mips16_ret_stub): Likewise.
5643 (mips_str_call_fp_stub): Likewise.
5644 (mips_str_call_stub): Likewise.
5645 (mips_str_fn_stub): Likewise.
5646 (mips_str_pic): Likewise.
5647 (mips_in_frame_stub): New function.
5648 (mips_unwind_pc): Return the return address rather than the PC
5649 if the PC of an intermediate frame is inside a call thunk.
5650 (mips_is_stub_suffix): New function.
5651 (mips_is_stub_mode): Likewise.
5652 (mips_get_mips16_fn_stub_pc): Likewise.
5653 (mips_skip_mips16_trampoline_code): Update to handle all the
5654 currently generated stub types. Don't recurse into __fn_stub
5655 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5656 Use cooked register accesses.
5657 (mips_in_return_stub): Reintroduce function.
5658 (mips_skip_trampoline_code): Traverse trampolines recursively.
5659 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5660
518f0db5 56612012-04-26 Joel Brobecker <brobecker@adacore.com>
5662
5663 GDB 7.4.1 released.
5664
3184d3f9
JL
56652012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5666
5667 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5668 * features/arm-with-m-vfp-d16.xml: New file. Describes
5669 Cortex-M with VFPv4-sp-d16 FPU register layout.
5670 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5671 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5672 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5673 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5674 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5675
b6201d44
DE
56762012-04-25 Doug Evans <dje@google.com>
5677
5678 * cli/cli-decode.c (print_doc_line): Use stream instead of
5679 current_uiout.
5680
4e2f8df6
SDJ
56812012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5682
5683 * features/arm-with-iwmmxt.c: Regenerate.
5684 * features/arm-with-m-fpa-layout.c: Likewise.
5685 * features/arm-with-m.c: Likewise.
5686 * features/arm-with-neon.c: Likewise.
5687 * features/arm-with-vfpv2.c: Likewise.
5688 * features/arm-with-vfpv3.c: Likewise.
5689 * features/mips-dsp-linux.c: Likewise.
5690 * features/mips-linux.c: Likewise.
5691 * features/mips64-dsp-linux.c: Likewise.
5692 * features/mips64-linux.c: Likewise.
5693 * features/s390-linux32.c: Likewise.
5694 * features/s390-linux32v1.c: Likewise.
5695 * features/s390-linux32v2.c: Likewise.
5696 * features/s390-linux64.c: Likewise.
5697 * features/s390-linux64v1.c: Likewise.
5698 * features/s390-linux64v2.c: Likewise.
5699 * features/s390x-linux64.c: Likewise.
5700 * features/s390x-linux64v1.c: Likewise.
5701 * features/s390x-linux64v2.c: Likewise.
5702 * features/tic6x-c62x-linux.c: Likewise.
5703 * features/tic6x-c62x.c: Likewise.
5704 * features/tic6x-c64x-linux.c: Likewise.
5705 * features/tic6x-c64x.c: Likewise.
5706 * features/tic6x-c64xp-linux.c: Likewise.
5707 * features/tic6x-c64xp.c: Likewise.
5708 * target-descriptions.c: Only generate `field_type' and `type'
5709 variables when needed.
5710
2def3e66
JB
57112012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5712
5713 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5714
a766d390
DE
57152012-04-25 Doug Evans <dje@google.com>
5716
5717 Initial pass at Go language support.
5718 * NEWS: Mention Go.
5719 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5720 go-valprint.c.
5721 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5722 (YYFILES): Add go-exp.c.
5723 (YYOBJ): Add go-exp.o.
5724 (local-maintainer-clean): Delete go-exp.c.
5725 * defs.h (enum language): Add language_go.
5726 * dwarf2read.c: #include "go-lang.h".
5727 (fixup_go_packaging): New function.
5728 (process_full_comp_unit): Call it when processing Go CUs.
5729 (dwarf2_physname): Add Go support.
5730 (read_file_scope): Handle missing language spec for GNU Go.
5731 (set_cu_language): Handle DW_LANG_Go.
5732 * go-exp.y: New file.
5733 * go-lang.h: New file.
5734 * go-lang.c: New file.
5735 * go-typeprint.c: New file.
5736 * go-valprint.c: New file.
5737 * symtab.c: #include "go-lang.h".
5738 (symbol_set_language): Handle language_go.
5739 (symbol_find_demangled_name, symbol_set_names): Ditto.
5740 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5741
4e2af517
JM
57422012-04-24 Jim Meyering <meyering@redhat.com>
5743
5744 avoid a few strncpy-induced buffer overruns
5745 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5746 fname and psargs before trying to concatenate.
5747 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5748 "name" before applying strchr.
5749
b77b7f52
SCR
57502012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5751
5752 * CONTRIBUTE: Use unified diff instead of context diff when
5753 generating patches.
5754
6321c22a
MR
57552012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5756
5757 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5758 code. Handle JR.HB correctly.
5759
742c84f6
MR
57602012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5761
5762 * mips-tdep.c
5763 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5764 with the other MIPS16 helpers.
5765
7fc7e0c3
SDJ
57662012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5767
5768 * observer.sh: Conditionally declare `args', thus cleaning up
5769 unused instances of this variable.
5770
20388dd6
YQ
57712012-04-24 Yao Qi <yao@codesourcery.com>
5772
5773 Revert this patch to allow breakpoint always-inserted
5774 in record target.
5775 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
5776 * breakpoint.c: Include record.h.
5777 (breakpoints_always_inserted_mode): Return false when the record
5778 target is in use.
20388dd6
YQ
5779
5780 * breakpoint.c (iterate_over_bp_locations): New.
5781 * breakpoint.h: Declare.
5782 New typedef walk_bp_location_callback.
5783 * record.c (record_open): Call record_init_record_breakpoints.
5784 (record_sync_record_breakpoints): New.
5785 (record_init_record_breakpoints): New.
5786 * NEWS: Mention supporting breakpoint always-inserted mode in
5787 record target.
5788
4734f50e
MK
57892012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5790
5791 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5792 any thread.
5793
c326b90e
YQ
57942012-04-24 Yao Qi <yao@codesourcery.com>
5795
5796 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5797 (is_catchpoint): ... it.
5798 (print_one_breakpoint_location): Caller update.
5799 * breakpoint.h: Update declaration.
5800
d8fb5a1e
DM
58012012-04-23 David S. Miller <davem@davemloft.net>
5802
5803 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5804
34431a2a
TT
58052012-04-23 Tom Tromey <tromey@redhat.com>
5806
5807 * buildsym.c (add_free_pendings): Remove.
5808 * buildsym.h (add_free_pendings): Remove.
5809
4568ecf9
DE
58102012-04-23 Doug Evans <dje@google.com>
5811
5812 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5813 attr.u.unsnd instead of attr.u.addr.
5814 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5815 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5816 DW_FORM_ref_udata.
5817 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5818 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5819 DW_FORM_ref_udata.
5820 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5821
dca9aa3a
MR
58222012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5823
5824 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5825 (mips_o32_return_value): Likewise.
5826 (mips_o64_return_value): Likewise.
5827
c8ea1972
PH
58282012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5829
5830 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
5831 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5832 their treatment in eval.c.
c8ea1972 5833
8d1b3521
DM
58342012-04-21 David S. Miller <davem@davemloft.net>
5835
5836 * sparc-tdep.c (X_DISP10): Define.
5837 (sparc_analyze_control_transfer): Handle compare-and-branch.
5838
03145bf4
JL
58392012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5840
5841 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5842 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5843
004159a2 58442012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 5845 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
5846
5847 * mips-tdep.c (mips_float_register_p): New function.
5848 (mips_convert_register_float_case_p): Use mips_float_register_p.
5849 (mips_register_type): Likewise.
5850 (mips_print_register): Likewise.
5851 (print_gp_register_row): Likewise.
5852 (mips_print_registers_info): Likewise.
5853
7f0e6aae
MR
58542012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5855
5856 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5857 of mips16 symbols.
5858
bc17beea
AP
58592012-04-20 Andrew Pinski <apinski@cavium.com>
5860
5861 * MAINTAINERS (Write After Approval): Add myself to the list.
5862
1730a5a5
SDJ
58632012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5864
5865 * MAINTAINERS: Update my e-mail address.
5866
38ea300a
PA
58672012-04-20 Pedro Alves <palves@redhat.com>
5868
5869 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5870 $srcdir.
5871 * configure: Regenerate.
5872
111dfaae
SDJ
58732012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5874
5875 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5876 declaration.
5877 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5878
4fb2c64a
JK
58792012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5880
5881 Fix compilation compatibility with python-2.4
5882 * python/py-type.c (convert_field): Cast ADDRSTRING for
5883 PyObject_SetAttrString as non-const. New comment.
5884
6328eb38
TT
58852012-04-19 Tom Tromey <tromey@redhat.com>
5886
5887 * top.c (quit_target): Use all_cleanups.
5888 * main.c (captured_command_loop): Use all_cleanups.
5889 * exceptions.c (throw_exception): Use all_cleanups.
5890
c971b7fa
PA
58912012-04-19 Pedro Alves <palves@redhat.com>
5892
5893 * Makefile.in (GNULIB_BUILDDIR): New.
5894 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5895 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5896 (CLEANDIRS). Remove gnulib/import.
5897 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5898 (all-lib): Ditto.
5899 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5900 (gnulib/import/Makefile): Replace gnulib/import with
5901 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5902 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5903 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5904 acx_configure_dir.m4.
5905 * acinclude.m4: Include acx_configure_dir.m4.
5906 * acx_configure_dir.m4: New file.
5907 * aclocal.m4: Regenerate.
a09130f9
PA
5908 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5909 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5910 (GNULIB): New variable.
5911 (GNULIB_STDINT_H): Adjust.
5912 (AC_OUTPUT): Don't output gnulib/Makefile.
5913 * gdb/defs.h: Include build-gnulib/config.h.
5914 * aclocal.m4: Regenerate.
5915 * config.in: Regenerate.
5916 * configure: Regenerate.
5917
5918 * gnulib/Makefile.in: New file.
5919 * gnulib/configure.ac: New file.
5920 * gnulib/aclocal.m4: New file.
5921 * gnulib/config.in: New file.
5922 * gnulib/configure: New file.
c971b7fa
PA
5923 * gnulib/: Re-run gnulib-tool to adjust.
5924
b10faa68
DE
59252012-04-19 Doug Evans <dje@google.com>
5926
5927 * cleanups.h (struct cleanup): Move to cleanups.c.
5928 (make_cleanup_dtor_ftype): New typedef.
5929 (make_cleanup_dtor): Use it.
5930 (ALL_CLEANUPS): Replace with ...
5931 (all_cleanups): ... this. Declare. All uses updated.
5932 * cleanups.c: #include "gdb_assert.h".
5933 (sentinel_cleanup): New static global.
5934 (SENTINEL_CLEANUP): Define.
5935 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5936 (make_my_cleanup2): Assert result is non-NULL.
5937 (all_cleanups): New function.
5938 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5939 of NULL.
5940
d8c267cc
PA
59412012-04-19 Pedro Alves <palves@redhat.com>
5942
5943 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5944 Adjust paths to gnulib imported files.
5945
809277f8
PA
59462012-04-19 Pedro Alves <palves@redhat.com>
5947
5948 * gnulib/: Move whole directory ...
5949 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5950 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5951 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5952 (aclocal_m4_deps): Adjust.
5953 * aclocal.m4: Regenerate.
5954 * configure: Regenerate.
5955 * configure.ac: Adjust AC_OUTPUT output.
5956
aad9eab9
YQ
59572012-04-19 Yao Qi <yao@codesourcery.com>
5958
5959 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5960 (vec.o): New rule.
5961 * vec.c: Move it ...
5962 * common/vec.c: ... here.
5963 * vec.h: Move it ...
5964 * common/vec.h: ... here.
5965
48fe4669
YQ
59662012-04-19 Yao Qi <yao@codesourcery.com>
5967
5968 * gdb-code-style.el: New.
5969
770d76d7
PA
59702012-04-18 Pedro Alves <palves@redhat.com>
5971
5972 Update gnulib from latest git.
5973 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5974
5975 * gnulib/Makefile.am: Update.
5976 * gnulib/dummy.c: Update.
5977 * gnulib/extra/arg-nonnull.h: Update.
5978 * gnulib/extra/c++defs.h: Update.
5979 * gnulib/extra/update-copyright: Update.
5980 * gnulib/extra/warn-on-use.h: Update.
5981 * gnulib/inttypes.in.h: Update.
5982 * gnulib/m4/00gnulib.m4: Update.
5983 * gnulib/m4/extensions.m4: Update.
5984 * gnulib/m4/gnulib-cache.m4: Update.
5985 * gnulib/m4/gnulib-common.m4: Update.
5986 * gnulib/m4/gnulib-comp.m4: Update.
5987 * gnulib/m4/gnulib-tool.m4: Update.
5988 * gnulib/m4/include_next.m4: Update.
5989 * gnulib/m4/inttypes-pri.m4: Update.
5990 * gnulib/m4/inttypes.m4: Update.
5991 * gnulib/m4/longlong.m4: Update.
5992 * gnulib/m4/memchr.m4: Update.
5993 * gnulib/m4/memmem.m4: Update.
5994 * gnulib/m4/mmap-anon.m4: Update.
5995 * gnulib/m4/multiarch.m4: Update.
5996 * gnulib/m4/onceonly.m4: Update.
5997 * gnulib/m4/stddef_h.m4: Update.
5998 * gnulib/m4/stdint.m4: Update.
5999 * gnulib/m4/string_h.m4: Update.
6000 * gnulib/m4/warn-on-use.m4: Update.
6001 * gnulib/m4/wchar_h.m4: Update.
6002 * gnulib/m4/wchar_t.m4: Update.
6003 * gnulib/m4/wint_t.m4: Update.
6004 * gnulib/memchr.c: Update.
6005 * gnulib/memmem.c: Update.
6006 * gnulib/stddef.in.h: Update.
6007 * gnulib/stdint.in.h: Update.
6008 * gnulib/str-two-way.h: Update.
6009 * gnulib/string.in.h: Update.
6010 * gnulib/wchar.in.h: Update.
6011
6012 * gnulib/extra/arg-nonnull.h: Delete.
6013 * gnulib/extra/c++defs.h: Delete.
6014 * gnulib/extra/warn-on-use.h: Delete.
6015 * gnulib/m4/wchar_h.m4: Delete.
6016 * gnulib/m4/wint_t.m4: Delete.
6017 * gnulib/wchar.in.h: Delete.
6018
6019 * gnulib/extra/snippets/arg-nonnull.h: New.
6020 * gnulib/extra/snippets/c++defs.h: New.
6021 * gnulib/extra/snippets/warn-on-use.h: New.
6022
6023 * aclocal.m4: Regenerate.
6024 * config.in: Regenerate.
6025 * configure: Regenerate.
6026 * gnulib/Makefile.in: Regenerate.
6027
174e088e
PA
60282012-04-18 Pedro Alves <palves@redhat.com>
6029
6030 Reimport the update-copyright module from gnulib
6031 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6032
6033 * configure: Regenerate.
6034 * gnulib/Makefile.am: Update.
6035 * gnulib/Makefile.in: Regenerate.
6036 * gnulib/extra/update-copyright: Update.
6037 * gnulib/m4/gnulib-cache.m4: Update.
6038 * gnulib/m4/gnulib-comp.m4: Update.
6039
7f533142
JB
60402012-04-18 Tristan Gingold <gingold@adacore.com>
6041
6042 * configure.ac (aix): Put -lpthread into libs.
6043 * configure: Regenerate.
6044
001822aa
TT
60452012-04-18 Tom Tromey <tromey@redhat.com>
6046
6047 * linespec.c (convert_linespec_to_sals): Don't use
6048 SYMBOL_OBJ_SECTION.
6049 (compare_msymbols): Arguments are minsym_and_objfile, not
6050 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6051
db026a31
PA
60522012-04-18 Pedro Alves <palves@redhat.com>
6053
6054 Revert gnulib/ part of:
6055 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6056 Copyright year update in most files (performed by copyright.sh).
6057
12df843f
JK
60582012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6059
6060 Fix 64-bit constants on 32-bit hosts.
6061 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6062 from unsigned long to ULONGEST.
6063 (read_signed_leb128): Change declaration return type from long to
6064 LONGEST.
6065 (dwarf2_const_value_attr): Change declaration parameter value from long
6066 to LONGEST.
6067 (dwarf2_compute_name): Change variable value from long to LONGEST.
6068 (read_unsigned_leb128): Change return type, variable result and some
6069 casts from unsigned long to ULONGEST.
6070 (read_signed_leb128): Change return type, variable result and some
6071 casts from long to LONGEST.
6072 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6073 value from long to LONGEST.
6074 (dwarf2_const_value): Change variable value from long to LONGEST.
6075 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6076 plongest and hex_string.
6077 * symtab.h (struct general_symbol_info): Change ivalue from long to
6078 LONGEST, remove the comment.
6079 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6080 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6081
14e75d8e
JK
60822012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6083
6084 PR symtab/7259:
6085 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6086 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6087 (ada_discrete_type_low_bound): Fix function comment. Use
6088 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6089 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6090 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6091 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6092 Use TYPE_FIELD_ENUMVAL.
6093 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6094 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6095 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6096 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6097 TYPE_CODE_ENUM.
6098 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6099 * dwarf2read.c (process_enumeration_scope): Likewise.
6100 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6101 field.bitpos.
6102 (class StructMainTypePrettyPrinter): Support also
6103 FIELD_LOC_KIND_ENUMVAL.
6104 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6105 TYPE_CODE_ENUM.
6106 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6107 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6108 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6109 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6110 field enumval.
6111 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6112 accommodate enumval.
6113 (struct call_site): Adjust loc_kind to accommodate enumval.
6114 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6115 (TYPE_FIELD_ENUMVAL): New macros.
6116 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6117 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6118 TYPE_CODE_ENUM.
6119 * p-typeprint.c (pascal_type_print_base): Likewise.
6120 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6121 enumval.
6122 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6123 * python/py-type.c (convert_field): New variable addrstring. Use
6124 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6125 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6126 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6127 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6128 TYPE_CODE_ENUM.
6129 * valprint.c (generic_val_print): Likewise.
6130
380bca97
DE
61312012-04-17 Doug Evans <dje@google.com>
6132
dcc07052
DE
6133 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6134
380bca97
DE
6135 * dwarf2read.c: Whitespace fixes.
6136 (lookup_signatured_type): Tweak comment.
6137 (get_die_type_at_offset): Fix comment.
6138
ec92004f
JB
61392012-04-17 Joel Brobecker <brobecker@adacore.com>
6140
6141 * xcoffread.c (xcoff_secnum_to_sections): New function.
6142 (secnum_to_section, secnum_to_bfd_section): Reimplement
6143 using xcoff_secnum_to_sections. Rename "secnum" parameter
6144 into "n_scnum".
6145 (RECORD_MINIMAL_SYMBOL): Delete.
6146 (record_minimal_symbol): New function.
6147 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6148 by call to record_minimal_symbol and set misc_func_recorded
6149 to 1. Set last_csect_sec to the XCOFF section index instead
6150 of GDB's section_offset index. Update calls to
6151 prim_record_minimal_symbol_and_info to pass the BFD section
6152 as well.
6153
40301fb7
JB
61542012-04-17 Joel Brobecker <brobecker@adacore.com>
6155
6156 * xcoffread.c (read_xcoff_symtab): Delete variables
6157 last_csect_val and last_csect_sec and associated code.
6158
e0088cfd
DE
61592012-04-17 Doug Evans <dje@google.com>
6160
58d5e2c3
DE
6161 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6162 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6163 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6164 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6165
c27f5738
DE
6166 * cleanups.h: New file.
6167 * cleanups.c: New file.
6168 * Makefile.in (SFILES): Add cleanups.c.
6169 (HFILES_NO_SRCDIR): Add cleanups.h.
6170 (COMMON_OBS): Add cleanups.o.
6171 * defs.h (struct cleanup): Moved to cleanups.h.
6172 (do_cleanups,do_final_cleanups): Ditto.
6173 (discard_cleanups,discard_final_cleanups): Ditto
6174 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6175 (save_cleanups,save_final_cleanups): Ditto.
6176 (restore_cleanups,restore_final_cleanups): Ditto.
6177 (null_cleanup): Ditto.
6178 (make_my_cleanup,make_my_cleanup2): Ditto.
6179 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6180 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6181 (do_cleanups,do_final_cleanups): Ditto.
6182 (discard_cleanups,discard_final_cleanups): Ditto
6183 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6184 (save_cleanups,save_final_cleanups): Ditto.
6185 (restore_cleanups,restore_final_cleanups): Ditto.
6186 (null_cleanup): Ditto.
6187 (make_my_cleanup,make_my_cleanup2): Ditto.
6188 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6189
e0088cfd
DE
6190 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6191 make_my_cleanup.
6192 (make_cleanup_dyn_string_delete): Ditto.
6193 (make_cleanup_ui_file_delete): Ditto.
6194 (make_cleanup_ui_out_redirect_pop): Ditto.
6195 (make_cleanup_free_section_addr_info): Ditto.
6196 (make_cleanup_restore_integer): Ditto.
6197 (make_cleanup_unpush_target): Ditto.
6198 (make_cleanup_value_free_to_mark): Ditto.
6199 (make_cleanup_value_free): Ditto.
6200 (make_cleanup_free_so): Ditto.
6201
4dc84fd1
JK
62022012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6203
6204 New option "set debug auto-load".
6205 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6206 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6207 (auto_load_safe_path_vec_update)
6208 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6209 if DEBUG_AUTO_LOAD.
6210 (file_is_auto_load_safe): New parameters debug_fmt and ....
6211 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6212 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6213 caller by explanatory string.
6214 (_initialize_auto_load): Register "set debug auto-load".
6215 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6216 and ....
6217 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6218 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6219 by explanatory string.
6220 * main.c (captured_main): Likewise.
6221 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6222 (source_section_scripts): Likewise.
6223
bccbefd2
JK
62242012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6225
6226 New option "set auto-load safe-path".
6227 * NEWS: New commands "set auto-load safe-path"
6228 and "show auto-load safe-path".
6229 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6230 (auto_load_safe_path, auto_load_safe_path_vec)
6231 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6232 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6233 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6234 (source_gdb_script_for_objfile): New variable is_safe. Call
6235 file_is_auto_load_safe. Return if it is not.
6236 (struct loaded_script): New field loaded.
6237 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6238 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6239 output "Missing" to "No".
6240 (_initialize_auto_load): New variable cmd. Initialize
6241 auto_load_safe_path. Register "set auto-load safe-path",
6242 "show auto-load safe-path" and "add-auto-load-safe-path".
6243 * auto-load.h (maybe_add_script): Add parameter loaded.
6244 (file_is_auto_load_safe): New declaration.
6245 * config.in: Regenerate.
6246 * configure: Regenerate.
6247 * configure.ac: New parameters --with-auto-load-safe-path
6248 and --without-auto-load-safe-path.
6249 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6250 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6251 * main.c (captured_main): Check file_is_auto_load_safe for
6252 LOCAL_GDBINIT.
6253 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6254 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6255 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6256 not.
6257
bf88dd68
JK
62582012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6259
6260 auto-load: Implementation.
6261 * NEWS: New descriptions for "info auto-load",
6262 "info auto-load gdb-scripts", "info auto-load python-scripts",
6263 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6264 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6265 and "show auto-load-scripts". New description for "set auto-load",
6266 "show auto-load", "set auto-load gdb-scripts",
6267 "show auto-load gdb-scripts", "set auto-load python-scripts",
6268 "show auto-load python-scripts", "set auto-load local-gdbinit",
6269 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6270 "show auto-load libthread-db".
6271 * auto-load.c: Remove include python/python-internal.h. Add includes
6272 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6273 cli/cli-setshow.h.
6274 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6275 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6276 (gdbpy_global_auto_load): Rename to ...
6277 (global_auto_load): ... here.
6278 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6279 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6280 (script_language_gdb, source_gdb_script_for_objfile): New.
6281 (struct loaded_script): New field language.
6282 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6283 LANGUAGE.
6284 (maybe_add_script): Add parameter language. Drop redundant
6285 entry.full_path initialization. Initialize entry.language and
6286 (*slot)->language.
6287 (auto_load_objfile_script): Change parameter suffix to language.
6288 Remove the call of maybe_add_script.
6289 Call language->source_script_for_objfile.
6290 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6291 New.
6292 (collect_matching_scripts): Adjust it for
6293 struct collect_matching_scripts_data.
6294 (auto_load_info_scripts_pattern_nl): New variable.
6295 (info_auto_load_scripts): Rename to ...
6296 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6297 for struct collect_matching_scripts_data.
6298 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6299 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6300 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6301 (auto_load_info_cmdlist_get): New.
6302 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6303 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6304 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6305 "info auto-load local-gdbinit".
6306 * auto-load.h (struct script_language): New.
6307 (gdbpy_global_auto_load): Rename to ...
6308 (global_auto_load): ... here.
6309 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6310 (auto_load_local_gdbinit_loaded): New declarations.
6311 (maybe_add_script): New parameter language.
6312 (auto_load_objfile_script): Change parameter suffix to language.
6313 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6314 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6315 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6316 declarations.
6317 * linux-thread-db.c: Include auto-load.h and ctype.h.
6318 (auto_load_thread_db, show_auto_load_thread_db): New.
6319 (struct thread_db_info): New field filename.
6320 (delete_thread_db_info): Call xfree for FILENAME.
6321 (try_thread_db_load): Initialize FILENAME.
6322 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6323 if !AUTO_LOAD_THREAD_DB.
6324 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6325 (_initialize_thread_db): Install auto_load_thread_db
6326 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6327 as "info auto-load libthread-db".
6328 * main.c (captured_main): Rename gdbpy_global_auto_load to
6329 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6330 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6331 (print_gdb_help): Extend the help for 'local init file'.
6332 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6333 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6334 (auto_load_scripts): Rename to ...
6335 (auto_load_python_scripts): ... here, update the comment.
6336 (gdbpy_load_auto_script_for_objfile): New declaration.
6337 (show_auto_load_python_scripts, script_language_python)
6338 (gdbpy_load_auto_script_for_objfile): New.
6339 (source_section_scripts): Refactor the code.
6340 (load_auto_scripts_for_objfile): Rename to ...
6341 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6342 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6343 (info_auto_load_python_scripts): New.
6344 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6345 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6346 Register "set auto-load-scripts" as its deprecated alias. Register
6347 "info auto-load python-scripts". Register "info auto-load-scripts" as
6348 its deprecated alias.
6349 (load_auto_scripts_for_objfile): Rename to ...
6350 (gdbpy_load_auto_scripts_for_objfile): ... here.
6351 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6352 (gdbpy_load_auto_scripts_for_objfile): ... here.
6353
e2207b9a
JK
63542012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6355
6356 auto-load: Move files.
6357 * Makefile.in (SFILES): Add auto-load.c.
6358 (HFILES_NO_SRCDIR): Add auto-load.h.
6359 (COMMON_OBS): Add auto-load.o.
6360 (distclean): Change .gdbinit for gdb-gdb.gdb.
6361 * auto-load.c: New file, with parts from python/py-auto-load.c.
6362 * auto-load.h: New file, with parts from python/python.h.
6363 * configure: Regenerate.
6364 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6365 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6366 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6367 * main.c: Include auto-load.h.
6368 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6369 command.h, observer.h and progspace.h to auto-load.c. Add include
6370 auto-load.h.
6371 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6372 (struct loaded_script, auto_load_pspace_data)
6373 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6374 (hash_loaded_script_entry, eq_loaded_script_entry)
6375 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6376 (maybe_add_script): Move to auto-load.c.
6377 (source_section_scripts): Change maybe_add_script parameters passing,
6378 use script_not_found_warning_print.
6379 (clear_section_scripts, auto_load_objfile_script)
6380 (auto_load_new_objfile, loaded_script_ptr)
6381 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6382 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6383 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6384 auto_load_new_objfile and info_auto_load_scripts initizations to
6385 auto-load.c.
6386 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6387
e4ab2fad
JK
63882012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6389
6390 Code cleanup.
6391 * charset.c (find_charset_names): Remove variables ix and elt.
6392 Use free_char_ptr_vec.
6393 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6394 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6395 debugdir_end. New variable debugdir_len.
6396 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6397 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6398 declarations.
6399 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6400 and elt. Use free_char_ptr_vec.
6401 * source.c (add_path): Remove variables argv, arg and argv_index.
6402 New variables dir_vec, back_to, ix and name.
6403 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6404 make_cleanup_freeargv. Remove variable separator. Simplify the code
6405 no longer expecting DIRNAME_SEPARATOR.
6406 (openp): Remove variable p, p1 and len. New variables dir_vec,
6407 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6408 no longer expecting DIRNAME_SEPARATOR.
6409 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6410 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6411 debugdir_end.
6412 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6413 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6414 (dirnames_to_char_ptr_vec): New functions.
6415
5ee4ed9f
JK
64162012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6417
6418 Code cleanup.
6419 * source.c (add_path): Remove always true conditional 'p == 0' and
6420 unindent its code block.
6421
f41f5e61
PA
64222012-04-17 Pedro Alves <palves@redhat.com>
6423
6424 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6425 (FIELD_BITPOS_LVAL): ... this.
6426 (FIELD_BITPOS): New.
6427 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6428 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6429 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6430 SET_FIELD_BITPOS.
6431 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6432 SET_FIELD_BITPOS.
6433 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6434 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6435 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6436 SET_FIELD_BITPOS.
6437
945b3a32
JK
64382012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6439
6440 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6441 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6442 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6443 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6444 * jv-lang.c (java_link_class_type): Likewise, once.
6445 * stabsread.c (read_enum_type): Likewise.
6446
42476b70
YQ
64472012-04-16 Yao Qi <yao@codesourcery.com>
6448
6449 * common/agent.c (agent_run_command): Add one more parameter `len'.
6450 Update callers.
6451 * common/agent.h: Update declaration.
6452 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6453 Update.
6454 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6455
8264ba82
AG
64562012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6457
6458 PR mi/13393
6459 * value.c (value_actual_type): New function.
6460 * value.h (value_actual_type): New declaration.
6461 * varobj.c (update_type_if_necessary): New function.
6462 (varobj_create): Call value_actual_type instead of
6463 value_type.
6464 (install_dynamic_child): distinct changed and type changed MI variable
6465 objects.
6466 (update_dynamic_varobj_children): Updated for install_dynamic_child
6467 change. All callers updated.
a09130f9 6468 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6469 the value changed and RTTI is used to determine the type.
6470 (create_child_with_value): Call value_actual_type instead of
6471 value_type.
a09130f9 6472 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6473 specify whether the given value should be casted to enclosing type.
6474 All callers updated.
6475
55a8c076
YQ
64762012-04-14 Yao Qi <yao@codesourcery.com>
6477
6478 Import gnulib module inttypes from git
6479 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6480 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6481 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6482 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6483 * aclocal.m4, config.in, configure: Regenerated.
6484 * gnulib/Makefile.am: Update.
6485 * gnulib/Makefile.in: Update.
6486 * gnulib/m4/gnulib-cache.m4: Update.
6487 * gnulib/m4/gnulib-comp.m4: Update.
6488 * gnulib/inttypes.in.h: New.
6489 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6490 * gnulib/m4/inttypes.m4: New.
55a8c076 6491
ca7781d2
LM
64922012-04-13 Luis Machado <lgustavo@codesourcery.com>
6493
6494 * infrun.c (resume): Update PC address to the real PC after
6495 preparing to do displaced stepping.
6496
e319fa28
DE
64972012-04-12 Doug Evans <dje@google.com>
6498
6499 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6500 All callers updated.
6501
15add3f5
MK
65022012-04-12 Mark Kettenis <kettenis@gnu.org>
6503
6504 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6505
52dc124a
DE
65062012-04-12 Doug Evans <dje@google.com>
6507
0e50663e
DE
6508 * dwarf2read.c (create_all_type_units): Renamed from
6509 create_debug_types_hash_table. All callers updated.
6510
52dc124a
DE
6511 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6512 local type_sig to sig_type, type_offset to type_offset_in_tu.
6513 (hash_signatured_type): Renamed from hash_type_signature,
6514 all callers updated.
6515 (eq_signatured_type): Renamed from eq_type_signature,
6516 all callers updated.
6517 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6518 (process_enumeration_scope): Ditto.
6519 (lookup_signatured_type_at_offset): Ditto.
6520 (load_full_type_unit, read_signatured_type): Ditto.
6521
248fd3bf
YQ
65222012-04-12 Yao Qi <yao@codesourcery.com>
6523
6524 * remote.c (async_remote_interrupt): Correct function name in
6525 debug message.
6526 (async_remote_interrupt_twice): Ditto.
6527
bc3aa6c3
DE
65282012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6529
6530 * source.c (find_and_open_source): Consistently pass resulting
6531 full path through xfullpath.
6532
9e529e1d
JK
65332012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6534
6535 Provide more specific displaced-stepping memory error message.
6536 * infrun.c (displaced_step_prepare): New variable status. Call
6537 target_read_memory instead of read_memory, provide more specific
6538 error message.
6539
82e0cec1
TG
65402012-04-11 Tristan Gingold <gingold@adacore.com>
6541
6542 PR gdb/13901
6543 * darwin-nat.c (darwin_execvp): Revert previous patch.
6544
d987a266
TG
65452012-04-11 Tristan Gingold <gingold@adacore.com>
6546
6547 PR gdb/13901
6548 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6549 in case of change.
6550
016b7430
TG
65512012-04-11 Tristan Gingold <gingold@adacore.com>
6552
6553 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6554 warning.
6555
06fc020f
SCR
65562012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6557
6558 New command 'explore' which helps explore values and types in
6559 scope.
6560 * NEWS: Add an entry about the new 'explore' command.
6561 * data-directory/Makefile.in: Add gdb/command/explore.py
6562 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6563 command using the GDB Python API.
06fc020f 6564
de0919f8 65652012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6566
6567 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6568 extension in jump target calculation.
6569
de0919f8 65702012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6571
6572 * mips-tdep.c (mips32_next_pc): Handle JALX.
6573
2f26ef89
YQ
65742012-04-10 Yao Qi <yao@codesourcery.com>
6575
6576 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6577
2e505b66
YQ
65782012-04-10 Yao Qi <yao@codesourcery.com>
6579
6580 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6581 and gnulib/m4/gnulib-tool.m4.
6582
0d99eb77
DE
65832012-04-10 Doug Evans <dje@google.com>
6584
6585 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6586 (load_partial_dies): Clarify comment.
6587 (find_partial_die): Support rereading type units.
6588 Clarify CU handling, if we know offset is in CU, don't search for the
6589 containing CU. Add comment regarding memory waste.
6590
9a82b8ff
L
65912012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6592
6593 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6594 i386/x32-avx and i386/x32-avx-linux.
6595 (i386/x32-expedite): New.
6596 (i386/x32-linux-expedite): Likewise.
6597 (i386/x32-avx-expedite): Likewise.
6598 (i386/x32-avx-linux-expedite): Likewise.
6599 ($(outdir)/i386/x32.dat): Likewise.
6600 ($(outdir)/i386/x32-linux.dat): Likewise.
6601 ($(outdir)/i386/x32-avx.dat): Likewise.
6602 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6603
6604 * features/i386/x32-avx-linux.xml: New file.
6605 * features/i386/x32-avx.xml: Likewise.
6606 * features/i386/x32-core.xml: Likewise.
6607 * features/i386/x32-linux.xml: Likewise.
6608 * features/i386/x32.xml: Likewise.
6609
6610 * features/i386/x32-avx-linux.c: New. Generated.
6611 * features/i386/x32-avx.c: Likewise.
6612 * features/i386/x32-linux.c: Likewise.
6613 * features/i386/x32.c: Likewise.
6614 * regformats/i386/x32-avx-linux.dat: Likewise.
6615 * regformats/i386/x32-avx.dat: Likewise.
6616 * regformats/i386/x32-linux.dat: Likewise.
6617 * regformats/i386/x32.dat: Likewise.
6618
ee41036f
TG
66192012-04-10 Tristan Gingold <gingold@adacore.com>
6620
6621 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6622 code to kill the inferior.
6623
a7aa5b8a
MK
66242012-04-09 Mark Kettenis <kettenis@gnu.org>
6625
6626 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6627 defines.
6628 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6629 defines.
a09130f9 6630 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6631 (yyvsp): New defines.
6632 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6633 defines.
6634 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6635 defines.
6636 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6637 defines.
6638 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6639 defines.
6640 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6641 defines.
6642
fb57d452
MK
66432012-04-09 Mark Kettenis <kettenis@gnu.org>
6644
a09130f9 6645 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6646 (sparc64_store_arguments): Fix coding style.
6647
cdc7b32f
MK
66482012-04-07 Mark Kettenis <kettenis@gnu.org>
6649
6650 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6651 complex floats, adjust some related comments and tighten a related
6652 assertion.
6653 (sparc64_extract_return_value): Handle complex floats.
6654
7adf1e79
DE
66552012-04-07 Doug Evans <dje@google.com>
6656
6657 * dwarf2read.c (load_partial_dies): Change condition to assert.
6658
50f1ae7b
DE
66592012-04-06 Doug Evans <dje@google.com>
6660
6661 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6662 "mov %rsp,%rbp".
6663
55fa75c3
KB
66642012-04-05 Kevin Buettner <kevinb@redhat.com>
6665
6666 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6667 fencepost error.
6668 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6669 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6670 architecture.
6671
40e084e1
KS
66722012-04-05 Keith Seitz <keiths@redhat.com>
6673
6674 * linespec.c (decode_compound): Remove.
6675 (enum offset_relative_sign): New enum.
6676 (struct line_offset): New struct.
6677 (struct linespec): New struct.
6678 (struct linespec_state): Move file_symtabs,
6679 user_filename, and user_function into struct linespec.
6680 Make result an anonymous struct holding vectors of
6681 symbolp and minsym_and_objfile_d.
6682 Add language member.
6683 (enum ls_token_type): New enum.
6684 (linespec_keywords): New array.
6685 (struct ls_token): New struct.
6686 (struct ls_parser): New struct.
6687 (linespec_lexer_lex_number): New function.
6688 (linespec_lexer_lex_keyword): New function.
6689 (is_ada_operator): New function.
6690 (skip_quote_char): New function.
6691 (copy_token_string): New function.
6692 (is_closing_quote_enclosed): New function.
6693 (find_parameter_list_end): New function.
6694 (linespec_lexer_lex_string): New function.
6695 (linespec_lexer_lex_one): New function.
6696 (linespec_lexer_consume_token): New function.
6697 (linespec_lexer_peek_token): New function.
6698 (cplusplus_error): Remove unused function.
6699 (find_methods): Update comment.
6700 (find_toplevel_char): Return const.
6701 (is_objc_method_format): Remove unused function.
6702 (find_toplevel_string): New function.
6703 (is_linespec_boundary): Remove.
6704 (symbol_not_found_error): New function.
6705 (find_method_overload_end): Remove function.
6706 (unexpected_linespec_error): New function.
6707 (keep_name_info): Remove.
6708 (linespec_parse_line_offset): New function.
6709 (linespec_parse_basic): New function.
6710 (canonicalize_linespec): New function.
6711 (decode_line_internal): Remove.
6712 (create_sals_line_offset): New function adapted from
6713 decode_all_digits.
6714 (convert_linespec_to_sals): New function.
6715 (parse_linespec): New function.
6716 (linespec_parser_new): New function.
6717 (linespec_state_destructor): Change parameter type to
6718 struct linespec_state *.
6719 Add language parameter.
6720 Remove freeing of moved members.
6721 (linespec_parser_delete): New function.
6722 (decode_line_full): Use parse_linespec and linespec_parser_new.
6723 (decode_line_1): Likewise.
6724 (decode_indirect): Rename to ...
6725 (linespec_expression_to_pc): ... this and rewrite
6726 to simply find CORE_ADDR, storing this result for later
6727 conversion to SALs.
6728 (locate_first_half): Remove.
6729 (deocde_objc): Add parameter LS.
6730 Initialize new struct collect_info members.
6731 Handle minimal symbols, too.
6732 (decode_compound): Delete.
6733 (lookup_prefix_sym): Rewrite.
6734 (compare_msymbols): New function.
6735 (find_method): Rewrite.
6736 Do not call cplusplus_error.
6737 (symtabs_from_filename): Rewrite.
6738 (collect_function_symbols): Delete.
6739 (find_function_symbols): Rewrite without ARGPTR-style
6740 processing.
6741 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6742 (decode_dollar): Adapted and renamed to ...
6743 (linespec_parse_variable): ... this.
6744 (find_linespec_symbols): New function.
6745 (decode_label): Adapted and renamed to ...
6746 (find_label_symbols): ... this.
6747 (decode_digits_list_mode): Add and use LS argument.
6748 (decode_digits_ordinary): Likewise.
6749 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6750 If in list mode, allow any symbol class. Otherwise, only
6751 permit LOC_BLOCK symbols.
6752 (minsym_found): Update comments.
6753 (search_minsyms_for_name): Do not convert the matching symbol
6754 into a SAL. Simply push the symbol and objfile into the
6755 result vector.
6756 (decode_variable): Delete. Contents adapted into
6757 find_linespec_symbols.
6758
6759 * cp-support.c (SKIP_SPACE): Remove.
6760 (operator_tokens): Remove unused global.
6761 (cp_validate_operator): Remove.
6762 * cp-support.h (cp_validate_operator): Remove declaration.
6763
a72c8f6a
JK
67642012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6765
6766 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6767 for TYPE_VPTR_FIELDNO.
6768 * valprint.c (valprint_check_validity): Make it global, move the
6769 function comment ...
6770 * value.h (valprint_check_validity): ... to this new declaration.
6771
cf9bb588
TG
67722012-04-02 Tristan Gingold <gingold@adacore.com>
6773
6774 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6775 the STATE32 api for i386 state.
6776 (i386_darwin_store_inferior_registers): Likewise.
6777
17092398
TG
67782012-04-02 Tristan Gingold <gingold@adacore.com>
6779
6780 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6781 SS offset.
6782 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6783 format_string.
6784
ece0061f
TG
67852012-04-02 Tristan Gingold <gingold@adacore.com>
6786
6787 PR gdb/13901
d987a266 6788 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 6789
cf65ecd3
JK
67902012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6791
6792 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6793
9bc3523d
TT
67942012-03-30 Tom Tromey <tromey@redhat.com>
6795
6796 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6797 of TRY_CATCH. Fix error handling.
6798 * python/py-value.c (convert_value_from_python): Move 'old'
6799 declaration to innermost scope.
6800
b1ed564a
JB
68012012-03-29 Joel Brobecker <brobecker@adacore.com>
6802 Andrey Smirnov <andrew.smirnov@gmail.com>
6803
6804 -Wshadow warning fix.
6805 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6806 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6807 Adjust code accordingly.
6808
cb8e9b97
JB
68092012-03-29 Joel Brobecker <brobecker@adacore.com>
6810
6811 * ada-lang.c (symbol_completion_add): Rename parameter
6812 "encoded" into "encoded_p". Ajust code and documentation
6813 accordingly.
6814
c0af1706
JB
68152012-03-29 Joel Brobecker <brobecker@adacore.com>
6816 Andrey Smirnov <andrew.smirnov@gmail.com>
6817
6818 -Wshadow warning fix.
6819 * ada-lang.c (symbol_completion_add): Rename parameter
6820 "wild_match" into wild_match_p. Update code and documentation
6821 accordingly.
6822
6ea35997
JB
68232012-03-29 Joel Brobecker <brobecker@adacore.com>
6824
6825 * ada-lang.c (symbol_completion_match): Rename parameter
6826 "encoded" into "encoded_p". Ajust code and documentation
6827 accordingly.
6828
e701b3c0
JB
68292012-03-29 Joel Brobecker <brobecker@adacore.com>
6830 Andrey Smirnov <andrew.smirnov@gmail.com>
6831
6832 -Wshadow warning fix.
6833 * ada-lang.c (symbol_completion_match): Rename parameter
6834 "wild_match" into "wild_match_p". Adjust code and function
6835 documentation accordingly.
6836
5e2336be
JB
68372012-03-29 Joel Brobecker <brobecker@adacore.com>
6838 Andrey Smirnov <andrew.smirnov@gmail.com>
6839
6840 -Wshadow warning fix.
6841 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6842 "symbol_info" into "info". Adjust code accordingly.
6843 (ada_lookup_symbol): Likewise.
6844
9f88c959
JB
68452012-03-29 Joel Brobecker <brobecker@adacore.com>
6846
6847 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6848 of this function's documentation.
6849
82ccd55e
JB
68502012-03-29 Joel Brobecker <brobecker@adacore.com>
6851 Andrey Smirnov <andrew.smirnov@gmail.com>
6852
6853 -Wshadow warning fix.
6854 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6855 variable into "wild_match_p". Adjust code accordingly.
6856
d0a8ab18
JB
68572012-03-29 Joel Brobecker <brobecker@adacore.com>
6858 Andrey Smirnov <andrew.smirnov@gmail.com>
6859
6860 -Wshadow warning fix.
6861 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6862 parameter into "wild_match_p". Adjust code accordingly.
6863 Document this parameter in the function description.
6864
48b78332
JB
68652012-03-29 Joel Brobecker <brobecker@adacore.com>
6866 Andrey Smirnov <andrew.smirnov@gmail.com>
6867
6868 -Wshadow warning fix.
6869 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6870 "wild_match" parameter to "wild_match_p" (-Wshadow).
6871
2e6e0353
JB
68722012-03-29 Joel Brobecker <brobecker@adacore.com>
6873
6874 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6875 in function documentation.
6876
dc4024cd
JB
68772012-03-29 Joel Brobecker <brobecker@adacore.com>
6878 Andrey Smirnov <andrew.smirnov@gmail.com>
6879
6880 -Wshadow warning fix.
6881 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6882 variable into wild_match_p. Adjust code accordingly.
6883
6c88661c
JB
68842012-03-29 Joel Brobecker <brobecker@adacore.com>
6885 Andrey Smirnov <andrew.smirnov@gmail.com>
6886
6887 * ada-valprint.c (ada_val_print_1): Move the code handling
6888 TYPE_CODE_ENUM inside its own lexical block. Declare
6889 variables len and val there, instead of in the function's
6890 top level block. Avoid declaring deref_val again in a way
6891 that shadows another variable of the same name declared
6892 in one of the up-level blocks. Just re-use the up-level
6893 variable instead.
6894
4e5c77fe
JB
68952012-03-29 Joel Brobecker <brobecker@adacore.com>
6896
6897 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6898 Replace block_found argument by symbol_info. Adjust
6899 implementation accordingly. Add function documentation.
6900 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6901 Fix documentation.
6902 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6903 * ada-exp.y (write_object_renaming): Adjust to new
6904 ada_lookup_encoded_symbol API.
6905
1c0ac8c7
JB
69062012-03-29 Joel Brobecker <brobecker@adacore.com>
6907
6908 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6909 documentation.
6910
2aaed979
KB
69112012-03-28 Rathish C <rathish.c@kpitcummins.com>
6912
6913 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6914 (v850_register_name): Add the mpu and fpu register names.
6915 (v850e_register_name): Add the mpu and fpu register names.
6916 (v850e2_register_name): New function.
a09130f9 6917 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
6918 bfd_mach_v850e2v3.
6919
927fbba6
JB
69202012-03-28 Joel Brobecker <brobecker@adacore.com>
6921
6922 * NEWS: Add entry for Ada varobj support.
6923
d32cafc7
JB
69242012-03-28 Joel Brobecker <brobecker@adacore.com>
6925
6926 * varobj.c (default_value_is_changeable_p): New function,
6927 extracted from varobj_value_is_changeable_p. Add declaration.
6928 (ada_value_is_changeable_p): New function, extracted from
6929 varobj_value_is_changeable_p. Add declaration.
6930 (struct language_specific): New field "value_is_changeable_p".
6931 (languages): Add entries for new field.
6932 (varobj_create): Set language before calling install_new_value.
6933 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6934 "value_is_changeable_p" language callback.
6935
181875a4
JB
69362012-03-28 Joel Brobecker <brobecker@adacore.com>
6937
6938 * ada-varobj.h, ada-varobj.c: New files.
6939 * Makefile.in (SFILES): Add ada-varobj.c.
6940 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6941 (COMMON_OBS): Add ada-varobj.o.
6942
7a290c40
JB
69432012-03-28 Joel Brobecker <brobecker@adacore.com>
6944
6945 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6946 (struct language_specific): New field "value_has_mutated".
6947 (languages): Set field "value_has_mutated" in each entry of array.
6948 (varobj_value_has_mutated): New function.
6949 (varobj_udpdate): Add handling of type mutation.
6950 (value_of_root): Add handling of type mutation.
6951 (ada_value_has_mutated): New function.
6952
ca9b8b9c
PA
69532012-03-28 Pedro Alves <palves@redhat.com>
6954
6955 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6956 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6957
cc0265cd
TT
69582012-03-28 Tom Tromey <tromey@redhat.com>
6959
6960 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6961 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6962 before returning.
6963
3ad2ec6f
TT
69642012-03-28 Tom Tromey <tromey@redhat.com>
6965
6966 * .dir-locals.el: New file.
6967
4a6510ba
PA
69682012-03-28 Pedro Alves <palves@redhat.com>
6969
6970 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6971
5a75128f
JB
69722012-03-28 Joel Brobecker <brobecker@adacore.com>
6973
6974 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6975 handling for r0.
6976
f99d8bf4
PA
69772012-03-27 Pedro Alves <palves@redhat.com>
6978
6979 Eliminate struct ui_stream.
6980
6981 * ui-out.h (struct ui_stream): Delete.
6982 (ui_out_field_stream): Adjust prototype.
6983 (ui_out_stream_new, ui_out_stream_delete)
6984 (make_cleanup_ui_out_stream_delete): Delete declarations.
6985 * ui-out.c (ui_out_field_stream): Change prototype to take a
6986 ui_file instead of a ui_stream. Adjust.
6987 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6988 (make_cleanup_ui_out_stream_delete): Delete.
6989 * breakpoint.c (print_breakpoint_location)
6990 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6991 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6992 * disasm.c (dump_insns): Ditto.
6993 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6994 prototype.
6995 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6996 ui_stream/ui_out_stream_new.
6997 * infcmd.c (print_return_value): Ditto.
6998 * osdata.c (info_osdata_command): Don't allocate a local
6999 ui_stream.
7000 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7001 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7002 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7003 allocate a local ui_stream.
7004 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7005 instead of ui_stream/ui_out_stream_new.
7006 (list_args_or_locals): Don't allocate a local ui_stream.
7007 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7008 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7009 ui_stream/ui_out_stream_new.
7010 * cli/cli-setshow.c (do_setshow_command): Ditto.
7011
6350a066 70122012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7013
6350a066
PA
7014 * arm-linux-tdep.c (arm_linux_init_abi): Call
7015 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7016 * arm-tdep.c (arm_process_record): New function.
7017 (deallocate_reg_mem): New function.
7018 (decode_insn): New function.
7019 (thumb_record_branch): New function.
7020 (thumb_record_ldm_stm_swi(): New function.
7021 (thumb_record_misc): New function.
7022 (thumb_record_ld_st_stack): New function.
7023 (thumb_record_ld_st_imm_offset): New function.
7024 (thumb_record_ld_st_reg_offset(): New function.
7025 (thumb_record_add_sub_cmp_mov): New function.
7026 (thumb_record_shift_add_sub): New function.
7027 (arm_record_coproc_data_proc): New function.
7028 (arm_record_coproc): New function.
7029 (arm_record_b_bl): New function.
7030 (arm_record_ld_st_multiple): New function.
7031 (arm_record_ld_st_reg_offset): New function.
7032 (arm_record_ld_st_imm_offset): New function.
7033 (arm_record_data_proc_imm): New function.
7034 (arm_record_data_proc_misc_ld_str): New function.
7035 (arm_record_extension_space): New function.
7036 (arm_record_strx): New function.
7037 (sbo_sbz): New function.
7038 (struct insn_decode_record): New structure for arm insn record.
7039 (REG_ALLOC): New macro for reg allocations.
7040 (MEM_ALLOC): New macro for memory allocations.
7041 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7042
89e028e2
AS
70432012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7044
7045 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7046 (store_register): Likewise.
7047
6350a066 70482012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7049
6350a066 7050 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7051
5b43fab2
JK
70522012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7053
7054 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7055 Describe also the option "auto".
7056
b5453b95
RH
70572012-03-22 Richard Henderson <rth@redhat.com>
7058
7059 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7060 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7061
227ee7fc
RH
70622012-03-22 Richard Henderson <rth@redhat.com>
7063
7064 * jit.c (jit_read_code_entry): Compute alignment and offset of
7065 int64_t member before computing entry_size.
7066
7b282c5a
SCR
70672012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7068
7069 Python scripting: Add new method Value.referenced_value to
7070 gdb.Value which can dereference pointer as well as reference
7071 values.
7072 * NEWS: Add entry under 'Python scripting' about the new method
7073 Value.referenced_value on gdb.Value objects.
7074 * python/py-value.c (valpy_referenced_value): New function
7075 defining a new method on gdb.Value objects which can dereference
7076 pointer and reference values.
7077
0c83539f
SCR
70782012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7079
7080 * MAINTAINERS (Write After Approval): Add myself to the list.
7081
7ccffd7c
KB
70822012-03-21 Kevin Buettner <kevinb@redhat.com>
7083
7084 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7085 in addition to "main".
7086
bd0b9f9e
JB
70872012-03-21 Joel Brobecker <brobecker@adacore.com>
7088
7089 * expression.h (op_name): Add declaration.
7090 * expprint.c (op_name): Remove declaration. Make non-static.
7091 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7092
a5362b9a
TS
70932012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7094
7095 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7096 of struct siginfo.
7097 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7098 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7099 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7100 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7101 (linux_nat_get_siginfo): Likewise.
7102 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7103 (linux_nat_get_siginfo): Likewise.
7104 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7105 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7106 * procfs.c (gdb_siginfo_t): Likewise.
7107
adcadaab
MF
71082012-03-21 Mike Frysinger <vapier@gentoo.org>
7109
7110 * .gitignore: Ignore more files.
7111
e278ad5b
PA
71122012-03-20 Pedro Alves <palves@redhat.com>
7113
7114 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7115 returns.
7116
741e63d7
YQ
71172012-03-20 Yao Qi <yao@codesourcery.com>
7118
7119 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7120 comment.
7121
b64f50a1
JK
71222012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7123
7124 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7125 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7126 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7127 sect_offset.
7128 * dwarf2expr.h (cu_offset, sect_offset): New types.
7129 (struct dwarf_expr_context_funcs) <dwarf_call>
7130 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7131 sect_offset.
7132 (struct dwarf_expr_context) <len>: Improve the comment.
7133 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7134 cu_offset and sect_offset.
7135 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7136 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7137 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7138 * dwarf2loc.h: Include dwarf2expr.h.
7139 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7140 and sect_offset.
7141 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7142 Improve the comment.
7143 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7144 (struct signatured_type, struct line_header, struct partial_die_info)
7145 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7146 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7147 (get_die_type_at_offset, create_cus_from_index)
7148 (create_signatured_type_table_from_index, dw2_get_file_names)
7149 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7150 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7151 (create_debug_types_hash_table, process_psymtab_comp_unit)
7152 (load_partial_comp_unit, create_all_comp_units)
7153 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7154 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7155 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7156 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7157 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7158 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7159 (find_partial_die, read_attribute_value, lookup_die_type)
7160 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7161 (is_ref_attr): New function comment.
7162 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7163 Use cu_offset and sect_offset.
7164 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7165 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7166 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7167 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7168 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7169 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7170 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7171 sect_offset.
7172
e97a38f7
JK
71732012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7174
7175 Code cleanup.
7176 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7177 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7178 with xfree.
7179 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7180
8320cc4f
JK
71812012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7182
7183 * NEWS: Describe new options --init-command=FILE, -ix and
7184 --init-eval-command=COMMAND, -iex.
7185 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7186 CMDARG_INIT_COMMAND.
7187 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7188 "init-command", "init-eval-command", "ix" and "iex" to the variable
7189 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7190 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7191 (print_gdb_help): Describe --init-command=FILE, -ix and
7192 --init-eval-command=COMMAND, -iex.
7193
26743505
JK
71942012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7195
7196 Code cleanup.
7197 * main.c (struct cmdarg): Move it here from main. Add more comments.
7198 (cmdarg_s, VEC (cmdarg_s)): New.
7199 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7200 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7201 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7202 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7203 of CMDARG.
7204
5ff5c7b4
TT
72052012-03-19 Tom Tromey <tromey@redhat.com>
7206
7207 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7208
ab260dad
JK
72092012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7210
7211 PR symtab/13777
7212 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7213 GCC >=4.5.
7214
c366c1f0
TT
72152012-03-16 Chris January <chris.january@allinea.com>
7216
7217 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7218 of clear.
7219
e16edb45
TT
72202012-03-16 Chris January <chris.january@allinea.com>
7221
7222 * source.c (add_path): Use memmove instead of strcpy because the
7223 strings overlap.
7224
53ba8333
JB
72252012-03-16 Joel Brobecker <brobecker@adacore.com>
7226
7227 * value.h (set_value_parent): Add declaration.
7228 * value.c (set_value_parent): New function.
7229 (value_address): If VALUE->PARENT is not NULL, then use it as
7230 the base address instead of VALUE->LOCATION.address.
7231 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7232 the same as OBJ's address. Adjust V's offset accordingly.
7233 Set V's parent.
7234
481860b3
GB
72352012-03-16 Gary Benson <gbenson@redhat.com>
7236
7237 PR breakpoints/10738
7238 * dwarf2read.c (use_deprecated_index_sections): New global.
7239 (struct partial_die_info): New member may_be_inlined.
7240 (read_partial_die): Set may_be_inlined where appropriate.
7241 (add_partial_subprogram): Add partial symbols for partial
7242 DIEs that may be inlined.
7243 (new_symbol_full): Add inlined subroutines to the current
7244 scope.
7245 (write_psymtabs_to_index): Bump version number.
7246 (dwarf2_read_index): Read only version 6 indices unless
7247 use_deprecated_index_sections is set.
7248 * linespec.c (symbol_and_data_callback): New structure.
7249 (iterate_inline_only): New function.
7250 (iterate_over_all_matching_symtabs): New argument
7251 "include_inline". If nonzero, also call the callback for
7252 symbols representing inlined subroutines.
7253 (lookup_prefix_sym): Pass extra argument to the above.
7254 (find_function_symbols): Likewise.
7255 (add_matching_symbols_to_info): Likewise.
7256 * NEWS: Mention that GDB can now set breakpoints on inlined
7257 functions.
7258
d0e7e15a
PM
72592012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7260
7261 * p-typeprint.c (pascal_type_print_method_args):
7262 Fix display of parameter of methods.
7263
3d354654
PM
72642012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7265
7266 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7267 Add missing prototype.
7268
cafe75b0
JK
72692012-03-16 Yao Qi <yao@codesourcery.com>
7270 Jan Kratochvil <jan.kratochvil@redhat.com>
7271
7272 Fix false compilation warning.
7273 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7274
25f8c692
JL
72752012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7276 Pedro Alves <pedro@codesourcery.com>
7277
7278 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7279 (arm_register_g_packet_guesses): New function.
7280 (arm_gdbarch_init): Don't force a target description with
7281 registers when the executable is detected as M-profile. Instead
7282 set gdbarch->tdep->is_m. Register `g' packet guesses.
7283 (_initialize_arm_tdep): Initialize the new target description.
7284 * features/arm-with-m-fpa-layout.xml: New description.
7285 * features/arm-with-m-fpa-layout.c: New, generated.
7286
35c63cd8
JB
72872012-03-15 Joel Brobecker <brobecker@adacore.com>
7288
7289 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7290 Update function description.
7291 (insert_bp_location): Do not wipe bl->target_info out.
7292 * mem-break.c: #include "gdb_string.h".
7293 (default_memory_insert_breakpoint): Do not call target_read_memory
7294 with a pointer to the breakpoint's shadow_contents buffer. Use
7295 a local buffer instead.
7296 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7297
57651221
TT
72982012-03-15 Tom Tromey <tromey@redhat.com>
7299
7300 * NEWS: Mention "info vtbl", not "info vtable".
7301 * cp-support.c (info_vtbl_command): Fix comment.
7302 (_initialize_cp_support): Fix text.
7303
410528f0
TT
73042012-03-15 Tom Tromey <tromey@redhat.com>
7305
7306 * cp-valprint.c (cp_print_value_fields): Use
7307 print_function_pointer_address for vtable slot.
7308
c4aeac85
TT
73092012-03-15 Tom Tromey <tromey@redhat.com>
7310
7311 * gnu-v3-abi.c (struct value_and_voffset): New.
7312 (hash_value_and_voffset, eq_value_and_voffset)
7313 (compare_value_and_voffset, compute_vtable_size)
7314 (print_one_vtable, gnuv3_print_vtable): New functions.
7315 (init_gnuv3_ops): Initialize 'print_vtable' field.
7316 * cp-support.c (info_vtbl_command): New function.
7317 (_initialize_cp_support): Add "info vtbl".
7318 * cp-abi.h (cplus_print_vtable): Declare.
7319 (struct cp_abi_ops) <print_vtable>: New field.
7320 * cp-abi.c (cplus_print_vtable): New function.
7321 * NEWS: Update.
7322
95cbceff
TT
73232012-03-15 Tom Tromey <tromey@redhat.com>
7324
7325 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7326 iterate_over_symbols.
7327
589b4a32
DE
73282012-03-14 Doug Evans <dje@google.com>
7329
7330 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7331 DW_OP_GNU_parameter_ref.
7332
e837f12a
JK
73332012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7334
7335 Fix double prompt of 'interpreter-exec mi'.
7336 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7337 (mi_interpreter_resume): use it.
7338 (mi_execute_command_input_handler): New function.
7339 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7340 mi_execute_command_input_handler.
7341
ff1e4526 73422012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7343
7344 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7345 prototype.
7346 (darwin_debug_port_info): Make static.
7347 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7348 * machoread.c (_initialize_machoread): Add prototype.
7349 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7350 (i386_darwin_set_control, i386_darwin_get_control)
7351 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7352 i386_darwin_get_status, i386_darwin_get_control):
7353 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7354
d8a5d6ee
JB
73552012-03-13 Joel Brobecker <brobecker@adacore.com>
7356
7357 * ax-gdb.c (gen_usual_unary): Remove special handling of
7358 enum and bool types.
7359
af381b8c
JB
73602012-03-13 Joel Brobecker <brobecker@adacore.com>
7361
7362 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7363
786c562f
JB
73642012-03-13 Joel Brobecker <brobecker@adacore.com>
7365
7366 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7367
e3ebf1bb
JB
73682012-03-13 Chris January <chris.january@allinea.com>
7369
7370 * aix-thread.c (fill_sprs): Store the floating point registers
7371 at the correct offsets into vals.
7372
c5b7e1cb
DE
73732012-03-13 Doug Evans <dje@google.com>
7374
16899756
DE
7375 * NEWS: Mention symbol-reloading has been deleted.
7376 * symfile.c (symbol_reloading): Delete.
7377 (show_symbol_reloading): Delete.
7378 (_initialize_symfile): Delete set/show symbol-reloading.
7379
c5b7e1cb
DE
7380 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7381 read_in_chain until we have successfully read it in.
7382 (load_full_comp_unit): Ditto.
7383 (read_signatured_type): Add comment.
7384
46cb6474
JB
73852012-03-13 Chris January <chris.january@allinea.com>
7386
7387 * stabsread.c (fix_common_block): Change type of valu argument
7388 to CORE_ADDR.
7389
76219d77
JB
73902012-03-13 Chris January <chris.january@allinea.com>
7391
7392 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7393 instruction.
7394
87b0bb13
JK
73952012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7396
7397 * common/linux-procfs.c (linux_proc_get_int): New, from
7398 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7399 field.
7400 (linux_proc_get_tgid): Only call linux_proc_get_int.
7401 (linux_proc_get_tracerpid): New.
7402 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7403 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7404 linux_proc_pid_has_state.
7405 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7406 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7407 (linux_ptrace_attach_warnings): New.
7408 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7409 New declaration.
7410 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7411 (linux_nat_attach): New variables ex, buffer, message and message_s.
7412 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7413
5f572dec
JK
74142012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7415
7416 * Makefile.in (linux-ptrace.o): New.
7417 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7418 from linux-nat.c.
7419 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7420 * common/linux-ptrace.c: New file.
7421 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7422 * config/arm/linux.mh: Likewise.
7423 * config/i386/linux.mh: Likewise.
7424 * config/i386/linux64.mh: Likewise.
7425 * config/ia64/linux.mh: Likewise.
7426 * config/m32r/linux.mh: Likewise.
7427 * config/m68k/linux.mh: Likewise.
7428 * config/mips/linux.mh: Likewise.
7429 * config/pa/linux.mh: Likewise.
7430 * config/powerpc/linux.mh: Likewise.
7431 * config/powerpc/ppc64-linux.mh: Likewise.
7432 * config/powerpc/spu-linux.mh: Likewise.
7433 * config/s390/s390.mh: Likewise.
7434 * config/sparc/linux.mh: Likewise.
7435 * config/sparc/linux64.mh: Likewise.
7436 * config/xtensa/linux.mh: Likewise.
7437 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7438 common/linux-procfs.c.
7439 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7440
44f238bb
PA
74412012-03-13 Hui Zhu <teawater@gmail.com>
7442 Pedro Alves <palves@redhat.com>
7443
7444 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7445 CREATE_BREAKPOINT_FLAGS_INSERTED.
7446 (create_breakpoint_sal, create_breakpoints_sal)
7447 (base_breakpoint_create_breakpoints_sal)
7448 (tracepoint_create_breakpoints_sal)
7449 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7450 down.
7451 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7452 (ftrace_command, strace_command): Adjust.
7453 (create_tracepoint_from_upload): Pass
7454 CREATE_BREAKPOINT_FLAGS_INSERTED.
7455 * breakpoint.h (enum breakpoint_create_flags): New.
7456 (create_breakpoint): New flags parameter.
7457 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7458 * python/py-breakpoint.c (bppy_init): Adjust.
7459 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7460 * spu-tdep.c (spu_catch_start): Adjust.
7461
1e51243a
PA
74622012-03-13 Pedro Alves <palves@redhat.com>
7463 Hui Zhu <teawater@gmail.com>
7464 Yao Qi <yao@codesourcery.com>
7465
7466 * remote.c (struct remote_state): New field `starting_up'.
7467 (remote_start_remote): Set and clear it.
7468 (remote_can_download_tracepoint): If starting up, return false.
7469
fa3064dd
YQ
74702012-03-13 Yao Qi <yao@codesourcery.com>
7471
7472 * inferior.h (struct inferior): Remove fields any_syscall_count,
7473 syscalls_counts and total_syscalls_count. Move them to new
7474 struct catch_syscall_inferior_data in breakpoint.c.
7475 * breakpoint.c: Call DEF_VEC_I(int).
7476 (struct catch_syscall_inferior_data): New.
7477 (get_catch_syscall_inferior_data): New.
7478 (catch_syscall_inferior_data_cleanup): New.
7479 (insert_catch_syscall): Update to access data in
7480 struct catch_syscall_inferior_data.
7481 (insert_catch_syscall): Likewise.
7482 (remove_catch_syscall): Likewise.
7483 (remove_catch_syscall): Likewise.
7484 (is_syscall_catchpoint_enabled): Likewise.
7485 (add_catch_command): Likewise.
7486 (_initialize_breakpoint): Register cleanup.
7487 * breakpoint.h: Removed DEF_VEC_I(int).
7488 * dwarf2loc.c: Call DEF_VEC_I(int).
7489 * mi/mi-main.c: Likewise.
7490
460fac3c
MK
74912012-03-12 Mark Kettenis <kettenis@gnu.org>
7492
7493 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7494
e1aca11e
JB
74952012-03-12 Chris January <chris.january@allinea.com>
7496
7497 * aix-thread.c (_initialize_aix_thread): Add prototype.
7498 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7499 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7500
649c7061
JB
75012012-03-12 Joel Brobecker <brobecker@adacore.com>
7502
7503 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7504 include of "amd64-nat.h".
7505
0b49e518
TT
75062012-03-12 Tom Tromey <tromey@redhat.com>
7507
7508 * buildsym.c (record_pending_block): Now static.
7509 * buildsym.h: (record_pending_block): Remove.
7510
fd24fa94
AT
75112012-03-12 Andreas Tobler <andreast@fgznet.ch>
7512
7513 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7514
ba919b58
TT
75152012-03-09 Tom Tromey <tromey@redhat.com>
7516
7517 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7518 producer_is_gxx_lt_4_6>: New fields.
7519 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7520
a48e046c
TT
75212012-03-09 Tom Tromey <tromey@redhat.com>
7522
7523 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7524
6f5e9362
JB
75252012-03-08 Joel Brobecker <brobecker@adacore.com>
7526
7527 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7528 prototype.
7529
8d037db9
JB
75302012-03-08 Joel Brobecker <brobecker@adacore.com>
7531
7532 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7533
4e841acf
JK
75342012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7535
7536 Fix -Wmissing-prototypes build.
7537 * arm-linux-nat.c (get_thread_id): Make it static.
7538 * xtensa-linux-nat.c (get_thread_id): Likewise.
7539
c6030312
JB
75402012-03-08 Joel Brobecker <brobecker@adacore.com>
7541
7542 * server.c (process_point_options): If a conditional expression
7543 is found, only print a message if remote_debug is nonzero.
7544
52323be9
LM
75452012-03-08 Luis Machado <lgustavo@codesourcery.com>
7546
7547 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7548 of internal error for unknown/unsupported types.
7549
7fe25d9b
JK
75502012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7551
7552 Fix CU relative vs. absolute DIE offsets.
7553 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7554 offset to offset_in_cu.
7555 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7556 TYPE_OFFSET.
7557 (dwarf2_fetch_die_location_block): Rename parameter offset to
7558 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7559
05e7c244
JK
75602012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7561
7562 * libunwind-frame.c: Rename to ...
7563 * ia64-libunwind-tdep.c: ... here.
7564 * libunwind-frame.h: Rename to ...
7565 * ia64-libunwind-tdep.h: ... here.
7566 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7567 ia64-libunwind-tdep.h.
7568 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7569 * README (--with-libunwind): Rename to ...
7570 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7571 * config.in: Regenerate.
7572 * configure: Regenerate.
7573 * configure.ac: New option --with-libunwind-ia64, make the
7574 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7575 Remove AC_DEFINE for HAVE_LIBUNWIND.
7576 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7577 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7578 Rename libunwind-frame in the general comment.
7579 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7580 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7581 Move forward declarations inside #ifndef. Rename libunwind-frame in
7582 the general comment.
7583 * ia64-tdep.c: Rename libunwind-frame.h #include to
7584 ia64-libunwind-tdep.h.
7585 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7586 (ia64_libunwind_descr): Rename libunwind-frame to
7587 ia64-libunwind-tdep in these function comments.
7588 * ia64-tdep.h: Rename libunwind-frame.h #include to
7589 ia64-libunwind-tdep.h.
7590 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7591 ia64-libunwind-tdep in that data comment.
7592
3755cbfd
JK
75932012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7594
7595 * libunwind-frame.h (struct frame_unwind): New declaration.
7596
d1cda5d9
JB
75972012-03-08 Joel Brobecker <brobecker@adacore.com>
7598
7599 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7600 "set breakpoint condition-evaluation" command.
7601
a0ba0aa2
TG
76022012-03-08 Tristan Gingold <gingold@adacore.com>
7603
7604 * sparc-stub.c: Move to stubs/
7605 * sh-stub.c: Likewise.
7606 * m68k-stub.c: Likewise.
7607 * m32r-stub.c: Likewise.
7608 * i386-stub.c: Likewise.
7609
7b8b6d6d
AS
76102012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7611
007cafee
AS
7612 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7613 linux_get_siginfo_type.
7614
7b8b6d6d
AS
7615 * m68klinux-nat.c: Include "gdb_proc_service.h".
7616 (PTRACE_GET_THREAD_AREA): Define.
7617 (ps_get_thread_area): New function.
7618
bba74b36
YQ
76192012-03-08 Yao Qi <yao@codesourcery.com>
7620
7621 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7622 `xsnprintf'.
7623 (remote_query_attached): Likewise.
7624 (remote_static_tracepoint_marker_at): Likewise.
7625 (remote_set_permissions): Likewise.
7626 (remote_detach_1, extended_remote_attach_1): Likewise.
7627 (send_g_packet, remote_vkill): Likewise.
7628 (extended_remote_disable_randomization): Likewise.
7629 (remote_add_target_side_condition): Likewise.
7630 (remote_insert_breakpoint): Likewise.
7631 (remote_remove_breakpoint): Likewise.
7632 (remote_insert_watchpoint): Likewise.
7633 (remote_remove_watchpoint): Likewise.
7634 (remote_insert_hw_breakpoint): Likewise.
7635 (remote_insert_hw_breakpoint): Likewise.
7636 (remote_remove_hw_breakpoint): Likewise.
7637 (remote_download_command_source): Likewise.
7638 (remote_download_tracepoint): Likewise.
7639 (remote_download_trace_state_variable): Likewise.
7640 (remote_disable_tracepoint): Likewise.
7641 (remote_trace_set_readonly_regions): Likewise.
7642 (remote_get_tracepoint_status): Likewise.
7643 (remote_trace_find): Likewise.
7644 (remote_get_trace_state_variable_value): Likewise.
7645 (remote_set_disconnected_tracing): Likewise.
7646 (remote_set_circular_trace_buffer): Likewise.
7647 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7648 (remote_use_agent): Likewise.
7649 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7650 Update callers.
7651
9b224c5e
PA
76522012-03-07 Pedro Alves <palves@redhat.com>
7653
7654 * NEWS: Mention QProgramSignals.
7655 * inferior.h (update_signals_program_target): Declare.
7656 * infrun.c: (update_signals_program_target): New.
7657 (handle_command): Update the target of the new program signals
7658 array changes.
7659 * remote.c (PACKET_QProgramSignals): New enum.
7660 (last_program_signals_packet): New global.
7661 (remote_program_signals): New.
7662 (remote_start_remote): Update the target with the program signals
7663 list.
7664 (remote_protocol_features): Add entry for QPassSignals.
7665 (remote_open_1): Free anc clear last_program_signals_packet.
7666 (init_remote_ops): Install remote_program_signals.
7667 * target.c (update_current_target): Adjust.
7668 (target_program_signals): New.
7669 * target.h (struct target_ops) <to_program_signals>: New field.
7670 (target_program_signals): Declare.
7671
74c48cbb
PA
76722012-03-07 Pedro Alves <palves@redhat.com>
7673
7674 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7675 extensions.
7676
0c13fc49
AS
76772012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7678
7679 * m68klinux-nat.c (getregs_supplies): Make static.
7680 (getfpregs_supplies): Likewise.
7681 (have_ptrace_getregs): Likewise.
7682
1281d2a3
JB
76832012-03-06 Joel Brobecker <brobecker@adacore.com>
7684
7685 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7686 in call to get_die_type_at_offset.
7687
2b03b41d
SS
76882012-03-06 Stan Shebs <stan@codesourcery.com>
7689
7690 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7691 * mi/mi-cmd-disas.c: Ditto.
7692 * mi/mi-cmd-env.c: Ditto.
7693 * mi/mi-cmd-file.c: Ditto.
7694 * mi/mi-cmd-stack.c: Ditto.
7695 * mi/mi-cmd-target.c: Ditto.
7696 * mi/mi-cmd-var.c: Ditto.
7697 * mi/mi-cmds.c: Ditto.
7698 * mi/mi-cmds.h: Ditto.
7699 * mi/mi-console.c: Ditto.
7700 * mi/mi-getopt.c: Ditto.
7701 * mi/mi-getopt.h: Ditto.
7702 * mi/mi-interp.c: Ditto.
7703 * mi/mi-main.c: Ditto.
7704 * mi/mi-out.c: Ditto.
7705 * mi/mi-parse.c: Ditto.
7706 * mi/mi-parse.h: Ditto.
7707 * mi/mi-symbol-cmds.c: Ditto.
7708
7709 * mi/mi-getopt.h: Move mi_opt struct up.
7710 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7711 return.
7712 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7713
c988ad87
TT
77142012-03-06 Tom Tromey <tromey@redhat.com>
7715
7716 * proc-service.c (ps_pglobal_lookup): Set the current program
7717 space.
7718
1b7c1b10
PA
77192012-03-06 Pedro Alves <palves@redhat.com>
7720
7721 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7722
3c182069
JB
77232012-03-05 Joel Brobecker <brobecker@adacore.com>
7724
7725 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7726
2e794194
JK
77272012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7728
7729 Code cleanup.
7730 * common/linux-osdata.c (linux_common_core_of_thread): New function
7731 comment.
7732 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7733 call by linux_common_core_of_thread.
7734 (linux_nat_core_of_thread_1): Remove.
7735 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7736 * linux-thread-db.c: Include linux-osdata.h.
7737 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7738 linux_common_core_of_thread.
7739
9f9f1f31
TT
77402012-03-05 Tom Tromey <tromey@redhat.com>
7741
7742 * value.c (value_primitive_field): Don't fetch contents for
7743 non-virtual bases.
7744
b7b189f3
TT
77452012-03-05 Tom Tromey <tromey@redhat.com>
7746
7747 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7748
05b8a789 77492012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 7750
5538f557
JB
7751 * s390-nat.c: Include "gregset.h".
7752
75528772
JK
77532012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7754
7755 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7756 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7757 (libunwind_load): New variable so_error, use it for dlerror. Try to
7758 load also LIBUNWIND_SO_7.
7759
275418ae
PA
77602012-03-05 Pedro Alves <palves@redhat.com>
7761
7762 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7763 is not NULL, and remove resulting dead code.
7764
5cbb9812
TS
77652012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7766
7767 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7768 prologue to sh_analyze_prologue.
7769 (sh_analyze_prologue): Make better use of such an upper limit, and
7770 generally be more cautious about accessing memory.
7771
541515ad
TT
77722012-03-05 Tom Tromey <tromey@redhat.com>
7773
7774 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7775 _initialize_ia64_hpux_tdep.
7776
b4d36fb8
PA
77772012-03-05 Pedro Alves <palves@redhat.com>
7778
24490249
PA
7779 PR gdb/13766
7780
b4d36fb8
PA
7781 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7782 the register state is clear, supply explicit zero, instead of
7783 marking the register unavailable.
7784
60c9a3c0
TG
77852012-03-05 Tristan Gingold <gingold@adacore.com>
7786
7787 * NEWS: Mention OpenVMS ia64 new target.
7788
696759ad
TG
77892012-03-05 Tristan Gingold <gingold@adacore.com>
7790
7791 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7792 (ia64_unw_accessors, ia64_unw_rse_accessors)
7793 (ia64_libunwind_descr): Declare.
7794 * ia64-vms-tdep.c: New file.
7795 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7796 (ia64_libunwind_descr): Make them public.
7797 * configure.tgt: Add ia64-*-*vms*.
7798 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7799 (ALLDEPFILES): Add ia64-vms-tdep.c
7800
34864976
TG
78012012-03-05 Tristan Gingold <gingold@adacore.com>
7802
169081d0
TG
7803 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7804 * remote.c (PACKET_qXfer_uib): New enum value.
7805 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7806 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7807 (_initialize_remote): Call add_packet_config_cmd for
7808 xfer:uib packet.
7809
78102012-03-05 Tristan Gingold <gingold@adacore.com>
7811
7812 * osabi.c (gdb_osabi_names): Add OpenVMS.
7813 (generic_elf_osabi_sniffer): Likewise.
7814 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 7815
6597b100
JK
78162012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7817
7818 Removed unused code.
7819 * libunwind-frame.c (libunwind_frame_unwind)
7820 (libunwind_frame_base_address): Remove.
7821 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7822
87399aa1
YQ
78232012-03-04 Yao Qi <yao@codesourcery.com>
7824
7825 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7826 remove trailing new line.
7827 (agent_run_command, agent_run_command): Add _ markup.
7828 (agent_capability_check): Likewise.
7829
abf1152a
JK
78302012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 * breakpoint.c (set_condition_evaluation_mode): Set
7833 CONDITION_EVALUATION_MODE unconditionally.
7834
5808517f
YQ
78352012-03-03 Yao Qi <yao@codesourcery.com>
7836
7837 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7838 * common/agent.h: Update declaration.
7839 * inf-child.c (inf_child_use_agent): New.
7840 (inf_child_can_use_agent): New.
7841 (inf_child_target): Initialize fields `to_use_agent'
7842 and `to_can_use_agent'.
7843 * agent.c (agent_new_objfile): New.
89b7509a 7844 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
7845 observer.
7846
7847 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7848 New.
89b7509a 7849 (linux_target_install_ops): Initialize field
5808517f
YQ
7850 `to_static_tracepoint_markers_by_strid'.
7851 * remote.c (free_current_marker): Move it to ...
7852 * tracepoint.c (free_current_marker): ... here. New.
7853 (cleanup_target_stop): New.
7854 * tracepoint.h: Declare free_current_marker.
7855 * NEWS: Add one entry about `info static-tracepoint-marker'.
7856
58b4daa5
YQ
78572012-03-03 Yao Qi <yao@codesourcery.com>
7858
7859 * common/agent.c (agent_loaded_p): New.
89b7509a 7860 (agent_look_up_symbols): New global.
58b4daa5
YQ
7861 * common/agent.h: Declare agent_loaded_p.
7862
8ffcbaaf
YQ
78632012-03-03 Yao Qi <yao@codesourcery.com>
7864
7865 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7866 (agent_capability_check, agent_capability_invalidate): New.
7867 (symbol_list): New array element.
7868 * common/agent.h (enum agent_capa): New.
7869 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7870
d1feda86
YQ
78712012-03-03 Yao Qi <yao@codesourcery.com>
7872
7873 * target.h (struct target_ops) <to_use_agent>: New field.
7874 (struct target_ops) <to_can_use_agent>: New field.
7875 (target_use_agent, target_can_use_agent): New macro.
7876 * target.c (update_current_target): Update.
7877 * remote.c: New enum `PACKET_QAgent'.
7878 (remote_protocol_features): Add a new element.
7879 (remote_use_agent, remote_can_use_agent): New.
7880 (init_remote_ops): Initialize field `can_use_agent' with
7881 remote_can_use_agent. Intiailize field `use_agent' with
7882 remote_use_agent.
7883 * common/agent.c (use_agent): New global.
7884 * common/agent.h: Declare it.
7885 * tracepoint.c (info_static_tracepoint_markers_command): Add
7886 comment.
7887 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7888 (COMMON_OBS): Add common/agent.o and agent.o
7889 (common-agent.o): New rule.
7890 * agent.c: New.
7891
2fa291ac
YQ
78922012-03-03 Yao Qi <yao@codesourcery.com>
7893
7894 * common/agent.c: New.
7895 * common/agent.h: New.
7896 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7897 AC_CHECK_HEADERS.
7898 * configure, configh.in: Regenerated.
7899
9fc05685
KB
79002012-03-02 Kevin Buettner <kevinb@redhat.com>
7901
7902 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7903 unless it exists for this architecture.
7904
a5ee536b
JB
79052012-03-02 Joel Brobecker <brobecker@adacore.com>
7906
7907 * language.h (struct language_defn): New "method" la_read_var_value.
7908 * findvar.c: #include "language.h".
7909 (default_read_var_value): Renames read_var_value. Rewrite
7910 function description.
7911 (read_var_value): New function.
7912 * value.h (default_read_var_value): Add prototype.
7913 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7914 New functions.
7915 (ada_language_defn): Add entry for la_read_var_value.
7916 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7917 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7918 language_defn structures to add entry for new la_read_var_value
7919 field.
7920
f59f708a
PA
79212012-03-02 Tom Tromey <tromey@redhat.com>
7922 Pedro Alves <palves@redhat.com>
7923
7924 PR breakpoints/13776:
7925 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7926 breakpoints.
7927 (delete_longjmp_breakpoint_at_next_stop): New.
7928 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7929 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7930 before deleting the inferior. Add comments.
7931 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7932 breakpoints immediately, but only on next stop. Move that code
7933 next to where we mark other breakpoints for deletion.
7934
44099a67
JB
79352012-03-02 Joel Brobecker <brobecker@adacore.com>
7936
7937 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7938 marker.
7939 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7940 violation.
7941
2a2ef594
PA
79422012-03-02 Pedro Alves <palves@redhat.com>
7943
7944 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7945
b261e0c5
UW
79462012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7947
7948 Fix -Wmissing-prototypes build.
7949 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7950 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7951 (gdbsim_has_memory): Likewise.
7952
a95babbf
YQ
79532012-03-02 Yao Qi <yao@codesourcery.com>
7954
7955 Fix -Wmissing-prototypes build.
7956 * charset.c (phony_iconv_open): Make static.
7957 (phony_iconv_close, phony_iconv): Likewise.
7958 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7959 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7960 prototype.
7961 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7962 * ser-mingw.c (create_select_thread): Make static.
7963 * windows-termcap.c (tgetent): New prototype.
7964 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7965
d603d4b3
JK
79662012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7967
7968 Fix -Wmissing-prototypes build.
7969 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7970 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7971 (_initialize_loadable): New prototypes.
7972
7fb3ad1f
DE
79732012-03-02 Doug Evans <dje@google.com>
7974
7975 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7976 abbrev table, read_comp_unit will do it.
7977
693be288
JK
79782012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7979
7980 Fix -Wmissing-prototypes build.
7981 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7982 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7983 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7984 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7985 (_initialize_arm_symbian_tdep): New prototype.
7986 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7987 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7988 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7989 static.
7990 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7991 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7992 prototype.
7993 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7994 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7995 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7996 static.
7997 * moxie-tdep.c (moxie_process_record): Likewise.
7998 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7999 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8000 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8001 (_initialize_rl78_tdep): New prototype.
8002 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8003 (_initialize_rx_tdep): New prototype.
8004 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8005 (_initialize_darwin_solib): New prototype.
8006 * solib-spu.c: Include solib-spu.h.
8007 (_initialize_spu_solib): New prototype.
8008 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8009 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8010 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8011 (tic6x_software_single_step): Make it static.
8012 (_initialize_tic6x_tdep): New prototype.
8013
638234e5
JK
80142012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8015
8016 Fix -Wmissing-prototypes build.
8017 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8018 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8019
f4a6f16d
JK
80202012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8021
8022 Fix -Wmissing-prototypes build.
8023 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8024 (frv_have_stopped_data_address): Remove.
8025
04dcf5fa
JK
80262012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8027
8028 Fix -Wmissing-prototypes build.
8029 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8030 * sh-tdep.c: Include sh64-tdep.h.
8031 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8032 * sh64-tdep.c: Include sh64-tdep.h.
8033 * sh64-tdep.h: New file.
8034
19080931
MR
80352012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8036
8037 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8038
9aac7884
MR
80392012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8040
8041 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8042 sp_regnum once the gdbarch_init_osabi hook has been called.
8043
a385295e
MR
80442012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8045
8046 * mips-tdep.c (mips32_bc1_pc): New function.
8047 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8048 BPOSGE32 and BPOSGE64 instructions.
8049 (deal_with_atomic_sequence): Likewise.
8050 (mips32_instruction_has_delay_slot): Likewise.
8051
1faeff08 80522012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8053 Chris Dearman <chris@mips.com>
8054 Maciej W. Rozycki <macro@codesourcery.com>
8055 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8056
8057 * features/mips-dsp.xml: New file.
8058 * features/mips64-dsp.xml: New file.
8059 * features/mips-dsp-linux.xml: New file.
8060 * features/mips64-dsp-linux.xml: New file.
8061 * features/Makefile (WHICH): Add mips-dsp-linux and
8062 mips64-dsp-linux.
8063 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8064 * features/mips-dsp-linux.c: New file.
8065 * features/mips64-dsp-linux.c: New file.
8066 * regformats/mips-dsp-linux.dat: New file.
8067 * regformats/mips64-dsp-linux.dat: New file.
8068 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8069 registers.
8070 (mips64_linux_register_addr): Likewise.
8071 (mips64_linux_regsets_fetch_registers): Likewise.
8072 (mips64_linux_regsets_store_registers): Likewise.
8073 (mips64_linux_fetch_registers): Update call to
8074 mips64_linux_regsets_fetch_registers.
8075 (mips64_linux_store_registers): Update call to
8076 mips64_linux_regsets_store_registers.
8077 (mips_linux_read_description): Probe for DSP registers.
8078 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8079 and initialize_tdesc_mips64_dsp_linux.
8080 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8081 Remove padding of no longer used embedded register slots.
8082 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8083 (MIPS_RESTART_REGNUM): Redefine enum value.
8084 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8085 strings.
8086 (mips_tx39_reg_names): Likewise.
8087 (mips_linux_reg_names): New array of register names for Linux
8088 targets.
8089 (mips_register_name): Check for a null pointer in
8090 mips_processor_reg_names and return an empty string.
8091 (mips_register_type): Exclude embedded registers for the IRIX
8092 and Linux ABIs.
8093 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8094 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8095 DSP registers.
8096 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8097 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8098 (mips_gdbarch_init): Likewise. Initialize internal register
8099 indices for the Linux ABI. Use dynamic numbers to refer to
8100 registers, as applicable, while parsing the target description.
8101 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8102
263689d8
JB
81032012-03-01 Joel Brobecker <brobecker@adacore.com>
8104
8105 * frame.h (read_frame_register_unsigned): Fix typo in function
8106 description.
8107
f3b4f45c
PA
81082012-03-01 Pedro Alves <palves@redhat.com>
8109
8110 * jit-reader.in [!__cplusplus]
8111 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8112
b03a2011
PA
81132012-03-01 Pedro Alves <palves@redhat.com>
8114
8115 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8116 * configure: Regenerate.
8117
70221824
PA
81182012-03-01 Pedro Alves <palves@redhat.com>
8119
8120 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8121 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8122 (ftrace_command, strace_command): Make static.
8123 * d-lang.c (_initialize_d_language): Declare.
8124 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8125 * dwarf2loc.c (_initialize_dwarf2loc):
8126 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8127 * exec.c (exec_get_section_table): Make static.
8128 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8129 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8130 * inferior.c (remove_inferior_command, add_inferior_command)
8131 (clone_inferior_command): Make static.
8132 * linux-nat.c (linux_nat_thread_address_space)
8133 (linux_nat_core_of_thread): Make static.
8134 * linux-tdep.c (_initialize_linux_tdep): Declare.
8135 * objc-lang.c (_initialize_objc_lang): Declare.
8136 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8137 Make static.
8138 (_initialize_opencl_language): Declare.
8139 * record.c (_initialize_record): Declare.
8140 * remote.c (demand_private_info, remote_get_tib_address)
8141 (remote_supports_cond_tracepoints)
8142 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8143 Make static.
8144 * skip.c (_initialize_step_skip): Declare.
8145 * symtab.c (skip_prologue_using_lineinfo): Make static.
8146 * tracepoint.c (delete_trace_state_variable)
8147 (trace_variable_command, delete_trace_variable_command)
8148 (get_uploaded_tsv, find_matching_tracepoint_location)
8149 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8150 Make static.
8151 * value.c (pack_unsigned_long): Make static.
8152 * varobj.c (varobj_ensure_python_env): Make static.
8153 * windows-tdep.c (_initialize_windows_tdep): Declare.
8154 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8155
33fbcbee
PA
81562012-03-01 Pedro Alves <palves@redhat.com>
8157
8158 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8159 gdbarch parameter.
8160 (linux_init_abi): Install it as has_shared_address_space gdbarch
8161 callback.
8162
44d0cd3b
PA
81632012-03-01 Pedro Alves <palves@redhat.com>
8164
8165 * observer.c (observer_test_first_notification_function)
8166 (observer_test_second_notification_function)
8167 (observer_test_third_notification_function): Add declarations.
8168
ed01b82c
PA
81692012-03-01 Pedro Alves <palves@redhat.com>
8170
8171 * common/signals.c (default_target_signal_to_host)
8172 (default_target_signal_from_host): Move ...
8173 * arch-utils.c: ... here.
8174 * arch-utils.h (default_target_signal_to_host)
8175 (default_target_signal_from_host): Declare.
8176
8177 * common/signals.c (target_signal_from_command): Move ...
8178 * infrun.c: ... here.
8179 * inferior.h (target_signal_from_command): Declare.
8180 * target.h (target_signal_from_command)
8181 (default_target_signal_from_host, default_target_signal_to_host):
8182 Delete declarations.
8183
8184 * common/signals.c (_initialize_signals): Delete.
8185
c9b87335
PA
81862012-03-01 Pedro Alves <palves@redhat.com>
8187
8188 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8189 both __cplusplus and !__cplusplus.
8190
9340a6c0
PA
81912012-03-01 Pedro Alves <palves@redhat.com>
8192
8193 * psymtab.c (find_and_open_source): Delete declaration.
8194 * source.c (find_and_open_source): Move comment ...
8195 * source.h (find_and_open_source): ... to this new declaration.
8196
e451c4a1
PA
81972012-03-01 Pedro Alves <palves@redhat.com>
8198
8199 * inline-frame.c: Include inline-frame.h.
8200
983fb104
PA
82012012-03-01 Pedro Alves <palves@redhat.com>
8202
8203 * tui/tui-data.c (set_gen_win_origin): Delete.
8204 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8205 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8206
5fbce5df
PA
82072012-03-01 Pedro Alves <palves@redhat.com>
8208
8209 * remote.c (encode_actions): Delete declaration.
8210 * tracepoint.c (encode_actions): Make extern.
8211 * tracepoint.h (encode_actions): Declare.
8212
49a8461d
PA
82132012-03-01 Pedro Alves <palves@redhat.com>
8214
8215 * python/py-breakpoint.c: Include python.h.
8216 * python/py-continueevent.c (create_continue_event_object): Make
8217 static.
8218 * python/py-lazy-string.c (stpy_get_type): Make static.
8219 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8220 Make static.
8221 * python/py-utils.c (unicode_to_target_python_string): Make
8222 static.
8223 * python/py-value.c: Include python.h.
8224
9079102f
PA
82252012-03-01 Pedro Alves <palves@redhat.com>
8226
8227 * inferior.c (delete_threads_of_inferior): Delete.
8228
a298c5e8
PA
82292012-03-01 Pedro Alves <palves@redhat.com>
8230
8231 Import fallback definitions from glibc.
8232
8233 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8234 ps_prochandle): Forward declare.
8235 (ps_err_e): Use glibc's comments.
8236 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8237 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8238 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8239 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8240 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8241 (struct ps_prochandle): Adjust comment.
8242
e3084549
PA
82432012-03-01 Pedro Alves <palves@redhat.com>
8244
8245 * ada-lang.c (ada_modulus_from_name): Delete.
8246 * ada-lex.l (lexer_init): Make static.
8247
ad5f7d6e
PA
82482012-03-01 Pedro Alves <palves@redhat.com>
8249
8250 PR gdb/13767
8251
8252 * frame.c (read_frame_register_unsigned): New.
8253 * frame.h (read_frame_register_unsigned): Declare.
8254 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8255 Handle it.
8256 (print_i387_control_word): New parameter `control_p'. Handle it.
8257 (i387_print_float_info): Handle unavailable float registers.
8258
e0a4d108
KS
82592012-03-01 Keith Seitz <keiths@redhat.com>
8260
8261 * linespec.c (decode_line_2): Sort the list of methods
8262 alphabetically before presenting the user with a selection
8263 menu.
8264
122d1940
DE
82652012-03-01 Doug Evans <dje@google.com>
8266
8267 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8268 has_namespace_info.
8269 (dwarf2_read_abbrevs): Remove corresponding initialization.
8270
7d74f244
DE
82712012-03-01 Scott J. Goldman <scottjg@vmware.com>
8272
8273 * NEWS: Mention new python command class gdb.COMMAND_USER.
8274 * cli/cli-cmds.c (show_user): Print error when used on a python
8275 command.
8276 (init_cli_cmds): Update documentation strings for "show user" and
8277 "set/show max-user-call-depth" to clarify that it does not apply to
8278 python commands.
8279 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8280 error check.
8281 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8282 gdb python api.
8283 * top.c (execute_command): Only execute a user-defined command as a
8284 legacy macro if c->user_commands is set.
8285
e88acd96
TT
82862012-03-01 Tom Tromey <tromey@redhat.com>
8287
8288 * valprint.h (struct generic_val_print_decorations): New.
8289 (generic_val_print): Declare.
8290 * valprint.c (generic_val_print): New function.
8291 * p-valprint.c (p_decorations): New global.
8292 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8293 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8294 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8295 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8296 * m2-valprint.c (m2_decorations): New global.
8297 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8298 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8299 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8300 TYPE_CODE_ERROR>: Call generic_val_print.
8301 * f-valprint.c (f_decorations): New global.
8302 (f_val_print): Use print_function_pointer_address.
8303 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8304 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8305 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8306 generic_val_print.
8307 * c-valprint.c (c_decorations): New global.
8308 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8309 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8310 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8311 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8312 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8313 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8314 case.
8315
d3eab38a
TT
83162012-03-01 Tom Tromey <tromey@redhat.com>
8317
8318 * valprint.c (val_print): Update.
8319 * p-valprint (pascal_val_print): Return void.
8320 * p-lang.h (pascal_val_print): Return void.
8321 * m2-valprint.c (m2_val_print): Return void.
8322 * m2-lang.h (m2_val_print): Return void.
8323 * language.h (struct language_defn) <la_val_print>: Return void.
8324 * language.c (unk_lang_val_print): Return void.
8325 * jv-valprint.c (java_val_print): Return void.
8326 * jv-lang.h (java_val_print): Return void.
8327 * f-valprint.c (f_val_print): Return void.
8328 * f-lang.h (f_val_print): Return void.
8329 * d-valprint.c (d_val_print): Return void.
8330 (dynamic_array_type): Update.
8331 * d-lang.h (d_val_print): Return void.
8332 * c-valprint.c (c_val_print): Return void.
8333 * c-lang.h (c_val_print): Return void.
8334 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8335 void.
8336 * ada-lang.h (ada_val_print): Return void.
8337
35c0084b
TT
83382012-03-01 Tom Tromey <tromey@redhat.com>
8339
8340 * value.h (val_print): Return void.
8341 * valprint.c (val_print): Return void.
8342
a1f5dd1b
TT
83432012-03-01 Tom Tromey <tromey@redhat.com>
8344
8345 * value.h (common_val_print): Return void.
8346 * valprint.c (common_val_print): Return void.
8347
8e069a98
TT
83482012-03-01 Tom Tromey <tromey@redhat.com>
8349
8350 * value.h (value_print): Return void.
8351 * valprint.c (value_print): Return void.
8352 * p-valprint.c (pascal_value_print): Return void.
8353 * p-lang.h (pascal_value_print): Return void.
8354 * language.h (struct language_defn) <la_value_print>: Return
8355 void.
8356 * language.c (unk_lang_value_print): Return void.
8357 * jv-valprint.c (java_value_print): Return void.
8358 * jv-lang.h (java_value_print): Return void.
8359 * f-valprint.c (c_value_print): Don't declare.
8360 Include c-lang.h.
8361 * c-valprint.c (c_value_print): Return void.
8362 * c-lang.h (c_value_print): Return void.
8363 * ada-valprint.c (ada_value_print): Return void.
8364 * ada-lang.h (ada_value_print): Return void.
8365
be335936
TT
83662012-03-01 Tom Tromey <tromey@redhat.com>
8367
8368 * value.c (value_primitive_field): Handle virtual base classes.
8369
b0db66a7
TT
83702012-03-01 Tom Tromey <tromey@redhat.com>
8371
8372 * gdbtypes.h (struct vbase): Remove.
8373
132c57b4
TT
83742012-03-01 Tom Tromey <tromey@redhat.com>
8375
8376 * c-valprint.c (print_function_pointer_address): Move...
8377 * valprint.c: ... here. Make non-static.
8378 * m2-valprint.c (print_function_pointer_address): Remove.
8379 * valprint.h (print_function_pointer_address): Declare.
8380
e41eec66
JB
83812012-03-01 Joel Brobecker <brobecker@adacore.com>
8382
8383 * NEWS: Document the fact that one can provide a condition when
8384 creating an Ada exception catchpoint.
8385
19c37f24
TT
83862012-03-01 Tom Tromey <tromey@redhat.com>
8387
8388 * valprint.c (val_print_type_code_flags): Fix placement of
8389 trailing brace.
8390
f0fed3a3
JB
83912012-03-01 Joel Brobecker <brobecker@adacore.com>
8392
8393 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8394 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8395 environment variable before calling update-copyright.
8396
8ba85d85
JB
83972012-03-01 Joel Brobecker <brobecker@adacore.com>
8398
8399 * gnulib/extra/update-copyright: Update to the latest from
8400 gnulib's git repository.
8401 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8402 variable to 2 instead of 1.
8403
8219b1e8
JB
84042012-02-29 Joel Brobecker <brobecker@adacore.com>
8405
8406 * varobj.c (c_value_of_variable): Remove dead code.
8407
718cb7da
JB
84082012-02-29 Joel Brobecker <brobecker@adacore.com>
8409
8410 * ada-lex.p (processId): Do not modify already encoded IDs.
8411 Update function documentation.
8412
739593e0
JB
84132012-02-29 Joel Brobecker <brobecker@adacore.com>
8414
8415 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8416 "name" with "struct symbol *name_sym".
8417 * ada-exp.y (write_var_or_type): Update call to
8418 ada_find_renaming_symbol.
8419 "name" with "struct symbol *name_sym". Adjust Implementation
8420 accordingly. Adjust the function documentation.
8421
852dff6c
JB
84222012-02-29 Joel Brobecker <brobecker@adacore.com>
8423
8424 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8425 * ada-lang.c (ada_find_any_type): Add advance declaration.
8426 Make static. Replace ada_find_any_symbol by
8427 ada_find_any_type_symbol.
8428 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8429 Improve function description. Make static.
8430 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8431 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8432
1b611343
JB
84332012-02-29 Joel Brobecker <brobecker@adacore.com>
8434
8435 * ada-lang.c (struct tag_args): Delete.
8436 (ada_get_tsd_type): Function body moved up in source file.
8437 (ada_tag_name_1, ada_tag_name_2): Delete.
8438 (ada_get_tsd_from_tag): New function.
8439 (ada_tag_name_from_tsd): New function.
8440 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8441 to determine the tag name.
8442
41246937
JB
84432012-02-29 Joel Brobecker <brobecker@adacore.com>
8444
8445 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8446 declaration.
8447 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8448 function.
8449
ffde82bf
JB
84502012-02-29 Joel Brobecker <brobecker@adacore.com>
8451
8452 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8453
2ad01556
JB
84542012-02-29 Joel Brobecker <brobecker@adacore.com>
8455
8456 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8457 full searches.
8458
99b1c762
JB
84592012-02-29 Joel Brobecker <brobecker@adacore.com>
8460
8461 * ada-lang.c (constrained_packed_array_type): If there is a
8462 parallel XA type, use it to determine the array index type.
8463
2d4a02ee
JB
84642012-02-29 Joel Brobecker <brobecker@adacore.com>
8465
8466 * ada-valprint.c (ada_val_print_1): If our value is a reference
8467 to an array descriptor, dereference it before converting it
8468 to a simple array.
8469
c48db5ca
JB
84702012-02-29 Joel Brobecker <brobecker@adacore.com>
8471
8472 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8473 creating fixed value.
8474 (ada_value_ind, ada_coerce_ref, assign_component)
8475 (ada_evaluate_subexp): Remove call to unwrap_value before
8476 call to ada_to_fixed_value.
8477
2e6fda7d
JB
84782012-02-29 Joel Brobecker <brobecker@adacore.com>
8479
8480 * ada-lang.c (to_fixed_array_type): Set result's type name.
8481
5845583d
JB
84822012-02-29 Joel Brobecker <brobecker@adacore.com>
8483
8484 * ada-lang.c (catch_ada_exception_command_split): Add new
8485 argument cond_string. Add support for condition at end of
8486 "catch exception" commands.
8487 (ada_decode_exception_location): Add new argument cond_string.
8488 Update call to catch_ada_exception_command_split.
8489 (create_ada_exception_catchpoint): Add new argument cond_string.
8490 Set the breakpoint condition if needed.
8491 (catch_ada_exception_command): Update call to
8492 ada_decode_exception_location.
8493 (ada_decode_assert_location): Add function documentation.
8494 Add support for condition at end of "catch assert" command.
8495 (catch_assert_command): Update calls to ada_decode_assert_location
8496 and create_ada_exception_catchpoint.
8497
9a7f938f
JK
84982012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8499
8500 Fix disp-step-syscall.exp: fork: single step over fork.
8501 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8502 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8503 comment, change parameters gdbarch and ptid to regcache. Remove
8504 parameter regcache, initialize gdbarch from regcache here.
8505 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8506 New functions.
8507 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8508 instead.
8509 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8510 'syscall'. Make the 'int' check more strict.
8511
ffdf6de5
JK
85122012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8513
8514 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8515 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8516 (i386_linux_intx80_sysenter_syscall_record): ... here.
8517 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8518 Use the renamed function name.
8519
c70a6932
JK
85202012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8521
8522 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8523 * breakpoint.c (until_break_command): Likewise.
8524 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8525 * infcall.c (call_function_by_hand): Likewise.
8526 * infcmd.c (finish_forward): Likewise.
8527 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8528
05b8a789 85292012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8530
d4cd3da9
JB
8531 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8532 avoid variable assignments inside condition.
8533
6425366c
JK
85342012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8535
8536 Fix static analysis issue found by cppcheck.
8537 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8538 uninitialized BUF for size 2.
8539
c8cef75f 85402012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8541 Nathan Froyd <froydnj@codesourcery.com>
8542 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8543
8544 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8545 (mips16_instruction_has_delay_slot): Likewise.
8546 (mips_segment_boundary): Likewise.
8547 (mips_adjust_breakpoint_address): Likewise.
8548 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8549
473347ad 85502012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8551 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8552
8553 * infrun.c (handle_inferior_event): Don't proceed through
8554 shared library trampolines if stepping at the machine
8555 instruction level.
8556
cf233303
MR
85572012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8558
8559 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8560 too.
8561
cb2cf4ce
TS
85622012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8563
8564 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8565 (sh_stub_unwind_sniffer): New functions.
8566 (sh_stub_unwind): New variable.
8567 (sh_gdbarch_init): Wire everything.
8568
644cebc9
PA
85692012-02-27 Pedro Alves <palves@redhat.com>
8570
8571 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8572 (linux_nat_post_attach_wait): Adjust to use
8573 linux_proc_pid_is_stopped.
8574 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8575 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8576 based on pid_is_stopped from both linux-nat.c and
8577 gdbserver/linux-low.c, and renamed.
8578
283002cf
MR
85792012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8580
8581 * remote.c (remote_watchpoint_addr_within_range): New function.
8582 (init_remote_ops): Use it.
8583
9b3e86b1
MR
85842012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8585
8586 * target.h (target_watchpoint_addr_within_range): Document macro.
8587
e36930bb
PA
85882012-02-24 Pedro Alves <palves@redhat.com>
8589
8590 * stack.c (set_last_displayed_sal): Issue internal_error instead
8591 of warning, and issue it after clearing the last displayed sal.
8592
883bc8d1
PA
85932012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8594 Pedro Alves <palves@redhat.com>
8595
8596 * breakpoint.c (until_break_command): Install breakpoints after
8597 all frame manipulations.
8598
b775012e
LM
85992012-02-24 Luis Machado <lgustavo@codesourcery.com>
8600
8601 * remote.c (remote_supports_cond_breakpoints): New forward
8602 declaration.
8603 (remote_add_target_side_condition): New function.
8604 (remote_insert_breakpoint): Add target-side breakpoint
8605 conditional if supported.
8606 (remote_insert_hw_breakpoint): Likewise.
8607 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8608 hook.
8609
8610 * target.c (update_current_target): Inherit
8611 to_supports_evaluation_of_breakpoint_conditions.
8612 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8613
8614 * target.h (struct target_ops)
8615 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8616 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8617
8618 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8619 (condition_evaluation_both, condition_evaluation_auto,
8620 condition_evaluation_host, condition_evaluation_target,
8621 condition_evaluation_enums, condition_evaluation_mode_1,
8622 condition_evaluation_mode): New static globals.
8623 (translate_condition_evaluation_mode): New function.
8624 (breakpoint_condition_evaluation_mode): New function.
8625 (gdb_evaluates_breakpoint_condition_p): New function.
8626 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8627 (mark_breakpoint_modified): New function.
8628 (mark_breakpoint_location_modified): New function.
8629 (set_condition_evaluation_mode): New function.
8630 (show_condition_evaluation_mode): New function.
8631 (bp_location_compare_addrs): New function.
8632 (get_first_location_gte_addr): New helper function.
8633 (set_breakpoint_condition): Free condition bytecode if locations
8634 has become unconditional. Call mark_breakpoint_modified (...).
8635 (condition_command): Call update_global_location_list (1) for
8636 breakpoints.
8637 (breakpoint_xfer_memory): Use is_breakpoint (...).
8638 (is_breakpoint): New function.
8639 (parse_cond_to_aexpr): New function.
8640 (build_target_condition_list): New function.
8641 (insert_bp_location): Handle target-side conditional
8642 breakpoints and call build_target_condition_list (...).
8643 (update_inserted_breakpoint_locations): New function.
8644 (insert_breakpoint_locations): Handle target-side conditional
8645 breakpoints.
8646 (bpstat_check_breakpoint_conditions): Add comment.
8647 (bp_condition_evaluator): New function.
8648 (bp_location_condition_evaluator): New function.
8649 (print_breakpoint_location): Print information on where the condition
8650 will be evaluated.
8651 (print_one_breakpoint_location): Likewise.
8652 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8653 breakpoint location.
8654 (force_breakpoint_reinsertion): New functions.
8655 (update_global_location_list): Handle target-side breakpoint
8656 conditions.
8657 Reinsert locations that are already inserted if conditions have
8658 changed.
8659 (bp_location_dtor): Free agent expression bytecode.
8660 (disable_breakpoint): Call mark_breakpoint_modified (...).
8661 Call update_global_location_list (...) with parameter 1 for breakpoints.
8662 (disable_command): Call mark_breakpoint_location_modified (...).
8663 Call update_global_location_list (...) with parameter 1 for breakpoints.
8664 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8665 (enable_command): mark_breakpoint_location_modified (...).
8666 (_initialize_breakpoint): Update documentation and add
8667 condition-evaluation breakpoint subcommand.
8668
8669 * breakpoint.h: Include ax.h.
8670 (condition_list): New data structure.
8671 (condition_status): New enum.
8672 (bp_target_info) <cond_list>: New field.
8673 (bp_location) <condition_changed, cond_bytecode>: New fields.
8674 (is_breakpoint): New prototype.
8675
3788aec7
LM
86762012-02-24 Luis Machado <lgustavo@codesourcery.com>
8677
8678 * remote.c (remote_state) <cond_breakpoints>: New field.
8679 (PACKET_ConditionalBreakpoints): New enum.
8680 (remote_cond_breakpoint_feature): New function.
8681 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8682 (remote_supports_cond_breakpoints): New function.
8683 (_initialize_remote): Add new packet configuration for
8684 target-side conditional breakpoints.
8685
72895ff6
LM
86862012-02-24 Luis Machado <lgustavo@codesourcery.com>
8687
8688 * NEWS: Mention target-side conditional breakpoint support,
8689 new condition-evaluation breakpoint subcommand and remote
8690 packet extensions.
8691
dea2aa5f
LM
86922012-02-24 Luis Machado <lgustavo@codesourcery.com>
8693
8694 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8695 number.
8696
8a8bc27f
TS
86972012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8698
8699 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8700 (after_prologue): Remove.
8701
6b446fdf
TT
87022012-02-23 Tom Tromey <tromey@redhat.com>
8703
8704 * jv-valprint.c (java_val_print): Remove dead code.
8705
ef59abfb
TG
87062012-02-23 Tristan Gingold <gingold@adacore.com>
8707
a09130f9
PA
8708 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8709 known_tasks_element and known_tasks_length fields.
8710 (read_known_tasks_array): Change argument type. Use pointer type
8711 and number of elements from DATA. Adjust.
8712 (read_known_tasks_list): Likewise.
8713 (get_known_tasks_addr): Remove.
8714 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8715 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8716 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8717
def166f6
JK
87182012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8719
8720 PR backtrace/13716
8721 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8722 it after set_momentary_breakpoint.
8723
aeaa2474
SA
87242012-02-22 Sterling Augustine <saugustine@google.com>
8725
8726 PR 13689:
8727 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8728
feea76c2
GB
87292012-02-22 Gary Benson <gbenson@redhat.com>
8730
8731 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8732 (find_slot_in_mapped_hash): Likewise.
8733
f06e05e0
JK
87342012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8735
8736 PR build/13638
8737 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8738 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8739 * configure: Regenerate.
8740
b54a8fd7
PA
87412012-02-21 Tristan Gingold <gingold@adacore.com>
8742 Pedro Alves <palves@redhat.com>
8743
8744 * ia64-tdep.c: Do not include libunwind-ia64.h.
8745 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8746 Include libunwind-ia64.h instead of libunwind.h.
8747 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8748 for libunwind.h existence.
8749 * configure, config.in: Regenerate.
8750
dfcee124
AG
87512012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8752
8753 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8754 instead of value_rtti_target_type.
8755 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8756 instead of value_rtti_target_type.
8757 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8758 value_rtti_target_type.
8759 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8760 (value_rtti_target_type): Rename to ...
8761 (value_rtti_indirect_type): ... here and make it indirect. Update
8762 function comment.
8763 * value.c (readjust_indirect_value_type): New function.
8764 (coerce_ref): Support for enclosing type setting for references
8765 with readjust_indirect_value_type.
8766 * value.h (readjust_value_type): New declaration.
8767 (value_rtti_target_type): Rename to ...
8768 (value_rtti_indirect_type): ... here.
8769
02568277
AG
87702012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8771
8772 * MAINTAINERS (Write After Approval): Add myself to the list.
8773
10c07b7e 87742012-02-20 Doug Evans <dje@google.com>
28ee876a 8775
d82ea6a8
DE
8776 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8777 Rename objfile_p_char parameter to objfilep.
8778 (build_objfile_section_table): Result is now void. All callers
8779 updated.
8780 * objfiles.h (struct objfile): Tweak comments, whitespace.
8781 (build_objfile_section_table): Update.
8782
28ee876a
DE
8783 * elfread.c (elf_symfile_segments): Fix warning text.
8784
24c79950
TT
87852012-02-20 Tom Tromey <tromey@redhat.com>
8786
8787 PR gdb/13498:
8788 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8789 particular set of file names once.
8790 (dw2_map_symbol_filenames): Likewise.
8791
3a9b40b6
JK
87922012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8793
8794 Code cleanup.
8795 * main.c (write_files): Remove the declaration.
8796 (external_editor_command): Move the declaration ...
8797 [GDBTK] (external_editor_command): ... here. Fix the comment.
8798
4d0795ca
TT
87992012-02-20 Tom Tromey <tromey@redhat.com>
8800
8801 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8802 extraneous block.
8803
637fd620
TG
88042012-02-20 Tristan Gingold <gingold@adacore.com>
8805
8806 * darwin-nat.h (enum darwin_msg_state): Add comments.
8807
6f124894
TG
88082012-02-20 Tristan Gingold <gingold@adacore.com>
8809
8810 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8811 value.
8812
2e6e3d9c
JB
88132012-20-18 Joel Brobecker <brobecker@adacore.com>
8814
8815 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8816 between function description and implementation.
8817
2e8265fd
TT
88182012-02-17 Tom Tromey <tromey@redhat.com>
8819
8820 PR python/12070:
8821 * python/py-event.c (event_object_getset): New global.
8822 (event_object_type): Reference it.
8823 * python/py-type.c (field_object_getset): New global.
8824 (field_object_type): Reference it.
8825 * python/python-internal.h (gdb_py_generic_dict): Declare.
8826 * python/py-utils.c (gdb_py_generic_dict): New function.
8827
8544a150 88282012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 8829
8544a150 8830 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 8831
ca193e27
TS
88322012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8833
8834 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8835 TYPE_CALLING_CONVENTION annotation.
8836
e5586183
KB
88372012-02-16 Kevin Buettner <kevinb@redhat.com>
8838
8839 * MAINTAINERS: Add rx to target ISA section.
8840 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8841 (ALLDEPFILES): Add rx-tdep.c.
8842
7dcd53a0
TT
88432012-02-16 Tom Tromey <tromey@redhat.com>
8844
8845 * symfile.c (symbol_file_add_main_1): Use inferior's
8846 symfile_flags.
8847 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8848 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8849 inferior.
8850 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8851 inferior.
8852 (follow_exec): Use inferior's symfile_flags.
8853 * inferior.h (struct inferior) <symfile_flags>: New field.
8854
ddd60447
MF
88552012-02-16 Mike Frysinger <vapier@gentoo.org>
8856
8857 PR gdb/9734:
8858 * remote-sim.c (gdbsim_create_inferior): Call error() when
8859 sim_create_inferior() fails.
8860
b0d32fb6
TG
88612012-02-16 Josh Matthews <josh@joshmatthews.net>
8862
8863 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8864
9addecb9
TT
88652012-02-16 Tom Tromey <tromey@redhat.com>
8866
8867 PR c++/13653:
8868 * thread.c (struct current_thread_cleanup) <was_removable>: New
8869 field.
8870 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8871 (make_cleanup_restore_current_thread): Initialize new field.
8872
a58b110a
KB
88732012-02-15 Kevin Buettner <kevinb@redhat.com>
8874
8875 * MAINTAINERS: Add rl78 to target ISA section.
8876 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8877 (ALLDEPFILES): Add rl78-tdep.c.
8878 * NEWS: Mention rl78 as a new target.
8879
4cb6da1c
AR
88802012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8881
8882 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8883 data.
8884 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8885
3af2590d
TT
88862012-02-15 Tom Tromey <tromey@redhat.com>
8887
8888 PR gdb/12659:
8889 * infcmd.c (registers_info): Print just the current register's
8890 name.
8891
c6910659
TT
88922012-02-15 Tom Tromey <tromey@redhat.com>
8893
8894 * python/py-symbol.c (sympy_value): Use _().
8895
7cee1e54
PA
88962012-02-15 Pedro Alves <palves@redhat.com>
8897
8898 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8899 output to be like native targets'.
8900 (remote_pid_to_str): Special case the null ptid.
8901
816338b5
SS
89022012-02-14 Stan Shebs <stan@codesourcery.com>
8903
8904 * NEWS: Mention enable count command.
8905 * breakpoint.h (struct breakpoint): New field enable_count.
8906 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8907 (enable_breakpoint): Add arg to call.
8908 (struct disp_data): New struct.
8909 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8910 (do_map_enable_once_breakpoint): Create a struct and pass it.
8911 (do_map_enable_delete_breakpoint): Ditto.
8912 (do_map_enable_count_breakpoint): New function.
8913 (enable_count_command): New function.
8914 (bpstat_stop_status): Decrement enable_count.
8915 (print_one_breakpoint_location): Report enable count.
8916 (_initialize_breakpoint): Add enable count command.
8917
c47a44f4
KB
89182012-02-14 Kevin Buettner <kevinb@redhat.com>
8919
8920 * rl78-tdep.c (reggroups.h): Include.
8921 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8922 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8923 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8924 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8925 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8926 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8927 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8928 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8929 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8930 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8931 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8932 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8933 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8934 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8935 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8936 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8937 beginning of register list.
8938 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8939 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8940 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8941 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8942 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8943 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8944 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8945 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8946 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8947 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8948 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8949 the pseudo registers. Rearrange other pseudo registers too so
8950 that the bank registers appear at the end.
8951 (rl78_register_type): Account for the fact that the byte sized
8952 bank registers are now pseudo-registers.
8953 (rl78_register_name): Rearrange the register name array. Make
8954 initial set of raw banked registers inaccessible.
8955 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8956 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8957 case for copying bytes back and forth between raw and pseudo
8958 versions of the banked registers. Update other cases to reflect
8959 the changed names.
8960 (rl78_return_value): Update to account for changed names of
8961 raw registers.
8962 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8963 rl78_register_sim_regno().
8964
e4569f1e
KB
89652012-02-14 Kevin Buettner <kevinb@redhat.com>
8966
8967 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8968 the name parameter being passed to find_pc_partial_function().
8969
7a05aae7
JK
89702012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8971
8972 * MAINTAINERS: Step down from being ia64 target maintainer.
8973
11fde611
JK
89742012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8975
8976 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8977 compilation warning.
8978
57008375
JK
89792012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8980
8981 Fix crash on loaded shlibs without loaded exec_bfd.
8982 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8983 (set_section_command): Replace exec_bfd by p->bfd.
8984
ff3c9849
TT
89852012-02-10 Tom Tromey <tromey@redhat.com>
8986
8987 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8988 when we have a C++ qualified name.
8989
db2b9fdd
PA
89902012-02-10 Pedro Alves <palves@redhat.com>
8991
8992 * inferior.c (inferior_pid_to_str): New.
8993 (print_inferior, inferior_command): Use it.
8994
12cd34f3
PA
89952012-02-10 Pedro Alves <palves@redhat.com>
8996
8997 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8998 the test CFLAGS.
8999 * configure: Regenerate.
9000
e871429d
JK
90012012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9002
9003 * linespec.c (decode_line_internal): Fix comment correctness.
9004
1916efaf
PA
90052012-02-09 Valery Khromov <valery.khromov@gmail.com>
9006
9007 PR gdb/12953
9008 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9009 * amd64bsd-nat.c: Add support for debug registers (adapted from
9010 i386bsd-nat.c).
9011 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9012 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9013 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9014 (amd64bsd_dr_get_control): New functions.
9015 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9016 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9017 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9018 watchpoints initialization.
9019 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9020
f4859d94
JK
90212012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9022
9023 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9024 flds_bnds.fields.
9025 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9026
c56a97f9
JK
90272012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9028
9029 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9030
1a119f36
JB
90312012-02-08 Joel Brobecker <brobecker@adacore.com>
9032
9033 * language.h (symbol_name_cmp_ftype): Renames
9034 symbol_name_match_p_ftype.
9035 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9036 la_get_symbol_name_match_p.
9037 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9038 ada_get_symbol_name_match_p. Update comment.
9039 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9040 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9041 Renames symbol_name_match_p. Update field type.
9042 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9043 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9044 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9045 "la_get_symbol_name_cmp" in comments.
9046 * language.c: Likewise.
9047
c71bb1cf
RO
90482012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9049
9050 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9051 %eflags offset.
9052 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9053 (amd64_sol2_gregset32_reg_offs): Likewise.
9054
4b2d20a5
TG
90552012-02-08 Joel Brobecker <brobecker@adacore.com>
9056
9057 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9058 of the returned BFD is allocated by GDB.
9059
f0823d2c
TT
90602012-02-07 Tom Tromey <tromey@redhat.com>
9061
9062 PR python/12027:
9063 * python/python-internal.h (frame_object_type): Declare.
9064 * python/py-symbol.c (sympy_needs_frame): New function.
9065 (sympy_value): New function.
9066 (symbol_object_getset): Add "needs_frame".
9067 (symbol_object_methods): Add "value".
9068 * python/py-frame.c (frame_object_type): No longer static.
9069
64e7d9dd
TT
90702012-02-07 Tom Tromey <tromey@redhat.com>
9071
9072 PR python/13599:
9073 * python/py-symbol.c (sympy_line): New function.
9074 (symbol_object_getset): Add "line".
9075
1d6b2d2b
TT
90762012-02-07 Tom Tromey <tromey@redhat.com>
9077
9078 * charset.c (find_charset_names): Check 'in' against NULL.
9079
0d5cff50
DE
90802012-02-06 Doug Evans <dje@google.com>
9081
9082 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9083 and fields.name members from char * to const char *. All uses updated.
9084 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9085 from char * to const char *. All uses updated.
9086 (type_name_no_tag): Update.
9087 (lookup_unsigned_typename, lookup_signed_typename): Update.
9088 * gdbtypes.c (type_name_no_tag): Change result type
9089 from char * to const char *. All callers updated.
9090 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9091 name parameter from char * to const char *.
9092 * symtab.h (struct cplus_specific): Change type of demangled_name
9093 member from char * to const char *. All uses updated.
9094 (struct general_symbol_info): Change type of name and
9095 mangled_lang.demangled_name members from char * to const char *.
9096 All uses updated.
9097 (symbol_get_demangled_name, symbol_natural_name): Update.
9098 (symbol_demangled_name, symbol_search_name): Update.
9099 * symtab.c (symbol_get_demangled_name): Change result type
9100 from char * to const char *. All callers updated.
9101 (symbol_natural_name, symbol_demangled_name): Ditto.
9102 (symbol_search_name): Ditto.
9103 (completion_list_add_name): Change type of symname,sym_text,
9104 text,word parameters from char * to const char *.
9105 (completion_list_objc_symbol): Change type of sym_text,
9106 text,word parameters from char * to const char *.
9107 * ada-lang.c (find_struct_field): Change type of name parameter
9108 from char * to const char *.
9109 (encoded_ordered_before): Similarly for N0,N1 parameters.
9110 (old_renaming_is_invisible): Similarly for function_name parameter.
9111 (ada_type_name): Change result type from char * to const char *.
9112 All callers updated.
9113 * ada-lang.h (ada_type_name): Update.
9114 * buildsym.c (hashname): Change type of name parameter
9115 from char * to const char *.
9116 * buildsym.h (hashname): Update.
9117 * dbxread.c (end_psymtab): Change type of include_list parameter
9118 from char ** to const char **.
9119 * dwarf2read.c (determine_prefix): Change result type
9120 from char * to const char *. All callers updated.
9121 * f-lang.c (find_common_for_function): Change type of name, funcname
9122 parameters from char * to const char *.
9123 * f-lang.c (find_common_for_function): Update.
9124 * f-valprint.c (list_all_visible_commons): Change type of funcname
9125 parameters from char * to const char *.
9126 * gdbarch.sh (static_transform_name): Change type of name parameter
9127 and result from char * to const char *.
9128 * gdbarch.c: Regenerate.
9129 * gdbarch.h: Regenerate.
9130 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9131 of name parameter from char * to const char *.
9132 * jv-lang.c (java_primitive_type_from_name): Ditto.
9133 (java_demangled_signature_length): Similarly for signature parameter.
9134 (java_demangled_signature_copy): Ditto.
9135 (java_demangle_type_signature): Ditto.
9136 * jv-lang.h (java_primitive_type_from_name): Update.
9137 (java_demangle_type_signature): Update.
9138 * objc-lang.c (specialcmp): Change type of a,b parameters
9139 from char * to const char *.
9140 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9141 from char * to const char *. All callers updated.
9142 * p-lang.h (is_pascal_string_type): Update.
9143 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9144 of name parameter from char * to const char *.
9145 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9146 * utils.c (fprintf_symbol_filtered): Ditto.
9147 * defs.h (fprintf_symbol_filtered): Update.
9148 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9149 * stabsread.h (end_psymtab): Update.
9150 * stack.c (find_frame_funname): Change type of funname parameter
9151 from char ** to const char **.
9152 * stack.h (find_frame_funname): Update.
9153 * typeprint.c (type_print): Change type of varstring parameter
9154 from char * to const char *.
9155 * value.h (type_print): Update.
9156 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9157 from char * to const char *. All callers updated.
9158 (xcoff_end_psymtab): Change type of include_list parameter
9159 from char ** to const char **. All callers updated.
9160 (swap_sym): Similarly for name parameter. All callers updated.
9161 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9162 Use xstrdup.
9163 (process_coff_symbol): Use xstrdup.
9164 * stabsread.c (stabs_method_name_from_physname): Renamed from
9165 update_method_name_from_physname. Change result type from void
9166 to char *. All callers updated.
9167 (read_member_functions): In has_destructor case, store name in objfile
9168 obstack instead of malloc space. In !has_stub case, fix mem leak.
9169
5579a92e
TT
91702012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9171
9172 * configure: Rebuild.
9173 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9174 LDFLAGS.
9175
9058f767
KB
91762012-02-03 Kevin Buettner <kevinb@redhat.com>
9177
9178 * configure.tgt (rl78-*-elf): New target.
9179 * rl78-tdep.c: New file.
9180
5b37825d
PW
91812012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9182
9183 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9184 and continue the loop. Add QUIT statement.
9185
e009ee71
TT
91862012-02-03 Tom Tromey <tromey@redhat.com>
9187
9188 PR gdb/13596:
9189 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9190 bfd_lookup_symbol_from_symtab.
9191 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9192 gdb_bfd_lookup_symbol_from_symtab.
9193
f7e44f65
JB
91942012-02-03 Joel Brobecker <brobecker@adacore.com>
9195
9196 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9197 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9198 symbol. Add assertion that sym2 is never NULL.
9199
2c02bd72
DE
92002012-02-02 Doug Evans <dje@google.com>
9201
9202 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9203 "name" parameter to const char ** from char **. All callers updated.
9204 (find_pc_partial_function): Ditto.
9205 (cache_pc_function_name): Change type to const char * from char *.
9206 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9207 (find_pc_partial_function): Update.
9208 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9209 type of "name" parameter to const char * from char *.
9210 All uses updated.
9211 * arch-utils.c (generic_in_solib_return_trampoline): Change
9212 type of "name" parameter to const char * from char *.
9213 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9214 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9215 type of "name" parameter to const char * from char *.
9216 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9217 * gdbarch.c: Regenerate.
9218 * gdbarch.h: Regenerate.
9219 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9220 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9221 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9222 type of "name" parameter to const char * from char *.
9223 * skip.c (skip_function_pc): Ditto.
9224 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9225 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9226 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9227 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9228 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9229 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9230 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9231 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9232 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9233
e886a173
PA
92342012-02-02 Pedro Alves <palves@redhat.com>
9235
9236 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9237 the current inferior has no execution. Make sure the current
9238 remote process matches gdb's current inferior.
9239
c709a7c2
TT
92402012-02-02 Tom Tromey <tromey@redhat.com>
9241
9242 PR gdb/13405:
9243 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9244 read-only memory.
9245
f149aabd
TT
92462012-02-02 Tom Tromey <tromey@redhat.com>
9247
9248 PR gdb/9307:
9249 * symtab.c (lookup_language_this): Set block_found.
9250
03bef283
TT
92512012-02-01 Tom Tromey <tromey@redhat.com>
9252
9253 PR gdb/13431:
9254 * jit.c (struct jit_inferior_data): Rewrite.
9255 (struct jit_objfile_data): New.
9256 (get_jit_objfile_data): New function.
9257 (add_objfile_entry): Update.
9258 (jit_read_descriptor): Return int. Replace descriptor_addr
9259 argument with inf_data. Update. Don't call error.
9260 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9261 descriptor here.
9262 (jit_inferior_init): Don't look up descriptor. Don't call error.
9263 (jit_reset_inferior_data_and_breakpoints)
9264 (jit_inferior_created_observer): Remove.
9265 (jit_inferior_exit_hook): Update.
9266 (jit_executable_changed_observer): Remove.
9267 (jit_event_handler): Update.
9268 (free_objfile_data): Reset inferior data if needed.
9269 (_initialize_jit): Update.
9270
f0bbc364
TT
92712012-02-01 Tom Tromey <tromey@redhat.com>
9272
9273 * jit.c (bfd_open_from_target_memory): Move higher in file.
9274
47c1316c
TG
92752012-02-01 Tristan Gingold <gingold@adacore.com>
9276
9277 * libunwind-frame.c (libunwind_load): Display message if dlopen
9278 failed.
9279
8e704927
GB
92802012-02-01 Gary Benson <gbenson@redhat.com>
9281
09c7a31f 9282 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9283 (iterate_over_symbols): Use the above.
9284 * symtab.c (iterate_over_symbols): Likewise.
9285 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9286 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9287 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9288 (iterate_name_matcher): Document return values.
9289 (collect_one_symbol): Likewise.
9290 (collect_function_symbols): Likewise.
9291 (collect_symbols): Likewise.
9292
d9680e73
TT
92932012-02-01 Tom Tromey <tromey@redhat.com>
9294
9295 * ada-lang.c (resolve_subexp): Update.
9296 (ada_lookup_symbol_list): Add 'full_search' argument.
9297 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9298 ada_lookup_symbol_list.
9299 (ada_lookup_encoded_symbol): Update.
9300 (get_var_value): Update.
9301 * ada-exp.y (block_lookup): Update.
9302 (write_var_or_type): Update.
9303 (write_name_assoc): Update.
9304 * ada-lang.h (ada_lookup_symbol_list): Update.
9305
72e1143f
TT
93062012-01-31 Tom Tromey <tromey@redhat.com>
9307
9308 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9309 comment.
9310
ab2d2ad3
DE
93112012-01-31 Doug Evans <dje@google.com>
9312
9313 * symtab.h: Remove outdated comment.
e9111bf7 9314 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9315
bc884eba
JB
93162012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9317
9318 Fix build error in Darwin port.
9319 * i386-darwin-nat.c: Include i386-nat.h.
9320
8fc3fc34
TT
93212012-01-30 Tom Tromey <tromey@redhat.com>
9322
9323 PR breakpoints/13568:
9324 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9325 argument. Check for recursive includes.
9326 (dwarf_decode_macros): Create an include hash.
9327
5d853008
ME
93282012-01-30 Michael Eager <eager@eagercon.com>
9329
9330 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9331 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9332 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9333 (powerpc_linux_in_plt_stub): New function.
9334 (powerpc_linux_in_dynsym_resolve_code): New function.
9335 (ppc_skip_trampoline_code): New function.
9336 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9337 Use glibc_skip_solib_resolver.
9338
40478521
JK
93392012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9340
9341 Code cleanup: Make 1440 bytes of data segment read-only.
9342 * arch-utils.c (endian_enum): Make it const char *const [].
9343 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9344 Likewise.
9345 * breakpoint.c (always_inserted_enums): Likewise.
9346 * cli/cli-cmds.c (script_ext_enums): Likewise.
9347 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9348 enumlist parameter const char *const *.
9349 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9350 const char *const *.
9351 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9352 parameter const char *const *.
9353 * cris-tdep.c (cris_modes): Make it const char *const [].
9354 * filesystem.c (target_file_system_kinds): Likewise.
9355 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9356 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9357 (can_use_displaced_stepping_enum, scheduler_enums)
9358 (exec_direction_names): Likewise.
9359 * language.c (_initialize_language): Make the type_or_range_names and
9360 case_sensitive_names variables const char *const [].
9361 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9362 * python/python.c (python_excp_enums): Likewise.
9363 * remote.c (interrupt_sequence_modes): Likewise.
9364 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9365 * serial.c (logbase_enums): Likewise.
9366 * sh-tdep.c (sh_cc_enum): Likewise.
9367 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9368 Likewise.
9369 * symtab.c (multiple_symbols_modes): Likewise.
9370 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9371 Likewise.
9372 * utils.c (internal_problem_modes): Likewise.
9373
b3b8b934
JK
93742012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9375
9376 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9377 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9378 result.
9379
8c85a4e2
DE
93802012-01-27 Doug Evans <dje@google.com>
9381
9382 * configure.ac (with_python): Fix absolute path handling for win32.
9383 * configure: Regenerate.
9384
78d8b4d7
DE
93852012-01-26 Doug Evans <dje@google.com>
9386
eca864fe
DE
9387 * symtab.c: Whitespace cleanup, no code changes.
9388
7e082072
DE
9389 * symtab.c (lookup_symbol_in_language): Improve comment.
9390 (lookup_symbol_aux): Fix comment.
9391
7dc25483
DE
9392 * psymtab.c (add_psymbol_to_list): Result is now "void".
9393 * psympriv.h (add_psymbol_to_list): Update.
9394
78d8b4d7
DE
9395 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9396
4c63965b
JK
93972012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9398
9399 Do not open script filenames twice.
9400 * cli/cli-cmds.c (source_script_from_stream): Pass to
9401 source_python_script also STREAM.
9402 * python/py-auto-load.c (source_section_scripts): Pass to
9403 source_python_script_for_objfile also STREAM.
9404 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9405 also INPUT.
9406 * python/python-internal.h (source_python_script_for_objfile): New
9407 parameter file, rename parameter file to filename.
9408 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9409 instead if !_WIN32. Update the function comment.
9410 (source_python_script, source_python_script_for_objfile)
9411 (source_python_script): New parameter file, rename parameter file to
9412 filename. Pass FILENAME to python_run_simple_file.
9413 * python/python.h (source_python_script): New parameter file, rename
9414 parameter file to filename.
9415
88f38a04
PA
94162012-01-26 Pedro Alves <palves@redhat.com>
9417
9418 * corelow.c (core_has_fake_pid): Delete.
9419 (core_close): Delete references to `core_has_fake_pid'.
9420 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9421 (core_open): Delete references to `core_has_fake_pid'.
9422 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9423 the removed global.
9424
e078317b
JB
94252012-01-26 Joel Brobecker <brobecker@adacore.com>
9426
9427 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9428 Remove language parameter from name_matcher. Adjust the comment.
9429 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9430 Remove language parameter.
9431 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9432 * linespec.c (iterate_name_matcher): Likewise.
9433 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9434 name_matcher. Adjust call accordingly.
9435 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9436 (maintenance_check_symtabs): Adjust type of parameter "fun".
9437 * psymtab.h (maintenance_check_symtabs): Likewise.
9438
74ccd7f5
JB
94392012-01-26 Joel Brobecker <brobecker@adacore.com>
9440
9441 * language.h (symbol_name_match_p_ftype): New typedef.
9442 (struct language_defn): Replace field la_symbol_name_compare
9443 by la_get_symbol_name_match_p.
9444 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9445 (ada_language_defn): Use it.
9446 * linespec.c (struct symbol_matcher_data): New type.
9447 (iterate_name_matcher): Rewrite.
9448 (iterate_over_all_matching_symtabs): Pass a pointer to
9449 a symbol_matcher_data struct to expand_symtabs_matching
9450 instead of just the lookup name.
9451 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9452 opencl-lang.c, p-lang.c, language.c: Delete field
9453 la_symbol_name_compare, and replace by NULL for new field
9454 la_get_symbol_name_match_p.
9455 * symfile.h (struct quick_symbol_functions): Update comment.
9456
5d268276
TT
94572012-01-25 Tom Tromey <tromey@redhat.com>
9458
9459 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9460 dereferencing.
9461
edcc5120
TT
94622012-01-24 Tom Tromey <tromey@redhat.com>
9463
9464 PR symtab/12406:
9465 * solib.c (update_solib_list): Update the program space's
9466 added_solibs and deleted_solibs fields.
9467 * progspace.h (struct program_space) <added_solibs,
9468 deleted_solibs>: New fields.
9469 (clear_program_space_solib_cache): Declare.
9470 * progspace.c (release_program_space): Call
9471 clear_program_space_solib_cache.
9472 (clear_program_space_solib_cache): New function.
9473 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9474 bpstat_stop_status. Use handle_solib_event.
9475 * breakpoint.c: Include gdb_regex.h.
9476 (print_solib_event): New function.
9477 (bpstat_print): Use print_solib_event.
9478 (bpstat_stop_status): Add special case for bp_shlib_event.
9479 (handle_solib_event): New function.
9480 (bpstat_what): Use handle_solib_event.
9481 (struct solib_catchpoint): New.
9482 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9483 (breakpoint_hit_catch_solib, check_status_catch_solib)
9484 (print_it_catch_solib, print_one_catch_solib)
9485 (print_mention_catch_solib, print_recreate_catch_solib): New
9486 functions.
9487 (catch_solib_breakpoint_ops): New global.
9488 (catch_load_or_unload, catch_load_command_1)
9489 (catch_unload_command_1): New functions.
9490 (internal_bkpt_check_status): Add special case for
9491 bp_shlib_event.
9492 (internal_bkpt_print_it): Use print_solib_event.
9493 (initialize_breakpoint_ops): Initialize
9494 catch_solib_breakpoint_ops.
9495 (_initialize_breakpoint): Register "catch load" and "catch
9496 unload".
9497 * breakpoint.h (handle_solib_event): Declare.
9498 * NEWS: Add entry for "catch load" and "catch unload".
9499
fa864999
TT
95002012-01-24 Tom Tromey <tromey@redhat.com>
9501
9502 * ada-lang.c: Include gdb_vecs.h.
9503 * charset.c: Include gdb_vecs.h.
9504 * tracepoint.h: Include gdb_vecs.h.
9505 * gdb_vecs.h: New file.
9506
f90263c1
TT
95072012-01-24 Pedro Alves <pedro@codesourcery.com>
9508
9509 * breakpoint.c (breakpoint_hit_catch_fork)
9510 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9511 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9512 * infrun.c (inferior_has_forked, inferior_has_vforked)
9513 (inferior_has_execd, inferior_has_called_syscall): Delete.
9514 (handle_syscall_event): Get syscall_number from the execution
9515 control state's wait status.
9516 (wait_for_inferior): Don't clear syscall_number.
9517
09ac7c10
TT
95182012-01-24 Pedro Alves <palves@redhat.com>
9519
9520 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9521 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9522 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9523 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9524 `ws' parameter.
9525 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9526 false for events other than TARGET_SIGNAL_TRAP.
9527 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9528 Add `ws' parameter.
9529 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9530 events other than TARGET_SIGNAL_TRAP.
9531 (tracepoint_breakpoint_hit): Add `ws' parameter.
9532 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9533 parameter.
9534 (bpstat_stop_status): Same.
9535 (pc_at_non_inline_function): Same.
9536 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9537 to pass the current event's waitstatus to bpstat_stop_status
9538 and pc_at_non_inline_function.
9539
86eb7e95
JK
95402012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9541
9542 Code cleanup.
9543 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9544 Update the function comment for it.
9545 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9546 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9547 for STREAM.
9548
a9b3a50f
PA
95492012-01-24 Pedro Alves <palves@redhat.com>
9550
9551 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9552 outside `bs->stop' block.
9553 (bpstat_what): Rework bp_shlib_event handling.
9554 (internal_bkpt_check_status): If the breakpoint is a
9555 bp_shlib_event, then set bs->stop and bs->print if
9556 stop_on_solib_events is set.
9557
53fe1783
GB
95582012-01-24 Gary Benson <gbenson@redhat.com>
9559
9560 Delete #if 0'd out code.
9561 * stack.c (print_frame_label_vars): Remove.
9562 (catch_info): Likewise.
9563 (_initialize_stack): Remove "info catch" command.
9564 * NEWS: Mention the above.
9565
49c62f2e
PA
95662012-01-24 Pedro Alves <palves@redhat.com>
9567
9568 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9569 it.
9570 (remote_notice_new_inferior): If the remote end doesn't support
9571 the multiprocess extensions, then the PID is fake.
9572 (add_current_inferior_and_thread): New.
9573 (remote_start_remote): Use it.
9574 (extended_remote_attach_1): Adjust.
9575 (extended_remote_create_inferior_1): Use
9576 add_current_inferior_and_thread.
9577
d0d8b0c6
JK
95782012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9579
9580 Fix watchpoints to be specific for each inferior.
9581 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9582 current_program_space.
9583 * i386-nat.c (i386_inferior_data_cleanup): New.
9584 (i386_inferior_data_get): Replace variable inf_data_local by an
9585 inferior_data call.
9586 (i386_use_watchpoints): Initialize i386_inferior_data.
9587 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9588 specific iterate_over_lwps.
9589
4403d8e9
JK
95902012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9591
9592 Fix watchpoints across inferior fork.
9593 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9594 comment for linux_nat_iterate_watchpoint_lwps.
9595 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9596 linux_nat_iterate_watchpoint_lwps.
9597 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9598 * i386-linux-nat.c (update_debug_registers_callback): Update the
9599 comment for linux_nat_iterate_watchpoint_lwps.
9600 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9601 linux_nat_iterate_watchpoint_lwps.
9602 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9603 * i386-nat.c: Include inferior.h.
9604 (dr_mirror): Remove.
9605 (i386_inferior_data, struct i386_inferior_data)
9606 (i386_inferior_data_get): New.
9607 (i386_debug_reg_state): Use i386_inferior_data_get.
9608 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9609 (i386_insert_watchpoint, i386_remove_watchpoint)
9610 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9611 (i386_remove_hw_breakpoint): New variable state, use
9612 i386_debug_reg_state instead of DR_MIRROR.
9613 * linux-nat.c (delete_lwp): New declaration.
9614 (num_lwps): Move here from downwards.
9615 (delete_lwp_cleanup): New.
9616 (linux_child_follow_fork): Create new child_lp, call
9617 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9618 PTRACE_DETACH.
9619 (num_lwps): Move upwards.
9620 (linux_nat_iterate_watchpoint_lwps): New.
9621 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9622 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9623
2992c9a7 96242012-01-24 Joel Brobecker <brobecker@adacore.com>
9625
9626 GDB 7.4 released.
9627
e360902b
PA
96282012-01-23 Pedro Alves <palves@redhat.com>
9629
9630 * top.c (caution): Rename to ...
9631 (confirm): ... this.
9632 (show_caution): Rename to ...
9633 (show_confirm): ... this.
9634 (quit_cover): Adjust.
9635 (init_main): Adjust.
9636 * top.h (caution): Rename to ...
9637 (confirm): ... this.
9638 * utils.c (internal_vproblem, defaulted_query): Adjust.
9639
050a2e1d
PA
96402012-01-23 Pedro Alves <palves@redhat.com>
9641
9642 * top.c (caution): Update comment.
9643 (execute_command): Don't consider the current value of `caution'.
9644
77a35dd8
JK
96452012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9646
9647 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9648
a71b5a38
UW
96492012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9650
9651 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9652 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9653 * target.c (target_fileio_pwrite): Remove buffer address from
9654 debug output.
9655 (target_fileio_pread): Likewise.
9656
d99bd577
UW
96572012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9658
9659 * NEWS: Document remote "info proc" and "generate-core-file".
9660
35c2fab7
UW
96612012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9662
9663 * gdbarch.sh (find_memory_regions): New callback.
9664 * gdbarch.c, gdbarch.h: Regenerate.
9665
9666 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9667 callback before falling back to target method.
9668
9669 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9670 (linux_target_install_ops): No longer install it.
9671
9672 * linux-tdep.c (linux_find_memory_regions): New function.
9673 (linux_init_abi): Install it.
9674
6432734d
UW
96752012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9676
9677 * gdbarch.sh (make_corefile_notes): New architecture callback.
9678 * gdbarch.c: Regenerate.
9679 * gdbarch.h: Likewise.
9680
9681 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9682 before target_make_corefile_notes. If NULL is returned, the
9683 target does not support core file generation.
9684
9685 * linux-nat.c: Include "linux-tdep.h".
9686 (find_signalled_thread, find_stop_signal): Remove.
9687 (linux_nat_do_thread_registers): Likewise.
9688 (struct linux_nat_corefile_thread_data): Likewise.
9689 (linux_nat_corefile_thread_callback): Likewise.
9690 (iterate_over_spus): Likewise.
9691 (struct linux_spu_corefile_data): Likewise.
9692 (linux_spu_corefile_callback): Likewise.
9693 (linux_spu_make_corefile_notes): Likewise.
9694 (linux_nat_collect_thread_registers): New function.
9695 (linux_nat_make_corefile_notes): Replace contents by call to
9696 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9697 as native-only callback.
9698
9699 * linux-tdep.h: Include "bfd.h".
9700 (struct regcache): Add forward declaration.
9701 (linux_collect_thread_registers_ftype): New typedef.
9702 (linux_make_corefile_notes): Add prototype.
9703 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9704 "regset.h", and "elf-bfd.h".
9705 (find_signalled_thread, find_stop_signal): New functions.
9706 (linux_spu_make_corefile_notes): Likewise.
9707 (linux_collect_thread_registers): Likewise.
9708 (struct linux_corefile_thread_data): New data structure.
9709 (linux_corefile_thread_callback): New funcion.
9710 (linux_make_corefile_notes): Likewise.
9711 (linux_make_corefile_notes_1): Likewise.
9712 (linux_init_abi): Install it.
9713
3030c96e
UW
97142012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9715
9716 * gdbarch.sh (info_proc): New callback.
9717 * gdbarch.c, gdbarch.h: Regenerate.
9718
9719 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9720 before falling back to the target info_proc callback.
9721
9722 * linux-nat.c: Do not include "cli/cli-utils.h".
9723 (linux_nat_info_proc): Remove.
9724 (linux_target_install_ops): No longer install it.
9725
9726 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9727 (read_mapping): New function.
9728 (linux_info_proc): Likewise.
9729 (linux_init_abi): Install it.
9730
145b16a9
UW
97312012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9732
9733 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9734 * infcmd.c: (info_proc_cmd_1): New function.
9735 (info_proc_cmd): New function, moved here from equivalent routine
9736 orignally in linux-nat.c.
9737 (info_proc_cmd_mappings): Likewise.
9738 (info_proc_cmd_stat): Likewise.
9739 (info_proc_cmd_status): Likewise.
9740 (info_proc_cmd_cwd): Likewise.
9741 (info_proc_cmd_cmdline): Likewise.
9742 (info_proc_cmd_exe): Likewise.
9743 (info_proc_cmd_all): Likewise.
9744 (_initialize_infcmd): Install "info proc" command and subcommands.
9745
9746 * target.h (struct target_ops): Add to_info_proc.
9747 (target_info_proc): Add prototype.
9748 * target.c (target_info_proc): New function.
9749
9750 * procfs.c (procfs_info_proc): Add prototype.
9751 (info_proc_cmd): Rename into ...
9752 (procfs_info_proc): ... this. Update argument types as appropriate
9753 for a to_info_proc implementation. Handle "what" argument.
9754 (procfs_target): Install procfs_info_proc.
9755 (_initialize_procfs): No longer install "info proc" command.
9756
9757 * linux-nat.c: (enum info_proc_what): Remove.
9758 (linux_nat_info_proc_cmd_1): Rename into ...
9759 (linux_nat_info_proc): ... this. Update argument types as appropriate
9760 for a to_info_proc implementation.
9761 (linux_nat_info_proc_cmd): Remove.
9762 (linux_nat_info_proc_cmd_mappings): Likewise.
9763 (linux_nat_info_proc_cmd_stat): Likewise.
9764 (linux_nat_info_proc_cmd_status): Likewise.
9765 (linux_nat_info_proc_cmd_cwd): Likewise.
9766 (linux_nat_info_proc_cmd_cmdline): Likewise.
9767 (linux_nat_info_proc_cmd_exe): Likewise.
9768 (linux_nat_info_proc_cmd_all): Likewise.
9769 (linux_target_install_ops): Install linux_nat_info_proc.
9770 (_initialize_linux_nat): No longer install "info proc" command
9771 and subcommands.
9772
b9e7b9c3
UW
97732012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9774
9775 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9776 * config.in, configure: Regenerate.
9777
9778 * target.h (struct target_ops): Add to_fileio_readlink.
9779 (target_fileio_readlink): Add prototype.
9780 * target.c (target_fileio_readlink): New function.
9781
9782 * inf-child.c: Conditionally include <sys/param.h>.
9783 (inf_child_fileio_readlink): New function.
9784 (inf_child_target): Install it.
9785
9786 * remote.c (PACKET_vFile_readlink): New enum value.
9787 (remote_hostio_readlink): New function.
9788 (init_remote_ops): Install it.
9789 (_initialize_remote): Handle vFile:readlink packet type.
9790
7313baad
UW
97912012-01-20 Pedro Alves <palves@redhat.com>
9792 Ulrich Weigand <ulrich.weigand@linaro.org>
9793
9794 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9795 * config.in, configure: Regenerate.
9796
9797 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9798 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9799 (target_fileio_open): Add prototype.
9800 (target_fileio_pwrite): Likewise.
9801 (target_fileio_pread): Likewise.
9802 (target_fileio_close): Likewise.
9803 (target_fileio_unlink): Likewise.
9804 (target_fileio_read_alloc): Likewise.
9805 (target_fileio_read_stralloc): Likewise.
9806
9807 * target.c: Include "gdb/fileio.h".
9808 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9809 (default_fileio_target): New function.
9810 (target_fileio_open): Likewise.
9811 (target_fileio_pwrite): Likewise.
9812 (target_fileio_pread): Likewise.
9813 (target_fileio_close): Likewise.
9814 (target_fileio_unlink): Likewise.
9815 (target_fileio_close_cleanup): Likewise.
9816 (target_fileio_read_alloc_1): Likewise.
9817 (target_fileio_read_alloc): Likewise.
9818 (target_fileio_read_stralloc): Likewise.
9819
9820 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9821 <fcntl.h>, and <unistd.h>.
9822 (inf_child_fileio_open_flags_to_host): New function.
9823 (inf_child_errno_to_fileio_error): Likewise.
9824 (inf_child_fileio_open): Likewise.
9825 (inf_child_fileio_pwrite): Likewise.
9826 (inf_child_fileio_pread): Likewise.
9827 (inf_child_fileio_close): Likewise.
9828 (inf_child_fileio_unlink): Likewise.
9829 (inf_child_target): Install to_fileio routines.
9830
9831 * remote.c (init_remote_ops): Install to_fileio routines.
9832
901f9912
UW
98332012-01-20 Pedro Alves <palves@redhat.com>
9834 Ulrich Weigand <ulrich.weigand@linaro.org>
9835
9836 * remote.c (remote_multi_process_p): Only check for multi-process
9837 protocol feature, do not check for extended protocol.
9838 (remote_supports_multi_process): Check for extended protocol here.
9839 (set_general_process): Likewise.
9840 (extended_remote_kill): Likewise.
9841 (remote_pid_to_str): Likewise.
9842 (remote_query_supported): Always query multiprocess mode.
9843
e714e1bf
UW
98442012-01-20 Pedro Alves <palves@redhat.com>
9845 Ulrich Weigand <ulrich.weigand@linaro.org>
9846
9847 * inferior.h (struct inferior): Add fake_pid_p.
9848 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9849 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9850 magic_null_ptid since the remote side doesn't provide a real PID.
9851
50897289
TT
98522012-01-19 Tom Tromey <tromey@redhat.com>
9853
9854 * NEWS: Combine the two Python sections.
9855
1afc2033
JK
98562012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9857
9858 * target.h (target_close): Update comment on the target's unpush state.
9859
305436e0
PA
98602012-01-19 Pedro Alves <palves@redhat.com>
9861
9862 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9863 linux_nat_async directly instead of going through the target
9864 vector.
9865 * target.c (unpush_target): Close target after unpushing it, not
9866 before.
9867
49323895
GB
98682012-01-19 Gary Benson <gbenson@redhat.com>
9869
9870 * mdebugread.c (sort_blocks): Replace integer constants with ones
9871 derived from FIRST_LOCAL_BLOCK.
9872
1db33378
PP
98732012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9874 Jan Kratochvil <jan.kratochvil@redhat.com>
9875
9876 PR gdb/9538
9877 * symfile.c (find_separate_debug_file): New function.
9878 (terminate_after_last_dir_separator): Likewise.
9879 (find_separate_debug_file_by_debuglink): Also try realpath.
9880 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9881 * configure: Regenerate.
9882 * config.in: Regenerate.
9883
f83d8a90
DE
98842012-01-18 Doug Evans <dje@google.com>
9885
9886 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9887 (main.o): Remove rule.
9888 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9889 (--with-sysroot): Rewrite.
9890 * configure: Regenerate.
9891 * config.in: Regenerate.
9892
2dbca4d6
SDJ
98932012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9894
9895 * parse.c (initialize_expout): New function.
9896 (reallocate_expout): Likewise.
9897 (parse_exp_in_context): Use `initialize_expout' and
9898 `reallocate_expout' when appropriate.
9899
0695b514
PA
99002012-01-18 Pedro Alves <palves@redhat.com>
9901
9902 * record.c (struct record_breakpoint, record_breakpoint_p)
9903 (record_breakpoints): New.
9904 (record_insert_breakpoint, record_remove_breakpoint): Manage
9905 record breakpoints list. Only remove breakpoints from the
9906 inferior if they had been inserted there in the first place.
9907
136e1c30
DE
99082012-01-17 Doug Evans <dje@google.com>
9909
9910 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9911 if we know we don't have a file name to look for.
9912
c0bf857d
PA
99132012-01-17 Pedro Alves <palves@redhat.com>
9914
9915 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9916 the frame's stop reason is UNWIND_UNAVAILABLE.
9917
b486de60
JK
99182012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9919
9920 Fix compilation error.
9921 * m2-exp.y (yyerror): Use ANSI C prototype.
9922
d04550a6
SDJ
99232012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9924
9925 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9926 (growbuf_by_size): Likewise.
9927 (yyerror): Likewise.
9928 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9929 (modblock): Remove variable (was #if 0'ed).
9930 (parse_number): Convert prototype from K&R to ANSI C.
9931 (yyerror): Likewise.
9932 * objc-exp.y (parse_number): Likewise.
9933 (yyerror): Likewise.
9934 (yylex): Remove #if 0'ed code.
9935 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9936 (yyerror): Likewise.
9937
4aac40c8
TT
99382012-01-16 Tom Tromey <tromey@redhat.com>
9939
9940 * NEWS: Add item.
9941 * symtab.h (compare_filenames_for_search): Declare.
9942 * symtab.c (compare_filenames_for_search): New function.
9943 (iterate_over_some_symtabs): Use it.
9944 * symfile.h (struct quick_symbol_functions)
9945 <map_symtabs_matching_filename>: Change spec.
9946 * psymtab.c (partial_map_symtabs_matching_filename): Use
9947 compare_filenames_for_search. Update for new spec.
9948 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9949 compare_filenames_for_search. Update for new spec.
9950 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9951
cafec441
TT
99522012-01-16 Tom Tromey <tromey@redhat.com>
9953
9954 PR python/13281:
9955 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9956 (struct main_type) <flag_flag_enum>: New field.
9957 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9958 * NEWS: Add entries.
9959 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9960 enums.
9961 * python/lib/gdb/printing.py (_EnumInstance): New class.
9962 (FlagEnumerationPrinter): Likewise.
9963
983af33b
SDJ
99642012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9965
9966 * breakpoint.c (create_sals_from_address_default): New function.
9967 (create_breakpoints_sal_default): Likewise.
9968 (decode_linespec_default): Likewise.
9969 (is_marker_spec): Removed.
9970 (strace_marker_p): New function.
9971 (init_breakpoint_sal): Using `strace_marker_p' instead of
9972 `is_marker_spec'.
9973 (create_breakpoint): Call method `create_sals_from_address' from
9974 breakpoint_ops, replacing code that created SALs conditionally
9975 on the type of the breakpoint. Call method `create_breakpoints_sal',
9976 replacing code that created breakpoints conditionally on the type
9977 wanted.
9978 (base_breakpoint_create_sals_from_address): New function.
9979 (base_breakpoint_create_breakpoints_sal): Likewise.
9980 (base_breakpoint_decode_linespec): Likewise.
9981 (base_breakpoint_ops): Add methods
9982 `base_breakpoint_create_sals_from_address',
9983 `base_breakpoint_create_breakpoints_sal' and
9984 `base_breakpoint_decode_linespec'.
9985 (bkpt_create_sals_from_address): New function.
9986 (bkpt_create_breakpoints_sal): Likewise.
9987 (bkpt_decode_linespec): Likewise.
9988 (tracepoint_create_sals_from_address): Likewise.
9989 (tracepoint_create_breakpoints_sal): Likewise.
9990 (tracepoint_decode_linespec): Likewise.
9991 (strace_marker_create_sals_from_address): Likewise.
9992 (strace_marker_create_breakpoints_sal): Likewise.
9993 (strace_marker_decode_linespec): Likewise.
9994 (strace_marker_breakpoint_ops): New variable.
9995 (addr_string_to_sals): Remove `marker_spec'. Call method
9996 `decode_linespec' from breakpoint_ops, replacing code that decoded
9997 an address string into a SAL. Use `strace_marker_p' instead of
9998 `marker_spec'.
9999 (strace_command): Decide whether we are dealing with a static
10000 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10001 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10002 * breakpoint.h (linespec_result, linespec_sals): New forward
10003 declarations.
10004 (breakpoint_ops) <create_sals_from_address>,
10005 <create_breakpoints_sal>, <decode_linespec>: New methods.
10006
4795f398
DE
100072012-01-14 Doug Evans <dje@google.com>
10008
10009 * NEWS: Update text for "maint set python print-stack".
10010 It is deprecated in gdb 7.4 and deleted in 7.5.
10011
ee5106fe
EZ
100122012-01-13 Eli Zaretskii <eliz@gnu.org>
10013
10014 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10015 including curses.h.
10016
b161e06f
JK
100172012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10018
10019 * configure: Regenerate.
10020 * config.in: Regenerate.
10021
85254831
KS
100222012-01-12 Keith Seitz <keiths@redhat.com>
10023
10024 PR mi/10586
10025 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10026 (ANONYMOUS_UNION_NAME): Define.
10027 (is_path_expr_parent): New function.
10028 (get_path_expr_parent): New function.
10029 (is_anonymous_child): New function.
10030 (create_child_with_value): If the child is anonymous and without
10031 a name, assign an object name to it.
10032 (c_describe_child): Use get_path_expr_parent to determine
10033 the parent expression.
10034 If there field represents an anonymous struct or union and
10035 has no name, set an appropriate display name and expression.
10036 (cplus_describe_child): Likewise.
10037
620fa63a
PA
100382012-01-12 Pedro Alves <palves@redhat.com>
10039
10040 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10041 available when %ebp is found to be zero (outermost).
10042
2efa2c79
AT
100432012-01-11 Andreas Tobler <andreast@fgznet.ch>
10044
10045 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10046 an internal gdb_static_assert.
10047 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10048
88e7d25d
TT
100492012-01-11 Tom Tromey <tromey@redhat.com>
10050
10051 PR gdb/9598:
10052 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10053 catch" and "catch throw".
10054
72384ba3
PH
100552012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10056
10057 * blockframe.c (block_innermost_frame): Start search from selected
10058 frame, if present, or otherwise the current frame.
10059
10060 * c-exp.y (variable): Update innermost_block for
10061 'block COLONCOLON NAME' clause.
10062 * m2-exp.y (variable): Ditto.
10063 * objc-exp.y (variable): Ditto.
10064
065a711f
TT
100652012-01-10 Tom Tromey <tromey@redhat.com>
10066
10067 PR python/13199:
10068 * python/python.c (finish_python_initialization): Set sys.argv.
10069
f3f5162e
DE
100702012-01-10 Doug Evans <dje@google.com>
10071
10072 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10073 "want_line_info". All callers updated.
10074 (dwarf_decode_lines_1): New function.
10075 (handle_DW_AT_stmt_list): Add function comment.
10076 New arg "want_line_info". All callers updated.
10077 (read_file_scope,read_type_unit_scope): Move comment from
10078 handle_DW_AT_stmt_list to here.
10079
9934703b
JK
100802012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10081
10082 Fix regression after libiberty/ update for GCC PR 6057 and others.
10083 * c-exp.y (operator) <OPERATOR DELETE>
10084 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10085 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10086 (make_builtin_type, make_name): New variable i, add gdb_assert.
10087 (operator) <OPERATOR NEW>: Update ARGS to 3.
10088 (operator) <OPERATOR DELETE>: Add trailing space.
10089 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10090 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10091 * cp-support.c (cp_canonicalize_string): Check NULL from
10092 cp_comp_to_string, call warning and return.
10093
06b9f45f
JK
100942012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10095
10096 Fix duplicate .o files after omitting libbfd.a.
10097 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10098 (SFILES): Add corelow.c.
10099 (COMMON_OBS): Add corelow.o.
10100 (ALLDEPFILES): Remove corelow.c.
10101 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10102 * config/alpha/alpha-osf3.mh: Likewise.
10103 * config/alpha/fbsd.mh: Likewise.
10104 * config/arm/nbsdaout.mh: Likewise.
10105 * config/arm/nbsdelf.mh: Likewise.
10106 * config/i386/i386gnu.mh: Likewise.
10107 * config/ia64/hpux.mh: Likewise.
10108 * config/ia64/linux.mh: Likewise.
10109 * config/m32r/linux.mh: Likewise.
10110 * config/m68k/linux.mh: Likewise.
10111 * config/mips/irix5.mh: Likewise.
10112 * config/mips/irix6.mh: Likewise.
10113 * config/pa/hpux.mh: Likewise.
10114 * config/pa/linux.mh: Likewise.
10115 * config/powerpc/aix.mh: Likewise.
10116 * config/sparc/linux.mh: Likewise.
10117 * config/sparc/linux64.mh: Likewise.
10118 * config/sparc/sol2.mh: Likewise.
10119 * config/vax/vax.mh: Likewise.
10120 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10121 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10122 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10123 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10124 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10125 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10126 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10127 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10128 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10129 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10130 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10131 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10132 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10133 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10134 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10135 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10136 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10137 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10138 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10139 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10140 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10141 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10142 corelow.o from gdb_target_obs.
10143 * corefile.c (core_target): Update the comment on NULL value.
10144 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10145 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10146 MATCHES. Drop YUMMY set on NULL.
10147 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10148 reclaim CORE_DATA if it is already NULL.
10149
34365054
DE
101502012-01-09 Doug Evans <dje@google.com>
10151
10152 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10153 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10154
696166a3
KS
101552012-01-09 Keith Seitz <keiths@redhat.com>
10156
10157 * breakpoint.c (wrapper.h): Don't include.
10158
8e7b59a5
KS
101592012-01-09 Keith Seitz <keiths@redhat.com>
10160
10161 * Makefile.in (SFILES): Remove wrapper.c.
10162 (HFILES_NO_SRCDIR): Remove wrapper.h.
10163 (COMMON_OBS): Remove wrapper.o.
10164 * cli/cli-interp.c: Don't inlude wrapper.h.
10165 * corelow.c: Likewise.
10166 (core_open): Replace gdb_target_find_new_threads with
10167 TRY_CATCH around target_find_new_threads.
10168 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10169 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10170 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10171 evaluate_expression.
10172 (varobj_set_value): Likewise for evaluate_expression and
10173 value_assign.
10174 (install_new_variable): Likewise for value_fetch_lazy.
10175 (adjust_value_for_child_access): Likewise for value_ind.
10176 (c_describe_child): Likewise for value_subscript and
10177 value_ind.
10178 (c_value_of_root): Likewise for evaluate_expression.
10179 * wrapper.c: Remove.
10180 * wrapper.h: Remove.
10181
1a4eeb98
DE
101822012-01-09 Doug Evans <dje@google.com>
10183
9ff913ba
DE
10184 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10185 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10186 "abfd" args with "section". All callers updated.
10187 Error checking code moved ...
10188 (error_check_comp_unit_head): ... here. New function.
10189 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10190 Delete arg "abfd". New arg "type_offset". All callers updated.
10191 (create_debug_types_hash_table): Simplify by using
10192 read_and_check_type_unit_head.
10193
1a4eeb98
DE
10194 * parser-defs.h (namecopy): Delete.
10195 * parse.c (namecopy, namecopy_size): Move into copy_name.
10196
2e6af8c0
JK
101972012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10198
10199 Partially fix duplicate .o files after omitting libbfd.a.
10200 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10201 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10202 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10203 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10204 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10205 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10206 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10207
9f2f828a
PA
102082012-01-09 Pedro Alves <palves@redhat.com>
10209
10210 * MAINTAINERS: Update my email address.
10211
4d72c0bc
DE
102122012-01-08 Doug Evans <dje@google.com>
10213
d467dd73
DE
10214 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10215 n_type_units. Rename type_comp_units to all_type_units.
10216 All uses updated.
10217 (add_signatured_type_cu_to_table): Renamed from
10218 add_signatured_type_cu_to_list. All callers updated.
10219
4d72c0bc
DE
10220 * gdbtypes.h (struct cplus_struct_type): Delete member
10221 nfn_fields_total. All uses removed.
10222
21b2bd31
DE
102232012-01-06 Doug Evans <dje@google.com>
10224
10225 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10226 to top of file.
10227 (dwarf2_find_comp_unit): Delete.
10228 (process_psymtab_comp_unit): Make result "void".
10229 Delete args buffer, info_ptr, buffer_size, and replace with
10230 "section". All callers updated.
10231 (dwarf2_build_psymtabs_hard): Simplify.
10232
bfd189b1
SDJ
102332012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10234 Thiago Jung Bauermann <bauerman@br.ibm.com>
10235
10236 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10237 before `struct gdb_exception'.
10238 * breakpoint.c (update_global_location_list_nothrow)
10239 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10240 * cp-abi.c (value_rtti_type): Likewise.
10241 * cp-support.c (cp_validate_operator): Likewise.
10242 * infrun.c (insert_exception_resume_breakpoint)
10243 (check_exception_resume, keep_going): Likewise.
10244 * mi-interp.c (mi_breakpoint_created)
10245 (mi_breakpoint_modified): Likewise.
10246 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10247 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10248 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10249
6b07635f
DE
102502012-01-05 Doug Evans <dje@google.com>
10251
0b30b85c
DE
10252 * dwarf2read.c (statement_prologue): Delete, unused.
10253
98714339
DE
10254 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10255 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10256
6b07635f
DE
10257 * dwarf2read.c (comp_unit_header): Delete, unused.
10258
761f4555
UW
102592012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10260
10261 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10262 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10263
2ca0b532
PA
102642012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10265
10266 * infrun.c (normal_stop): Don't skip calling the normal_stop
10267 observers if the thread was doing a multi-step, but stopped for
10268 some reason other than stepping.
10269
50aeff07
PA
102702012-01-05 Pedro Alves <alves.ped@gmail.com>
10271
10272 * cli/cli-decode.h: Add comments.
10273 (CMD_LIST_AMBIGUOUS): Moved to command.h
10274 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10275 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10276 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10277 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10278 (add_com, add_com_alias, add_info, add_info_alias)
10279 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10280 declarations.
10281 * command.h: Add and adjust comments.
10282 (CMD_LIST_AMBIGUOUS): Moved here.
10283 (help_cmd, help_cmd_list): Delete declarations.
10284
5953832c
DE
102852012-01-04 Doug Evans <dje@google.com>
10286
e5fe5e75
DE
10287 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10288 All callers updated.
10289 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10290 Replace all arguments with "per_cu". All callers updated.
10291
28dee7f5
DE
10292 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10293
23745b47
DE
10294 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10295 New arg "per_cu". All callers updated.
10296
5953832c
DE
10297 Delete #if 0'd out code.
10298 * language.c (binop_result_type): Delete.
10299 (simple_type, ordered_type, same_type, integral_type): Delete.
10300 (numeric_type, character_type, string_type, boolean_type): Delete.
10301 (float_type, structured_type): Delete.
10302 * language.h: Update.
10303
0f5b7562
TT
103042012-01-04 Tom Tromey <tromey@redhat.com>
10305
10306 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10307
78218f56
JB
103082012-01-04 Joel Brobecker <brobecker@adacore.com>
10309
10310 * corefile.c (close_exec_file): Delete.
10311 (reopen_exec_file): Remove commented out code that seems related
10312 to close_exec_file, which is being deleted here.
10313 * inferior.h (close_exec_file): Delete.
10314 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10315
0fcd72ba
JB
103162012-01-04 Joel Brobecker <brobecker@adacore.com>
10317
10318 * ada-lang.c: #include "cli/cli-utils.h".
10319 (get_selections): Use skip_spaces.
10320 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10321 (catch_ada_exception_command_split): Use skip_spaces.
10322 (ada_decode_assert_location): Likewise.
10323
1dabb4c4
JB
103242012-01-04 Joel Brobecker <brobecker@adacore.com>
10325
10326 * linespec.c (decode_line_internal): Check for C++ or Java
10327 compound constructs only if the current language is C, C++
10328 or Java.
10329
5931a2fa
JK
103302012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10331
10332 Revert:
10333 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10334 Joel Brobecker <brobecker@adacore.com>
10335 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10336 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10337 3 times.
10338 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10339 fall through into AT_ENTRY_POINT.
10340 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10341 DUMMY_ADDR with it.
10342 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10343 PPC_INSN_SIZE skip to 3 times.
10344
1a2da5ee
JB
103452012-01-04 Joel Brobecker <brobecker@adacore.com>
10346
10347 * linespec.c (add_minsym): Preserve function descriptors.
10348
8645ff69
UW
103492012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10350
10351 * breakpoint.c (all_locations_are_pending): Consider locations
10352 in program spaces executing during startup pending as well.
10353
0b302171
JB
103542012-01-04 Joel Brobecker <brobecker@adacore.com>
10355
10356 Copyright year update in most files of the GDB Project.
10357
8ba098ad
JB
103582012-01-04 Joel Brobecker <brobecker@adacore.com>
10359
10360 * copyright.sh: Delete.
10361 * copyright.py: Rewrite.
10362
09c01c30
JB
103632012-01-04 Joel Brobecker <brobecker@adacore.com>
10364
10365 * gnulib/extra/update-copyright: New file, imported from gnulib.
10366
3c36c0af
JB
103672012-01-04 Joel Brobecker <brobecker@adacore.com>
10368
10369 * README (Copyright and License Notices): New section.
10370
888fe1e1
TT
103712012-01-03 Tom Tromey <tromey@redhat.com>
10372
10373 PR python/12533:
10374 * python/py-value.c (valpy_dereference, valpy_get_address
10375 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10376 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10377 (valpy_absolute, valpy_richcompare): Free intermediate values.
10378
6e681866
JB
103792011-01-03 Joel Brobecker <brobecker@adacore.com>
10380
10381 * ada-lang.c: Reformat the copyright notice.
10382
0cd09acb
JK
103832012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10384
10385 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10386 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10387 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10388 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10389 Revert this part of:
10390 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10391 Build gdb directly from *.o files not using libgdb.a.
10392 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10393
12c3e59c
JB
103942012-01-02 Joel Brobecker <brobecker@adacore.com>
10395
10396 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10397 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10398 Reformat the copyright header.
10399
11bf1490
JK
104002012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10401
10402 Revert this part of:
10403 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10404 Remove the gdbtui binary.
10405 * gdb.c (main): Remove args.interpreter_p initialization.
10406 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10407 * main.h (struct captured_main_args): Remove interpreter_p.
10408
1fef196f
JB
104092012-01-02 Joel Brobecker <brobecker@adacore.com>
10410
10411 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10412
67827812
JB
104132012-01-02 Joel Brobecker <brobecker@adacore.com>
10414
10415 * top.c (print_gdb_version): Update copyright year.
10416
a4d0b831
YQ
104172012-01-02 Yao Qi <yao@codesourcery.com>
10418
10419 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10420
b5914469
JK
104212012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10422 Joel Brobecker <brobecker@adacore.com>
10423
10424 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10425 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10426 3 times.
10427 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10428 fall through into AT_ENTRY_POINT.
10429 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10430 DUMMY_ADDR with it.
10431 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10432 PPC_INSN_SIZE skip to 3 times.
10433
8da828f7
JK
104342012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10435
10436 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10437 the return value.
10438 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10439
8574e74b
JK
104402012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10441
10442 Build gdb directly from *.o files not using libgdb.a.
10443 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10444 (COMMON_OBS): Remove solib-target.o.
10445 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10446 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10447 (LIBGDB_OBS, libgdb.a): Move it above.
10448 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10449 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10450 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10451 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10452 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10453 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10454 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10455 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10456 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10457 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10458 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10459 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10460 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10461 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10462 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10463 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10464 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10465 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10466 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10467 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10468 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10469 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10470 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10471 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10472 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10473 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10474 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10475
217bff3e
JK
104762012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10477
10478 Remove the gdbtui binary.
10479 * .gitignore (/gdbtui): Remove.
10480 * Makefile.in (TUI): Remove.
10481 (SUBDIR_TUI_OBS): Remove tui-main.o.
10482 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10483 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10484 (tui-main.o): Remove.
10485 (all_object_files): Remove tui-main.o.
10486 * NEWS: New note for the gdbtui removal.
10487 * configure: Rebuilt.
10488 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10489 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10490 CONFIG_UNINSTALL respectively.
10491 * gdb.c (main): Remove args.interpreter_p initialization.
10492 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10493 * main.h (struct captured_main_args): Remove interpreter_p.
10494 * tui/tui-main.c: Remove.
10495
9cdd5dbd
DE
104962012-01-01 Doug Evans <dje@google.com>
10497
bb5ed363
DE
10498 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10499 (dwarf2_physname, read_import_statement): Ditto.
10500 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10501 (process_structure_scope read_subroutine_type): Ditto.
10502 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10503 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10504 (dwarf2_fetch_die_location_block): Ditto.
10505 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10506
a0f42c21
DE
10507 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10508 All callers updated.
10509 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10510 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10511 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10512
2dc860c0
DE
10513 * dwarf2read.c (load_cu): Move assert to more useful location.
10514
68dc6402
DE
10515 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10516 All callers updated.
10517
9cdd5dbd
DE
10518 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10519 (dwarf2_elf_names): Minor reformat.
10520 (dwarf2_per_cu_data): Tweak comment.
10521 (dwarf2_read_section): Fix comment.
10522 (create_all_comp_units): Fix comment.
10523 (load_full_comp_unit): Fix comment.
10524 (process_full_comp_unit): Fix comment.
10525 (read_signatured_type): Fix comment.
10526
0c10e53e 10527For older changes see ChangeLog-2011.
c906108c
SS
10528\f
10529Local Variables:
10530mode: change-log
10531left-margin: 8
10532fill-column: 74
10533version-control: never
57da7796 10534coding: utf-8
c906108c 10535End:
This page took 1.907857 seconds and 4 git commands to generate.