* tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-02-19 Jiong Wang <jiwang@tilera.com>
2
3 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
4
5 2013-02-19 Jiong Wang <jiwang@tilera.com>
6
7 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
8 (tilegx_write_pc): New function.
9 (tilegx_cannot_reference_register): Return zero if REGNO
10 is TILEGX_FAULTNUM_REGNUM.
11 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
12 (tilegx_register_name): Add handling of "faultnum" register.
13 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
14 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
15 handling of TILEGX_FAULTNUM_REGNUM.
16 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
17
18 2013-02-19 Jiong Wang <jiwang@tilera.com>
19
20 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
21 should be aligned to 64bit.
22
23 2013-02-19 Kai Tietz <ktietz@redhat.com>
24
25 * windows-nat.c (windows_xfer_memory): Fix debug-output
26 for LLP64.
27
28 2013-02-19 Lei Liu <lei.liu2@windriver.com>
29
30 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
31 Don't check DSP register number if HAVE_DSP is not set.
32
33 2013-02-19 Alan Modra <amodra@gmail.com>
34
35 * elfread.c (struct build_id): Delete. Use struct elf_build_id
36 throughout file instead.
37 (build_id_bfd_get): Update to use new elf_tdata build_id field.
38 Don't xmalloc return value.
39 (build_id_verify): Similarly. Don't xfree.
40 (build_id_to_debug_filename): Update.
41 (find_separate_debug_file_by_buildid): Update, don't xfree.
42
43 2013-02-18 Tom Tromey <tromey@redhat.com>
44
45 PR gdb/15102:
46 * dwarf2read.c (read_subrange_type): Use result of
47 'check_typedef'.
48
49 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
50
51 * frame.c: Remove one extra white space after #include
52 directive.
53
54 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
55
56 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
57
58 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
59
60 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
61 and dir commands into an if block.
62
63 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
64
65 * python/py-breakpoint (struct pybp_code): Use int instead of
66 enum type_code.
67
68 2013-02-15 Pedro Alves <pedro@codesourcery.com>
69 Hafiz Abid Qadeer <abidh@codesourcery.com>
70
71 * NEWS: Mention new field "trace-file".
72 * tracepoint.c (trace_status_mi): Output "trace-file" field.
73 (tfile_open): Record the trace file's filename in the trace
74 status.
75 (tfile_files_info): Mention the name of the trace file.
76 Check the "filename" field explicitely.
77 (trace_status_command): Explicitely check "filename" field.
78 (trace_find_command): Ditto.
79 (trace_find_pc_command): Ditto.
80 (trace_find_tracepoint_command): Ditto.
81 (trace_find_line_command): Ditto.
82 (trace_find_range_command): Ditto.
83 (trace_find_outside_command): Ditto.
84 * tracepoint.h (struct trace_status) <from_file>: Rename it
85 to "filename" and make it hold the trace file's filename
86 instead of a boolean.
87 * remote.c (remote_get_trace_status): Initialize "filename"
88 field with NULL instead of 0.
89
90 2013-02-15 Yao Qi <yao@codesourcery.com>
91
92 * remote.c: Fix a typo.
93
94 2013-02-14 Pierre Muller <muller@sourceware.org>
95
96 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
97
98 2013-02-14 Pedro Alves <palves@redhat.com>
99
100 * utils.c (savestring): Don't #undef it. Move function to
101 common/common-utils.c.
102 * common/common-utils.c: Include gdb_string.h.
103 (savestring): Move here from utils.c.
104 * common/common-utils.h (savestring): Declare.
105
106 2013-02-14 Pedro Alves <palves@redhat.com>
107
108 * utils.c (savestring): Rename parameter 'size' to 'len'.
109
110 2013-02-14 Pedro Alves <palves@redhat.com>
111 Yufeng Zhang <yufeng.zhang@arm.com>
112
113 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
114 (aarch64_inferior_data, struct aarch64_inferior_data):
115 Delete.
116 (struct aarch64_process_info): New.
117 (aarch64_process_list): New global.
118 (aarch64_find_process_pid, aarch64_add_process)
119 (aarch64_process_info_get): New functions.
120 (aarch64_inferior_data_get): Delete.
121 (aarch64_process_info_get): New function.
122 (aarch64_forget_process): New function.
123 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
124 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
125 aarch64_get_debug_reg_state.
126 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
127 instead of linux_nat_iterate_watchpoint_lwps.
128 (aarch64_linux_new_fork): New function.
129 (aarch64_linux_child_post_startup_inferior): Use
130 aarch64_forget_process instead of aarch64_init_debug_reg_state.
131 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
132 (aarch64_linux_remove_hw_breakpoint)
133 (aarch64_handle_aligned_watchpoint)
134 (aarch64_handle_unaligned_watchpoint)
135 (aarch64_linux_insert_watchpoint)
136 (aarch64_linux_remove_watchpoint)
137 (aarch64_linux_stopped_data_address): Adjust to pass the current
138 process id to aarch64_debug_reg_state.
139 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
140 linux_nat_new_fork hook, and aarch64_forget_process as
141 linux_nat_forget_process hook; remove the call to
142 register_inferior_data_with_cleanup.
143
144 2013-02-14 Pedro Alves <palves@redhat.com>
145
146 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
147 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
148 lval_memory.
149
150 2013-02-14 Pedro Alves <pedro@codesourcery.com>
151 Hafiz Abid Qadeer <abidh@codesourcery.com>
152
153 * tracepoint.h (validate_trace_state_variable_name): Declare.
154 * tracepoint.c (validate_trace_state_variable_name): New.
155 (trace_variable_command): Parse the trace state variable's name
156 without using parse_expression. Do several validations.
157 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
158 trace state variable's name with parse_expression. Validate it.
159
160 2013-02-14 Yao Qi <yao@codesourcery.com>
161
162 * infcmd.c (breakpoint_proceeded): Remove it.
163
164 2013-02-14 Yao Qi <yao@codesourcery.com>
165
166 * tracepoint.c (end_actions_pseudocommand): Make it static.
167 (while_stepping_pseudocommand): Likewise.
168 * tracepoint.h (end_actions_pseudocommand): Remove the
169 declaration.
170 (while_stepping_pseudocommand): Likewise.
171
172 2013-02-14 Yao Qi <yao@codesourcery.com>
173
174 * cli/cli-decode.c (help_cmd): Remove the declaration of
175 "cmdlist".
176 (help_all): Likewise.
177
178 2013-02-13 Pedro Alves <palves@redhat.com>
179
180 * amd64-linux-nat.c (update_debug_registers_callback):
181 Update comment.
182 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
183 iterate_over_lwps.
184 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
185 i386_debug_reg_state.
186 (amd64_linux_new_fork): New function.
187 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
188 linux_nat_new_fork hook, and i386_forget_process as
189 linux_nat_forget_process hook.
190 * i386-linux-nat.c (update_debug_registers_callback):
191 Update comment.
192 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
193 iterate_over_lwps.
194 (i386_linux_prepare_to_resume): Pass the lwp's pid to
195 i386_debug_reg_state.
196 (i386_linux_new_fork): New function.
197 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
198 linux_nat_new_fork hook, and i386_forget_process as
199 linux_nat_forget_process hook.
200 * i386-nat.c (i386_init_dregs): Delete.
201 (i386_inferior_data, struct i386_inferior_data):
202 Delete.
203 (struct i386_process_info): New.
204 (i386_process_list): New global.
205 (i386_find_process_pid, i386_add_process, i386_process_info_get):
206 New functions.
207 (i386_inferior_data_get): Delete.
208 (i386_process_info_get): New function.
209 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
210 (i386_forget_process): New function.
211 (i386_cleanup_dregs): Rewrite.
212 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
213 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
214 (i386_stopped_data_address, i386_insert_hw_breakpoint)
215 (i386_remove_hw_breakpoint): Adjust to pass the current process id
216 to i386_debug_reg_state.
217 (i386_use_watchpoints): Don't register inferior data.
218 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
219 adjust comment.
220 (i386_forget_process): Declare.
221 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
222 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
223 New static globals.
224 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
225 (add_initial_lwp): New, factored out from ...
226 (add_lwp): ... this. Don't check the number of lwps before
227 calling linux_nat_new_thread.
228 (linux_nat_iterate_watchpoint_lwps): Delete.
229 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
230 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
231 forks and vforks.
232 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
233 initial lwp.
234 (linux_nat_kill, linux_nat_mourn_inferior): Call
235 linux_nat_forget_process.
236 (linux_nat_set_new_fork, linux_nat_set_forget_process)
237 (linux_nat_forget_process): New functions.
238 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
239 type.
240 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
241 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
242 types.
243 (linux_nat_set_new_fork, linux_nat_set_forget_process)
244 (linux_nat_forget_process): New declarations.
245
246 * amd64fbsd-nat.c (super_mourn_inferior): New global.
247 (amd64fbsd_mourn_inferior): New function.
248 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
249 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
250
251 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
252
253 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
254 Adding _().
255
256 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
257
258 * aarch64-linux-nat.c (debug_reg_change_callback)
259 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
260 %s and phex().
261
262 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
263
264 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
265 with LONGEST.
266
267 2013-02-13 Pedro Alves <palves@redhat.com>
268 Hafiz Abid Qadeer <abidh@codesourcery.com>
269
270 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
271
272 2013-02-12 Tom Tromey <tromey@redhat.com>
273
274 PR symtab/11464:
275 * c-exp.y (lex_one_token): Initialize other fields of yylval on
276 NAME return.
277 (classify_inner_name): Remove 'first_name' argument, add
278 'context'. Remove unused variable.
279 (yylex): Explicitly maintain the context type. Exit loop earlier
280 if NAME result is seen.
281
282 2013-02-12 Pedro Alves <palves@redhat.com>
283
284 * amd64-darwin-tdep.c: Add (C) after Copyright.
285 * cli/cli-cmds.h: Ditto.
286 * cli/cli-decode.c: Ditto.
287 * cli/cli-decode.h: Ditto.
288 * cli/cli-dump.c: Ditto.
289 * cli/cli-dump.h: Ditto.
290 * cli/cli-interp.c: Ditto.
291 * cli/cli-logging.c: Ditto.
292 * cli/cli-script.c: Ditto.
293 * cli/cli-script.h: Ditto.
294 * cli/cli-setshow.c: Ditto.
295 * cli/cli-setshow.h: Ditto.
296 * cli/cli-utils.c: Ditto.
297 * cli/cli-utils.h: Ditto.
298 * config/alpha/nm-osf3.h: Ditto.
299 * config/djgpp/djconfig.sh: Ditto.
300 * config/i386/nm-fbsd.h: Ditto.
301 * config/i386/nm-i386gnu.h: Ditto.
302 * config/nm-linux.h: Ditto.
303 * config/nm-nto.h: Ditto.
304 * config/rs6000/nm-rs6000.h: Ditto.
305 * config/sparc/nm-sol2.h: Ditto.
306 * darwin-nat-info.c: Ditto.
307 * dfp.c: Ditto.
308 * dfp.h: Ditto.
309 * gdb-demangle.h: Ditto.
310 * i386-darwin-nat.c: Ditto.
311 * i386-darwin-tdep.c: Ditto.
312 * linux-fork.h: Ditto.
313 * m32c-tdep.c: Ditto.
314 * microblaze-linux-tdep.c: Ditto.
315 * microblaze-rom.c: Ditto.
316 * microblaze-tdep.c: Ditto.
317 * microblaze-tdep.h: Ditto.
318 * mips-linux-tdep.h: Ditto.
319 * ppc-ravenscar-thread.c: Ditto.
320 * ppc-ravenscar-thread.h: Ditto.
321 * prologue-value.c: Ditto.
322 * prologue-value.h: Ditto.
323 * ravenscar-thread.c: Ditto.
324 * ravenscar-thread.h: Ditto.
325 * sparc-ravenscar-thread.c: Ditto.
326 * sparc-ravenscar-thread.h: Ditto.
327 * tilegx-linux-tdep.c: Ditto.
328 * unwind_stop_reasons.def: Ditto.
329 * windows-nat.h: Ditto.
330 * xtensa-linux-tdep.c: Ditto.
331 * xtensa-xtregs.c: Ditto.
332 * regformats/regdat.sh: Ditto.
333 * regformats/regdef.h: Ditto.
334
335 2013-02-12 Pedro Alves <palves@redhat.com>
336
337 * break-catch-sig.c: Update copyright years.
338
339 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
340
341 Add support for a destructor for ui_out data and use it to
342 provide a ui_out destructor.
343 * ui-out.h: Declare the new ui_out destructor.
344 (ui_out_impl): Add a field for data destructor in ui_out_impl.
345 * ui-out.c (default_data_destroy): Add a default data destructor
346 which does nothing.
347 (default_ui_out_impl): Set the new data_destroy field to
348 default_data_destroy
349 (uo_data_destroy): Local function which invokes the data
350 destructor if present.
351 (clear_table): Local function which clears the table data of a
352 ui_out object.
353 (ui_out_destroy): Public function which frees a ui_out object.
354 (ui_out_table_end): Use the new clear_table function.
355 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
356 NULL.
357 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
358 to NULL.
359
360 2013-02-11 Doug Evans <dje@google.com>
361
362 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
363 (printf_decfloat): New function. Broken out from ui_printf.
364 Remove unnecessary code to shift the entire format string down.
365 (printf_pointer): New function.
366 (ui_printf): Code to print C strings, wide C strings, decfloats,
367 and pointers moved to separate functions.
368
369 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
370
371 * valops.c (value_assign): Handling bitfield offset in
372 `lval_internalvar_component' case.
373
374 2013-02-08 Doug Evans <dje@google.com>
375
376 * common/format.c (parse_format_string): Fix whitespace.
377
378 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
379
380 * stack.c (return_command): Work around uninitialized variable
381 warning.
382
383 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
384
385 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
386 number of the registers from 36 to 34.
387
388 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
389
390 * NEWS: Mention new AArch64 native and target support.
391
392 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
393
394 * MAINTAINERS (Write After Approval): Add myself.
395
396 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
397 Marcus Shawcroft <marcus.shawcroft@arm.com>
398 Nigel Stephens <nigel.stephens@arm.com>
399 Yufeng Zhang <yufeng.zhang@arm.com>
400
401 * aarch64-linux-nat.c: New file.
402 * config/aarch64/linux.mh: New file.
403 * configure.host: Add AArch64.
404 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
405
406 2013-02-07 Doug Evans <dje@google.com>
407
408 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
409 disassemble command.
410
411 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
412
413 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
414 set_gdbarch_fetch_tls_load_module_address.
415
416 2013-02-06 David S. Miller <davem@davemloft.net>
417
418 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
419 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
420 * value.c (struct_return_convention): New function.
421 (using_struct_return): Implement in terms of struct_return_convention.
422 * value.h (struct_return_convention): Declare.
423 * stack.c (return_command): Allow successful overriding of the return
424 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
425
426 2013-02-06 Tom Tromey <tromey@redhat.com>
427
428 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
429 outside of TRY_CATCH.
430
431 2013-02-06 Yao Qi <yao@codesourcery.com>
432
433 * mi/mi-interp.c: Include "tracepoint.h".
434 (mi_tsv_modified): Declare.
435 (mi_tsv_created, mi_tsv_deleted): Update declaration.
436 (mi_interpreter_init): Call observer_attach_tsv_modified.
437 (mi_tsv_modified): New.
438 (mi_tsv_created, mi_tsv_deleted): Update.
439 * tracepoint.c (trace_variable_command): Call
440 observer_notify_tsv_modified if the initial value of tsv is
441 changed.
442 (delete_trace_state_variable): Call
443 observer_notify_tsv_deleted earlier.
444 (trace_variable_command): Caller update.
445 (create_tsv_from_upload): Likewise.
446 * observer.sh: Declare "struct trace_state_variable".
447
448 * NEWS: Mention the new MI notification "=tsv-modified".
449
450 2013-02-05 Doug Evans <dje@google.com>
451
452 * completer.c (location_completer): Fix typo in comment.
453
454 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 * breakpoint.c (add_location_to_breakpoint): Insert the location with
457 ADDRESS sorted.
458
459 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
460
461 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
462 Refactor if statement to avoid trailing || operator.
463
464 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
465
466 * NEWS: Add PowerPC FreeBSD as a new native configuration.
467
468 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
469
470 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
471 * configure.host: Add powerpc*-*-freebsd* target.
472 * configure.tgt: Add target info for powerpc*-*-freebsd*.
473 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
474 * config/powerpc/fbsd.mh: New file.
475
476 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
477 Denys Vlasenko <dvlasenk@redhat.com>
478 Pedro Alves <palves@redhat.com>
479
480 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
481 (struct elf_internal_linux_prpsinfo): Forward declare.
482 * gdbarch.h, gdbarch.c: Regenerate.
483 * linux-tdep.c: Include `cli/cli-utils.h'.
484 (linux_fill_prpsinfo): New function.
485 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
486 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
487 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
488 depending on gdbarch pointer bitness.
489 * ppc-linux-tdep.c: Include elf-bfd.h.
490 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
491 on 32-bit.
492
493 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
494 Marcus Shawcroft <marcus.shawcroft@arm.com>
495 Nigel Stephens <nigel.stephens@arm.com>
496 Yufeng Zhang <yufeng.zhang@arm.com>
497
498 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
499
500 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
501 Marcus Shawcroft <marcus.shawcroft@arm.com>
502 Nigel Stephens <nigel.stephens@arm.com>
503 Yufeng Zhang <yufeng.zhang@arm.com>
504
505 * aarch64-newlib-tdep.c: New file.
506 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
507 aarch64*-*-elf.
508 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
509 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
510 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
511 * osabi.c (gdb_osabi_names): Add "Newlib".
512
513 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
514 Marcus Shawcroft <marcus.shawcroft@arm.com>
515 Nigel Stephens <nigel.stephens@arm.com>
516 Yufeng Zhang <yufeng.zhang@arm.com>
517
518 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
519 (ALLDEPFILES): Add aarch64-linux-tdep.c.
520 * aarch64-linux-tdep.c: New file.
521 * aarch64-linux-tdep.h: New file.
522 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
523 * configure.tgt: Add aarch64-none-linux-gnu.
524
525 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
526 Marcus Shawcroft <marcus.shawcroft@arm.com>
527 Nigel Stephens <nigel.stephens@arm.com>
528 Yufeng Zhang <yufeng.zhang@arm.com>
529
530 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
531 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
532 (ALLDEPFILES): Add aarch64-tdep.c.
533 * aarch64-tdep.c: New file.
534 * aarch64-tdep.h: New file.
535 * configure.tgt: Add AArch64.
536 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
537 (aarch64-expedite): New definition.
538 * features/aarch64-core.xml: New file.
539 * features/aarch64-fpu.xml: New file.
540 * features/aarch64-without-fpu.c: New file (generated).
541 * features/aarch64-without-fpu.xml: New file.
542 * features/aarch64.c: New file (generated).
543 * features/aarch64.xml: New file.
544 * regformats/aarch64-without-fpu.dat: New file (generated).
545 * regformats/aarch64.dat: New file (generated).
546
547 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
548
549 * contrib/expect-read1.c: New file.
550 * contrib/expect-read1.sh: New file.
551
552 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
553
554 * dwarf2read.c (file_file_name): New function with code from
555 file_full_name.
556 (file_full_name): Move most of the code to file_file_name.
557 (macro_start_file): Rename variable full_name to file_name and use
558 file_file_name for it. Add comp_dir parameter to new_macro_table.
559 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
560 macro_source_file->filename access by macro_source_fullname call.
561 * macroscope.c (_initialize_macroscope): Update the new_macro_table
562 caller.
563 * macrotab.c (struct macro_table): New field comp_dir.
564 (macro_include): New variables link_fullname and source_fullname.
565 Replace any macro_source_file->filename access by macro_source_fullname
566 call.
567 (macro_lookup_inclusion): Remove the partial filenames checking code.
568 (check_for_redefinition): New variables source_fullname and
569 found_key_fullname. Replace any macro_source_file->filename access by
570 macro_source_fullname call.
571 (macro_undef): New variables source_fullname and key_fullname. Replace
572 any macro_source_file->filename access by macro_source_fullname call.
573 (macro_lookup_definition): New variables retval and source_fullname.
574 Replace any macro_source_file->filename access by macro_source_fullname
575 call.
576 (foreach_macro): New variable key_fullname. Replace any
577 macro_source_file->filename access by macro_source_fullname call.
578 (foreach_macro_in_scope): New variable datum_fullname. Replace any
579 macro_source_file->filename access by macro_source_fullname call.
580 (new_macro_table): Add parameter comp_dir. Initialize T with it.
581 (macro_source_fullname): New function.
582 * macrotab.h (struct macro_source_file): Extent the filename field
583 comment.
584 (new_macro_table): New parameter comp_dir, add a comment for it.
585 (macro_source_fullname): new declaration.
586
587 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
588
589 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
590 this_real_name to outer block. Use it also for
591 compare_filenames_for_search.
592 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
593 with dw2_get_real_path for file_matcher, considering also
594 BASENAMES_MAY_DIFFER.
595 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
596
597 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
598
599 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
600 to the file_matcher parameter. Pass 0 to it.
601 (dwarf2_create_include_psymtab): Copy also DIRNAME.
602 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
603 NULL psymtab_to_fullname result.
604 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
605 an expected filename instead.
606 (expand_symtabs_matching_via_partial): Add basenames parameter to the
607 file_matcher parameter. Call also psymtab_to_fullname, after newly
608 considering BASENAMES_MAY_DIFFER.
609 * source.c (rewrite_source_path): Remove static.
610 * source.h (rewrite_source_path): New declaration.
611 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
612 the expand_symtabs_matching field. Comment it.
613 * symtab.c (file_matches): New function comment. Add parameter
614 basenames, implement it.
615 (search_symbols_file_matches): Add basenames parameter. Update the
616 file_matches caller.
617 (search_symbols): Match FILES also against symtab_to_fullname.
618 Optimize it for BASENAMES_MAY_DIFFER.
619
620 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
621
622 * source.c (print_source_lines_base): Print for TUI also "fullname".
623 * tui/tui-data.c (init_content_element): Change tui_locator_element
624 field to full_name.
625 * tui/tui-data.h (struct tui_locator_element): Likewise.
626 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
627 tui_update_locator_filename calls to tui_update_locator_fullname.
628 Replace symtab->filename refererence by symtab_to_fullname call.
629 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
630 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
631 field to full_name. Replace symtab->filename refererence by
632 symtab_to_fullname call.
633 (tui_show_symtab_source): Rename parameter to fullname. Change
634 tui_locator_element field to full_name.
635 * tui/tui-stack.c: Include source.h.
636 (tui_set_locator_filename): Rename the declaration to ...
637 (tui_set_locator_fullname): ... here. Rename its parameter to
638 fullname, updates its comment.
639 (tui_set_locator_info): Rename its parameter to fullname.
640 (tui_set_locator_filename): Rename the definition to ...
641 (tui_set_locator_fullname): ... here. Rename its parameter to
642 fullname, updates its comment. Change tui_locator_element field to
643 full_name.
644 (tui_set_locator_info): Rename its parameter to fullname.
645 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
646 (tui_update_locator_filename): Rename to ...
647 (tui_update_locator_fullname): ... here. Rename callee to
648 tui_set_locator_fullname.
649 (tui_show_frame_info): Replace symtab->filename refererence by
650 symtab_to_fullname call.
651 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
652 (tui_update_locator_fullname): ... here.
653 * tui/tui-winsource.c (tui_display_main): Rename the callee to
654 tui_update_locator_fullname. Replace symtab->filename refererence by
655 symtab_to_fullname call.
656 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
657 Rename the callee to tui_update_locator_fullname.
658 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
659
660 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
661
662 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
663 by symtab_to_filename_for_display calls.
664 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
665 (clear_command): New variable sal_fullname, initialize it. Replace
666 compare_filenames_for_search by filename_cmp with sal_fullname.
667 (say_where, update_static_tracepoint): Replace symtab->filename
668 refererences by symtab_to_filename_for_display calls.
669 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
670 Likewise.
671 * dwarf2read.c: Include source.h.
672 (fixup_go_packaging): Replace symtab->filename refererences by
673 symtab_to_filename_for_display calls.
674 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
675 Replace symtab->filename refererences by symtab_to_filename_for_display
676 calls.
677 (create_sals_line_offset, convert_linespec_to_sals): New variable
678 fullname, initialize it, replace symtab->filename reference by the
679 variable.
680 * linux-fork.c: Include source.h.
681 (info_checkpoints_command): Replace symtab->filename refererences by
682 symtab_to_filename_for_display calls.
683 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
684 by symtab_to_filename_for_display calls.
685 * mdebugread.c: Include source.h.
686 (psymtab_to_symtab_1): Replace symtab->filename refererences by
687 symtab_to_filename_for_display calls.
688 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
689 (mi_cmd_file_list_exec_source_files): Likewise.
690 * printcmd.c: Include source.h.
691 (build_address_symbolic): Replace symtab->filename refererences by
692 symtab_to_filename_for_display calls.
693 * psymtab.c (partial_map_symtabs_matching_filename)
694 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
695 with psymtab_to_fullname.
696 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
697 by symtab_to_filename_for_display calls.
698 (stpy_get_filename): New variable filename, initialize it, use instead
699 of symtab->filename refererences.
700 (salpy_str): Make variable filename const char *. Replace
701 symtab->filename refererences by symtab_to_filename_for_display calls.
702 * skip.c: Include source.h and filenames.h.
703 (skip_file_command): Remove const from the symtab variable. Replace
704 symtab->filename refererences by symtab_to_fullname call.
705 (function_name_is_marked_for_skip): New variables searched_for_fullname
706 and fullname. Use them to search also with symtab's fullname.
707 * source.c (find_source_lines): Replace symtab->filename refererences
708 by symtab_to_filename_for_display calls.
709 (print_source_lines_base): New variable filename, use it instead of
710 symtab->filename. Replace symtab->filename refererences by
711 symtab_to_filename_for_display calls.
712 (line_info, forward_search_command): Replace symtab->filename
713 refererences by symtab_to_filename_for_display calls.
714 (reverse_search_command): Replace symtab->filename refererences by
715 symtab_to_filename_for_display calls. New variable filename for it.
716 * stack.c (frame_info): Likewise.
717 * symmisc.c: Include source.h.
718 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
719 (maintenance_info_symtabs): Replace symtab->filename refererences by
720 symtab_to_filename_for_display calls.
721 * symtab.c (iterate_over_some_symtabs): Call
722 compare_filenames_for_search also with symtab_to_fullname.
723 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
724 symtab->filename refererences by symtab_to_filename_for_display calls.
725 (find_line_symtab): Replace symtab->filename refererences by
726 symtab_to_filename_for_display calls.
727 (file_matches): Replace filename_cmp by compare_filenames_for_search.
728 (print_symbol_info): Make the last parameter const char *. New
729 variable s_filename. Use it in the function.
730 (symtab_symbol_info): Make the last_filename variable const char *.
731 Replace symtab->filename refererences by symtab_to_filename_for_display
732 calls.
733 (rbreak_command): New variable fullname. Use it. Replace
734 symtab->filename refererence by symtab_to_filename_for_display call.
735 * tracepoint.c (set_traceframe_context, trace_find_line_command)
736 (print_one_static_tracepoint_marker): Replace symtab->filename
737 refererences by symtab_to_filename_for_display calls.
738 * tui/tui-source.c (tui_set_source_content): New variables filename and
739 s_filename. Replace symtab->filename refererences by this variable.
740 Replace other symtab->filename refererences by
741 symtab_to_filename_for_display calls.
742
743 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
744 Jan Kratochvil <jan.kratochvil@redhat.com>
745
746 Add a new variable that controls a way in which filenames are
747 displayed.
748 * NEWS (set filename-display): New entry.
749 * source.c (filename_display_basename, filename_display_relative)
750 (filename_display_absolute, filename_display_kind_names)
751 (filename_display_string, show_filename_display_string)
752 (symtab_to_filename_for_display): New.
753 (_initialize_source): Added initialization of 'filename-display'
754 variable.
755 * source.h (symtab_to_filename_for_display): Added declaration.
756 * stack.c (print_frame): Added new variable and calling of a new
757 function and condition with this variable. Changed third argument of
758 calling of a function.
759
760 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
761
762 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
763 Rename field reference filename to fullname.
764 * tui/tui-data.h (struct tui_source_info): Rename field filename to
765 fullname. New comment for it.
766 * tui/tui-source.c (tui_set_source_content): Rename field reference
767 filename to fullname. Initialize field by symtab_to_fullname now.
768 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
769 reference filename to fullname. Use symtab_to_fullname during
770 comparison.
771
772 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
773
774 Code cleanup.
775 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
776 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
777 filename to fullname. Rename variable this_name to this_fullname.
778 Lowercase FILENAME_CMP call.
779 (dw2_find_symbol_file): New comment for the returned string.
780 (dwarf2_gdb_index_functions): Rename the function to
781 dw2_expand_symtabs_with_fullname.
782 * psymtab.c (read_psymtabs_with_filename): Rename to ...
783 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
784 fullname.
785 (psym_functions): Rename the function to read_psymtabs_with_fullname.
786 * symfile.h (struct quick_symbol_functions): Rename field
787 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
788 parameter filename to fullname. Document returned string meaning for
789 find_symbol_file.
790 * symtab.c (find_line_symtab): Rename the called function to
791 expand_symtabs_with_fullname.
792
793 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
794
795 Code cleanup.
796 * breakpoint.c (clear_command): Remove variable is_abs, unify the
797 call of filename_cmp with compare_filenames_for_search.
798 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
799 is_abs, unify the call of FILENAME_CMP with
800 compare_filenames_for_search. New gdb_asserts for real_path and name.
801 Unify the call of compare_filenames_for_search with FILENAME_CMP.
802 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
803 * symfile.h (struct quick_symbol_functions): Extend the comment for
804 map_symtabs_matching_filename.
805 * symtab.c (compare_filenames_for_search): Remove the function comment
806 relative path requirement. Handle absolute filenames, with a comment.
807 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
808 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
809 real_path and name. Unify the call of compare_filenames_for_search
810 with FILENAME_CMP.
811 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
812
813 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
814
815 Code cleanup.
816 * breakpoint.c (print_breakpoint_location): Replace bp_location field
817 source_file references by symtab field references. Remove variables
818 sal and fullname.
819 (momentary_breakpoint_from_master, add_location_to_breakpoint):
820 (clear_command, say_where): Replace bp_location field source_file
821 references by symtab field references.
822 (bp_location_dtor): Remove the source_file reference.
823 (update_static_tracepoint): Replace bp_location field source_file
824 references by symtab field references.
825 (breakpoint_free_objfile): New function.
826 * breakpoint.h (struct bp_location): Extend the comment for line_number.
827 Replace the field source_file by field symtab, extend its comment.
828 (breakpoint_free_objfile): New declaration.
829 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
830 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
831 field source_file references by symtab field references.
832
833 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
834
835 Replace xfullpath calls by gdb_realpath calls.
836 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
837 function comment.
838 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
839 Remove it from the iterate_over_some_symtabs call.
840 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
841 Remove it from the dw2_map_expand_apply calls, remove a block handling
842 it.
843 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
844 Remove it from the iterate_over_some_symtabs call.
845 (partial_map_symtabs_matching_filename): Remove parameter full_path.
846 Remove it from the partial_map_expand_apply calls, remove a block
847 handling it. Drop gdb_realpath call and cleanups from the real_path
848 handling.
849 * source.c (openp): Drop the comment part about xfullpath. Replace
850 xfullpath calls by gdb_realpath calls.
851 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
852 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
853 from method map_symtabs_matching_filename and its comment.
854 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
855 gdb_realpath call.
856 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
857 remove it also from the function comment, remove a block handling it.
858 Drop gdb_realpath call and cleanups from the real_path handling.
859 (iterate_over_symtabs): Drop variable full_path and its use.
860 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
861 * utils.c (xfullpath): Remove.
862 * utils.h (xfullpath): Remove.
863
864 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
865
866 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
867 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
868 (ALLDEPFILES): Add ppc64-tdep.c.
869 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
870 ppc64-tdep.o to gdb_target_obs.
871 * ppc64-tdep.h: New file.
872 * ppc64-tdep.c: New file.
873 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
874 ppc-linux-tdep.c to here.
875 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
876 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
877 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
878 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
879 from ppc-linux-tdep.c to here.
880 (ppc64_convert_from_func_ptr_addr): Rename from
881 ppc64_linux_convert_from_func_ptr_addr to
882 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
883 here.
884 * rs6000-tdep.c:
885 (read_insn): Move from ppc-linux-tdep.c to here.
886 (insns_match_pattern, insn_d_field, insn_ds_field): Move
887 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
888 * ppc-linux-tdep.c: Include ppc64-tdep.h.
889 Removed above functions.
890 (ppc_linux_init_abi): Adjust.
891
892 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
893
894 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
895
896 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
897
898 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
899
900 2013-02-01 Pedro Alves <palves@redhat.com>
901
902 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
903 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
904
905 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
906
907 * elfread.c (elf_symfile_read): Limit separate debug info additions to
908 files with no separate debug info.
909 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
910 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
911 only for files with no separate debug info.
912
913 2013-01-31 Tom Tromey <tromey@redhat.com>
914
915 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
916 change type.
917 (struct jit_program_space_data): Rename from jit_inferior_data.
918 Update comments.
919 (get_jit_program_space_data): Rename from get_jit_inferior_data.
920 Change return type. Attach data to program space.
921 (jit_program_space_data_cleanup): Rename from
922 jit_inferior_data_cleanup; change argument type.
923 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
924 change type.
925 (jit_register_code): Update.
926 (jit_update_inferior_cache): Remove.
927 (jit_breakpoint_deleted): Get jit data from the location's program
928 space.
929 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
930 'ps_data', change type.
931 (jit_inferior_init, jit_breakpoint_re_set_internal)
932 (jit_event_handler): Update.
933 (free_objfile_data): Get data from objfile's program space.
934 (_initialize_jit): Update.
935
936 2013-01-31 Tom Tromey <tromey@redhat.com>
937
938 PR gdb/13987:
939 * jit.c (struct jit_inferior_data) <cached_code_address,
940 jit_breakpoint>: New fields.
941 (jit_breakpoint_re_set_internal): Fix logging. Only create
942 breakpoint if cached address has changed.
943 (jit_update_inferior_cache, jit_breakpoint_deleted): New
944 functions.
945 (_initialize_jit): Register breakpoint deleted observer.
946
947 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
948
949 * infrun.c (handle_syscall_event): Remove unused gdbarch.
950 (save_infcall_suspend_state): Ifdef out unused inf.
951 (restore_infcall_suspend_state): Ifdef out unused inf.
952 * jit.c (jit_register_code): Remove unused i, b, inf_data.
953 (jit_frame_sniffer): Remove unused inf_data.
954
955 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
956
957 * c-exp.y (classify_inner_name): Remove unused type.
958 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
959 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
960 need_escape.
961 (c_get_string): Remove unused kind.
962 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
963
964 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
965
966 * charset.c (intermediate_encoding): Remove unused i.
967 * completer.c (signal_completer): Remove unused i.
968 * continuations.c (discard_my_continuations_1): Remove unused
969 continuation_ptr.
970 * corelow.c (core_close): Remove unuseD name.
971 (get_core_siginfo): Remove unused pid.
972 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
973 i, cps.
974 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
975 (loclist_describe_location): Remove unused first.
976 * event-top.c (command_line_handler): Remove unused got_eof.
977 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
978 (resize_section_table): Remove unused old_value.
979 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
980 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
981 * i386-tdep.c (i386_process_record): Remove unused rex.
982 * infcmd.c (get_return_value): Remove unused uiout.
983 * jv-lang.c (type_from_class): Remove unused is_array.
984 * jv-valprint.c (java_val_print): Remove unused i.
985 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
986 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
987 * m2-typeprint.c (m2_print_type): Remove unused code.
988 * macroexp.c (get_character_constant): Remove unused body_start.
989 (macro_stringify): Remove unused result.
990 * objc-lang.c (find_methods): Remove unused gdbarch.
991 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
992 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
993 * stack.c (print_frame_args): Remove unused summary.
994 * thread.c (thread_apply_command): Remove unused p.
995 * valarith.c (value_x_unop): Remove unused mangle_ptr.
996 * valops.c (search_struct_method): Remove unused skip.
997 * valprint.c (generic_val_print): Remove unused byte_order.
998 * varobj.c (varobj_update): Remove unused changed.
999 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1000 (alias_command): Remove unused c.
1001 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1002 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1003 format.
1004 (mi_cmd_data_write_memory): Remove unused word_format.
1005 (mi_cmd_data_write_memory_bytes): Remove unused r.
1006 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1007 p_start, p_end.
1008 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1009 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1010 line_width.
1011
1012 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1013
1014 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1015 * symtab.c (iterate_over_symtabs): Remove unused s.
1016 (find_pc_sect_symtab): Remove unused pspAce.
1017 (find_pc_sect_line): Remove unused alt_symtab.
1018 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1019 (completion_list_add_name): Remove unused newsize.
1020
1021 2013-01-31 Tom Tromey <tromey@redhat.com>
1022
1023 PR c++/14998:
1024 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1025 TYPE_CODE_FUNC.
1026
1027 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1028
1029 * target.c (target_read_string): Remove unused origlen.
1030
1031 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1032
1033 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1034 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1035 * ax-general.c (ax_print): Remove unused is_float.
1036 * blockframe.c (block_innermost_frame): Remove unused start, end.
1037 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1038
1039 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1040
1041 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1042 (svr4_read_so_list): Remove unused lmo.
1043 * solib-target.c (solib_target_relocate_section_addresses): Remove
1044 unused flags.
1045
1046 2013-01-30 Tom Tromey <tromey@redhat.com>
1047
1048 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1049
1050 2013-01-30 Tom Tromey <tromey@redhat.com>
1051
1052 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1053 * utils.c (gnu_debuglink_crc32): Remove.
1054 * utils.h (gnu_debuglink_crc32): Don't declare.
1055
1056 2013-01-30 Tom Tromey <tromey@redhat.com>
1057
1058 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1059 (read_structure_type, read_enumeration_type): Remove cast.
1060
1061 2013-01-30 Tom Tromey <tromey@redhat.com>
1062
1063 * dwarf2read.c (read_namespace_type): Remove cast.
1064 (read_typedef): Likewise.
1065
1066 2013-01-29 Tom Tromey <tromey@redhat.com>
1067
1068 * dwarf2read.c (free_dwo_file): Remove assert.
1069
1070 2013-01-29 Tom Tromey <tromey@redhat.com>
1071
1072 * value.c (deprecated_set_value_modifiable): Remove.
1073 * value.h (deprecated_set_value_modifiable): Remove.
1074
1075 2013-01-28 Doug Evans <dje@google.com>
1076
1077 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1078 to addresses from dwo files.
1079
1080 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1081
1082 * valops.c (find_overload_match): Remove unused argument 'lax'.
1083 * value.h: Remove unused argument 'lax' from the declaration of
1084 find_overload_match.
1085 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1086 to find_overload_match.
1087 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1088 argument to find_overload_match.
1089
1090 2013-01-25 Tom Tromey <tromey@redhat.com>
1091
1092 * dwarf2read.c (processing_has_namespace_info): Remove.
1093 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1094 (process_die, read_func_scope, dwarf2_start_symtab)
1095 (new_symbol_full): Update.
1096
1097 2013-01-25 Tom Tromey <tromey@redhat.com>
1098
1099 * cp-namespace.c (cp_set_block_scope): Remove.
1100 * cp-support.h (cp_set_block_scope): Remove.
1101 * dbxread.c: Include block.h.
1102 (cp_set_block_scope): New function.
1103 (process_one_symbol): Update.
1104 * dwarf2read.c (read_func_scope): Use block_set_scope.
1105
1106 2013-01-25 Pedro Alves <palves@redhat.com>
1107
1108 * remote.c (add_current_inferior_and_thread): Tweak comment.
1109
1110 2013-01-25 Tom Tromey <tromey@redhat.com>
1111
1112 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1113 (cp_add_using_directive): Add 'copy_names' argument.
1114 * cp-support.h (cp_add_using_directive): Update.
1115 (struct using_direct) <import_src, import_dest, alias,
1116 declaration>: Now const.
1117 * dwarf2read.c (read_import_statement): Use obconcat.
1118 Don't copy names passed to cp_add_using_directive.
1119
1120 2013-01-25 Tom Tromey <tromey@redhat.com>
1121
1122 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1123
1124 2013-01-25 Pedro Alves <palves@redhat.com>
1125
1126 * remote.c (stop_reply_extract_thread): New.
1127 (add_current_inferior_and_thread): New parameter 'wait_status'.
1128 Handle it.
1129 (remote_start_remote): Pass wait status to
1130 add_current_inferior_and_thread.
1131 (extended_remote_run): Update comment.
1132 (extended_remote_create_inferior_1): Pass wait status to
1133 add_current_inferior_and_thread.
1134
1135 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1136 Ulrich Weigand <uweigand@de.ibm.com>
1137
1138 * valarith.c (value_vector_widen): New function for replicating a
1139 scalar into a vector.
1140 (value_binop): Use value_vector_widen to widen scalar to vector
1141 rather than casting, this better matches gcc C behaviour.
1142 * valops.c (value_casst): Update logic for casting between vector
1143 types, and for casting from scalar to vector, try to match gcc C
1144 behaviour.
1145 * value.h (value_vector_widen): Declare.
1146 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1147 function, handle special case for casting scalar to vector.
1148 (opencl_relop): Use opencl_value_cast.
1149 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1150 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1151 in order to use opencl_value_cast.
1152
1153 2013-01-25 Yao Qi <yao@codesourcery.com>
1154
1155 * event-loop.c: Include "queue.h".
1156 (gdb_event_p): New typedef.
1157 (DECLARE_QUEUE_P): Use.
1158 (DEFINE_QUEUE_P): Use.
1159 (async_queue_event): Remove.
1160 (gdb_event_xfree): New.
1161 (initialize_event_loop): New.
1162 (process_event): Use QUEUE macros.
1163 (event_queue): Remove.
1164 (gdb_wait_for_event): Caller update.
1165 (check_async_event_handlers): Likewise.
1166 (poll_timers): Likewise.
1167 * event-loop.h (initialize_event_loop): Declare.
1168 * event-loop.c (gdb_event_xfree): New.
1169 * top.c (gdb_init): Call initialize_event_loop.
1170
1171 2013-01-25 Yao Qi <yao@codesourcery.com>
1172
1173 * event-loop.c (async_queue_event): Remove one parameter
1174 'position'. Remove code handling 'position' == TAIL.
1175 (gdb_wait_for_event): Caller update.
1176 (check_async_event_handlers): Caller update.
1177 (poll_timers): Caller update.
1178 * event-loop.h (enum queue_position): Remove.
1179
1180 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1181
1182 * MAINTAINERS: Update my email.
1183
1184 2013-01-25 Yao Qi <yao@codesourcery.com>
1185
1186 * main.c (print_gdb_help): Remove "--epoch" from the help
1187 message.
1188
1189 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1190
1191 * symtab.c (skip_prologue_using_sal): Consider a file
1192 change the same as an increased line number
1193
1194 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1195
1196 * MAINTAINERS (Write After Approval): Add myself to the list.
1197
1198 2013-01-24 Tom Tromey <tromey@redhat.com>
1199
1200 * ada-lang.h (ada_decode_symbol): Make return type const.
1201 * ada-lang.c (ada_decode_symbol): Likewise.
1202
1203 2013-01-23 Doug Evans <dje@google.com>
1204
1205 * linespec.c (find_linespec_symbols): Make static.
1206
1207 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1208
1209 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1210 type on float conversion for complex type.
1211
1212 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1213
1214 Add a new class gdb.Architecture which exposes GDB's
1215 internal representation of architecture via GDB Python API.
1216 * Makefile.in: Add entries corresponding to the new file
1217 python/py-arch.c.
1218 * NEWS (Python Scripting): Add entries for the new class
1219 gdb.Architecture and the new method gdb.Frame.architecture.
1220 * python/py-arch.c: Implement gdb.Architecture class.
1221 * python/py-frame.c (frapy_arch): Implement the method
1222 gdb.Frame.architecture().
1223 (frame_object_methods): Add 'architecture' to the method table.
1224 * python/python-internal.h: Add declarations of new utility
1225 functions.
1226 * python/python.c (_initialize_python): Initialize
1227 gdb.Architecture class.
1228
1229 2013-01-23 Doug Evans <dje@google.com>
1230
1231 Work around binutils/15021.
1232 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1233 type_unit_group out of union s. All uses updated.
1234 (read_index_from_section): Watch for index version 8.
1235 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1236 an imported symtab.
1237 (write_psymtabs_to_index): Increment version number to 8.
1238
1239 2013-01-22 Pedro Alves <palves@redhat.com>
1240
1241 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1242 user-visible.
1243
1244 2013-01-22 Pedro Alves <palves@redhat.com>
1245
1246 * annotate.c (annotate_breakpoints_changed): Rename to ...
1247 (annotate_breakpoints_invalid): ... this. Make static.
1248 (breakpoint_changed): Adjust.
1249 (_initialize_annotate): Always install the observers. Install a
1250 "breakpoint_created" observer.
1251 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1252 * breakpoint.c (set_breakpoint_condition)
1253 (breakpoint_set_commands, do_map_commands_command)
1254 (init_raw_breakpoint, clear_command, set_ignore_count)
1255 (enable_breakpoint_disp): No longer call
1256 annotate_breakpoints_changed.
1257
1258 2013-01-22 Pedro Alves <palves@redhat.com>
1259
1260 * annotate.c: Include "inferior.h".
1261 (frames_invalid_emitted)
1262 (breakpoints_invalid_emitted): New globals.
1263 (async_background_execution_p): New function.
1264 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1265 emitting the annotation if it has already been emitted.
1266 (annotate_display_prompt): New function.
1267 * annotate.h (annotate_display_prompt): New declaration.
1268 * event-top.c: Include annotate.h.
1269 (display_gdb_prompt): Call annotate_display_prompt.
1270
1271 2013-01-22 Pedro Alves <palves@redhat.com>
1272
1273 * annotate.c (ignore_count_changed): Delete.
1274 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1275 (annotate_ignore_count_change): Delete.
1276 (annotate_stopped): Don't emit a delayed breakpoints-changed
1277 annotation.
1278 * annotate.h (annotate_ignore_count_change): Delete.
1279 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1280 annotate_ignore_count_change.
1281
1282 2013-01-22 Tom Tromey <tromey@redhat.com>
1283
1284 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1285 require_rvalue for a register location.
1286
1287 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1288
1289 * breakpoint.c (print_one_breakpoint_location): Add MI
1290 field 'thread-groups' when printing a breakpoint.
1291 (output_thread_groups): New function.
1292
1293 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1294
1295 * python/lib/gdb/commands/explore.py
1296 (CompoundExplorer.explore_expr): Correct the name of a method
1297 being invoked.
1298 (ExploreTypeCommand.invoke): Add a missing 'return'.
1299
1300 2013-01-21 Tom Tromey <tromey@redhat.com>
1301
1302 * gdb_obstack.h (obconcat): Move declaration here, from...
1303 * symfile.h (obconcat): ... here.
1304 * gdb_obstack.c: New file.
1305 (obconcat): Move from...
1306 * symfile.c (obconcat): ... here.
1307 * Makefile.in (SFILES): Add gdb_obstack.c.
1308 (COMMON_OBS): Add gdb_obstack.o.
1309
1310 2013-01-21 Tom Tromey <tromey@redhat.com>
1311
1312 * symfile.h (obsavestring): Don't declare.
1313 * symfile.c (obsavestring): Remove.
1314 * ada-exp.y: Use obstack_copy0, not obsavestring.
1315 * ada-lang.c: Use obstack_copy0, not obsavestring.
1316 * coffread.c: Use obstack_copy0, not obsavestring.
1317 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1318 * dbxread.c: Use obstack_copy0, not obsavestring.
1319 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1320 * jit.c: Use obstack_copy0, not obsavestring.
1321 * mdebugread.c: Use obstack_copy0, not obsavestring.
1322 * psymtab.c: Use obstack_copy0, not obsavestring.
1323 * stabsread.c: Use obstack_copy0, not obsavestring.
1324 * xcoffread.c: Use obstack_copy0, not obsavestring.
1325
1326 2013-01-21 Tom Tromey <tromey@redhat.com>
1327
1328 * dwarf2read.c (fixup_go_packaging): Save package name
1329 on objfile obstack.
1330 * gdbtypes.c (init_type): Don't copy name.
1331
1332 2013-01-21 Tom Tromey <tromey@redhat.com>
1333
1334 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1335 const.
1336 (struct attribute) <u.str>: Now const.
1337 (struct fnfieldlist) <name>: Now const.
1338 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1339 (partial_die_parent_scope): Make return type const.
1340 (partial_die_full_name, add_partial_symbol): Update.
1341 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1342 'name' const.
1343 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1344 (read_file_scope, read_func_scope, dwarf2_add_field)
1345 (dwarf2_add_member_fn, read_structure_type)
1346 (process_enumeration_scope, read_array_type, read_module_type)
1347 (read_base_type, read_subrange_type): Update.
1348 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1349 (new_symbol_full, guess_full_die_structure_name): Update.
1350 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1351 (dwarf2_name): Return const type.
1352 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1353 const.
1354
1355 2013-01-21 Tom Tromey <tromey@redhat.com>
1356
1357 * gdbtypes.c (init_type): Make 'name' const.
1358 * gdbtypes.h (init_type): Update.
1359
1360 2013-01-21 Tom Tromey <tromey@redhat.com>
1361
1362 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1363 (start_symtab): Make 'name' and 'dirname' const. Use
1364 set_last_source_file.
1365 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1366 (last_source_file): Define. Now static.
1367 (set_last_source_file, get_last_source_file): New functions.
1368 * buildsym.h (last_source_file): Don't declare.
1369 (start_symtab): Update.
1370 (set_last_source_file, get_last_source_file): Declare.
1371 * coffread.c (complete_symtab): Use set_last_source_file.
1372 (coff_end_symtab): Likewise.
1373 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1374 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1375 set_last_source_file.
1376 (process_one_symbol): Use get_last_source_file.
1377 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1378 (psymtab_to_symtab_1): Use get_last_source_file.
1379 * xcoffread.c (process_linenos): Use get_last_source_file.
1380 (complete_symtab): Use set_last_source_file.
1381 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1382 (scan_xcoff_symtab): Use set_last_source_file.
1383
1384 2013-01-21 Tom Tromey <tromey@redhat.com>
1385
1386 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1387 (symbol_set_names): Remove casts. Handle field const-ness.
1388
1389 2013-01-21 Tom Tromey <tromey@redhat.com>
1390
1391 * dwarf2read.c (new_symbol_full): Remove cast.
1392 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1393 * symtab.h (symbol_set_demangled_name): Update.
1394
1395 2013-01-21 Tom Tromey <tromey@redhat.com>
1396
1397 * main.c (captured_main): Call bfd_init.
1398
1399 2013-01-21 Tom Tromey <tromey@redhat.com>
1400
1401 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1402 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1403 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1404 * NEWS: Update.
1405
1406 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1407
1408 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1409
1410 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1411
1412 Fix gdb.fortran/common-block.exp crash in PIE mode.
1413 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1414 LOC_COMMON_BLOCK.
1415 * f-valprint.c (info_common_command_for_block): Expect
1416 LOC_COMMON_BLOCK in gdb_assert.
1417 * symtab.h (struct general_symbol_info): Update comment for the
1418 common_block member.
1419 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1420 (enum address_class): New member LOC_COMMON_BLOCK.
1421
1422 2013-01-18 David Blaikie <dblaikie@gmail.com>
1423
1424 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1425
1426 2013-01-18 Tom Tromey <tromey@redhat.com>
1427
1428 PR c++/14999:
1429 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1430 Call require_rvalue.
1431
1432 2013-01-18 Yao Qi <yao@codesourcery.com>
1433
1434 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1435 (dbx_read_symtab): New declaration.
1436 (dbx_psymtab_to_symtab): Delete.
1437 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1438 Rename parameter PST to SELF. Exchanged two parameters.
1439 (start_psymtab): Caller update.
1440 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1441 (dwarf2_read_symtab): New declaration.
1442 (dwarf2_psymtab_to_symtab): Delete.
1443 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1444 Rename parameter PST to SELF. Exchanged two parameters.
1445 (create_partial_symtab): Caller update.
1446 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1447 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1448 Rename parameter PST to SELF. Exchanged two parameters.
1449 (parse_partial_symbols, new_psymtab): Caller update.
1450 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1451 two parameters.
1452 * psymtab.c (psymtab_to_symtab): Caller update.
1453 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1454 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1455 Rename parameter PST to SELF. Exchanged two parameters.
1456 (xcoff_start_psymtab): Caller update.
1457
1458 2013-01-18 Yao Qi <yao@codesourcery.com>
1459
1460 * infrun.c (proceed): Rename local variable 'oneproc' to
1461 'force_step'.
1462
1463 2013-01-17 Doug Evans <dje@google.com>
1464
1465 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1466 (dw2_build_type_unit_groups): Delete. All uses updated.
1467
1468 * symtab.h (struct symbol_search): Add comment.
1469
1470 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1471
1472 * symtab.c (compare_filenames_for_search): New comment for
1473 HAS_DRIVE_SPEC.
1474
1475 2013-01-17 Tom Tromey <tromey@redhat.com>
1476
1477 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1478
1479 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1480
1481 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1482 initialize it by existing make_cleanup. Call new do_cleanups.
1483
1484 2013-01-17 Tom Tromey <tromey@redhat.com>
1485
1486 * cp-abi.c (cp_abi_completer): New function.
1487 (_initialize_cp_abi): Set completer for "set cp-abi".
1488
1489 2013-01-17 Tom Tromey <tromey@redhat.com>
1490
1491 * mem-break.c: Remove obsolete comment.
1492 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1493
1494 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1495
1496 * jit.c (jit_reader_load_command): Interpret the jit reader name
1497 as an absolute path if it begins with a forward slash.
1498
1499 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1500
1501 PR gdb/14550
1502
1503 * jit.c (finalize_symtab): Ensure that only the global block has a
1504 NULL superblock.
1505
1506 2013-01-17 Pedro Alves <palves@redhat.com>
1507
1508 * acinclude.m4: Include ../config/plugins.m4,
1509 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1510 * Makefile.in (aclocal_m4_deps): Update.
1511 * aclocal.m4: Renegerate.
1512
1513 2013-01-16 Doug Evans <dje@google.com>
1514
1515 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1516
1517 2013-01-16 Pedro Alves <palves@redhat.com>
1518 Tom Tromey <tromey@redhat.com>
1519
1520 PR cli/7221:
1521 * NEWS: Add "catch signal".
1522 * breakpoint.c (base_breakpoint_ops): No longer static.
1523 (bpstat_explains_signal): New function.
1524 (init_catchpoint): No longer static.
1525 (base_breakpoint_explains_signal): New function.
1526 (base_breakpoint_ops): Initialize new field.
1527 * breakpoint.h (enum bpstat_signal_value): New.
1528 (struct breakpoint_ops) <explains_signal>: New field.
1529 (bpstat_explains_signal): Remove macro, declare as function.
1530 (base_breakpoint_ops, init_catchpoint): Declare.
1531 * break-catch-sig.c: New file.
1532 * inferior.h (signal_catch_update): Declare.
1533 * infrun.c (signal_catch): New global.
1534 (handle_syscall_event): Update for change to
1535 bpstat_explains_signal.
1536 (handle_inferior_event): Likewise. Always handle random signals
1537 via bpstats.
1538 (signal_cache_update): Check signal_catch.
1539 (signal_catch_update): New function.
1540 (_initialize_infrun): Initialize signal_catch.
1541 * Makefile.in (SFILES): Add break-catch-sig.c.
1542 (COMMON_OBS): Add break-catch-sig.o.
1543
1544 2013-01-16 Tom Tromey <tromey@redhat.com>
1545
1546 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1547 (print_one_catch_solib, print_one_catch_syscall)
1548 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1549 "catch-type".
1550
1551 2013-01-16 Yao Qi <yao@codesourcery.com>
1552
1553 * printcmd.c (current_display_number): Make it static.
1554
1555 2013-01-16 Yao Qi <yao@codesourcery.com>
1556
1557 * infcmd.c (step_once): Don't check '!single_inst' as it was
1558 checked before.
1559
1560 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1561
1562 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1563
1564 2013-01-14 Tom Tromey <tromey@redhat.com>
1565
1566 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1567 set command.
1568 * command.h (add_setshow_string_noescape_cmd): Update.
1569 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1570 (complete_set_gnutarget): New function.
1571 (_initialize_core): Set the "set gnutarget" completer.
1572
1573 2013-01-14 Tom Tromey <tromey@redhat.com>
1574
1575 PR symtab/14442:
1576 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1577 (c_type_print_modifier): Likewise.
1578 * dwarf2read.c (read_tag_restrict_type): New function.
1579 (read_type_die_1): Handle DW_TAG_restrict_type.
1580 * gdbtypes.c (make_restrict_type): New function.
1581 (recursive_dump_type): Handle TYPE_RESTRICT.
1582 * gdbtypes.h (enum type_flag_values): Renumber.
1583 (enum type_instance_flag_value): Add
1584 TYPE_INSTANCE_FLAG_RESTRICT.
1585 (TYPE_RESTRICT): New macro.
1586 (make_restrict_type): Declare.
1587
1588 2013-01-14 Tom Tromey <tromey@redhat.com>
1589
1590 PR symtab/14931:
1591 * psymtab.c (struct psymtab_state): New.
1592 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1593 functions.
1594 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1595 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1596
1597 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1598 Pedro Alves <palves@redhat.com>
1599
1600 PR remote/14786
1601
1602 * remote.c (remote_threads_info): Make a copy of the reply from
1603 qfThreadInfo and use that instead of rs->buf.
1604
1605 2013-01-14 Yao Qi <yao@codesourcery.com>
1606
1607 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1608 (dbx_psymtab_to_symtab): Likewise.
1609 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1610 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1611 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1612
1613 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1614
1615 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1616 make_cleanup_restore_current_language. Call set_language. Move
1617 OLD_CHAIN and INNER_CHAIN cleanups.
1618 * utils.c (do_restore_current_language)
1619 (make_cleanup_restore_current_language): New functions.
1620 * utils.h (make_cleanup_restore_current_language): New declaration.
1621
1622 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1623
1624 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1625 non-existing files.
1626
1627 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1628 non-existing files if FILENAME is already absolute.
1629
1630 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1631
1632 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1633 fputs_filtered. Append trailing newline.
1634
1635 2013-01-11 Yao Qi <yao@codesourcery.com>
1636 Stan Shebs <stan@codesourcery.com>
1637
1638 * psymtab.c (init_psymbol_list): Clarify the comment.
1639
1640 2013-01-11 Yao Qi <yao@codesourcery.com>
1641
1642 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1643 (update_dprintf_command_list): Assert that 'printf_line' is
1644 non-null. Remove condition check.
1645
1646 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1647
1648 Code cleanup.
1649 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1650 type const char *.
1651 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1652 const char *.
1653 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1654
1655 2013-01-09 Anthony Green <green@moxielogic.com>
1656
1657 * cp-abi.c (cplus_print_vtable): Don't return value from void
1658 function.
1659 * ada-lang.c (re_set_catch_assert): Ditto.
1660
1661 2013-01-09 Doug Evans <dje@google.com>
1662
1663 * symfile.h (quick_symbol_functions): Delete member
1664 pre_expand_symtabs_matching. All uses removed.
1665 * dwarf2read.c (dw2_lookup_symbol): Implement.
1666 (dw2_do_expand_symtabs_matching): Delete.
1667 (dw2_pre_expand_symtabs_matching): Delete.
1668 (struct dw2_symtab_iterator): New type.
1669 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1670 (dw2_expand_symtabs_for_function): Rewrite.
1671 (dwarf2_gdb_index_functions): Update.
1672 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1673 (psym_functions): Update.
1674
1675 2013-01-09 Tom Tromey <tromey@redhat.com>
1676
1677 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1678 * configure: Rebuild.
1679 * configure.ac: Add somread.o to the build if BFD has SOM
1680 support.
1681 * somread.c: Include som/aout.h, not syms.h.
1682 (som_symtab_read): Use som_external_symbol_dictionary_record.
1683 Unpack records manually.
1684 (_initialize_somread): Declare.
1685
1686 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1687
1688 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1689 Cast return_address to 64bits.
1690
1691 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1692
1693 * printcmd.c: Remove define of function output_command.
1694 * tracepoint.c: Remove extern of function output_command.
1695 * valprint.h: (output_command): New extern.
1696
1697 2013-01-07 Tom Tromey <tromey@redhat.com>
1698
1699 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1700 Remove.
1701 (objc_language_defn): Use c_printchar, c_printstr,
1702 c_emit_char.
1703
1704 2013-01-07 Tom Tromey <tromey@redhat.com>
1705
1706 PR cli/7719:
1707 * NEWS: Update.
1708 * ada-valprint.c (printstr, print_field_values): Remove
1709 "inspect_it" code.
1710 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1711 code.
1712 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1713 code.
1714 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1715 * main.c (captured_main): Remove "epoch" argument.
1716 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1717 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1718 * p-valprint.c (pascal_object_print_value_fields): Remove
1719 "inspect_it" code.
1720 * printcmd.c (print_command_1): Remove 'inspect' argument.
1721 (print_command, call_command): Update.
1722 (inspect_command): Remove.
1723 (_initialize_printcmd): Make "inspect" an alias for "print".
1724 * top.c (epoch_interface): Remove.
1725 * top.h (epoch_interface): Remove.
1726 * valprint.c (user_print_options): Update.
1727 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1728 * valprint.h (struct value_print_options) <inspect_it>: Remove
1729 field.
1730
1731 2013-01-04 Tom Tromey <tromey@redhat.com>
1732
1733 * valprint.h (read_string): Add 'extern'.
1734
1735 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1736
1737 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1738 used to decide whether to define darwin_read_dyld_info or not.
1739
1740 2013-01-03 Pierre Muller <muller@sourceware.org>
1741
1742 * main.c (relocate_gdb_directory): Avoid calling stat function
1743 if DIR is empty.
1744
1745 2013-01-03 Yao Qi <yao@codesourcery.com>
1746
1747 * psymtab.c (fixup_psymbol_section): Update declaration.
1748 (fixup_psymbol_section): Remove code returning value.
1749
1750 2013-01-03 Yao Qi <yao@codesourcery.com>
1751
1752 * symtab.h: Remove some out of date comments.
1753 (enum exception_event_kind): Move it ...
1754 * breakpoint.c: ... here.
1755
1756 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1757
1758 PR gdb/14405
1759 * darwin-nat.c (darwin_read_dyld_info): Only build if
1760 TASK_DYLD_INFO_COUNT is defined.
1761 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1762 TASK_DYLD_INFO_COUNT is defined.
1763
1764 2013-01-02 Tom Tromey <tromey@redhat.com>
1765
1766 * symfile.h (struct ecoff_debug_hack): Remove.
1767 * objfiles.c: Don't include mdebugread.h.
1768
1769 2013-01-02 Tom Tromey <tromey@redhat.com>
1770
1771 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1772 * configure.ac: Check for Mach-O support in BFD. Update
1773 CONFIG_OBS.
1774 * configure: Rebuild.
1775
1776 2013-01-02 Tom Tromey <tromey@redhat.com>
1777
1778 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1779 * configure.ac: Use GDB_AC_CHECK_BFD.
1780 * configure: Rebuild.
1781
1782 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1783
1784 * MAINTAINERS: Update my email.
1785
1786 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1787
1788 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1789
1790 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1791
1792 * rs6000-nat.c (bss_data_overlap): New function.
1793 (vmap_symtab): Use it to adjust the .bss section's offset.
1794
1795 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1796
1797 Update year range in copyright notice of all files.
1798
1799 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1800
1801 * top.c (print_gdb_version): Update copyright year.
1802
1803 For older changes see ChangeLog-2012.
1804 \f
1805 Local Variables:
1806 mode: change-log
1807 left-margin: 8
1808 fill-column: 74
1809 version-control: never
1810 coding: utf-8
1811 End:
This page took 0.06902 seconds and 4 git commands to generate.